Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * Copyright 2010 Michael Drake <tlsa@netsurf-browser.org>
  3.  *
  4.  * This file is part of NetSurf, http://www.netsurf-browser.org/
  5.  *
  6.  * NetSurf is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; version 2 of the License.
  9.  *
  10.  * NetSurf is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17.  */
  18.  
  19. /** \file
  20.  * Browser window creation and manipulation (implementation).
  21.  */
  22.  
  23. #include "desktop/browser.h"
  24. #include "utils/log.h"
  25.  
  26. /**
  27.  * Debug function logs a browser mouse state.
  28.  *
  29.  * \param  mouse  browser_mouse_state to dump
  30.  */
  31. void browser_mouse_state_dump(browser_mouse_state mouse)
  32. {
  33.         LOG(("mouse state: %s %s %s %s %s %s %s %s %s %s %s %s %s",
  34.                         mouse & BROWSER_MOUSE_PRESS_1           ? "P1" : "  ",
  35.                         mouse & BROWSER_MOUSE_PRESS_2           ? "P2" : "  ",
  36.                         mouse & BROWSER_MOUSE_CLICK_1           ? "C1" : "  ",
  37.                         mouse & BROWSER_MOUSE_CLICK_2           ? "C2" : "  ",
  38.                         mouse & BROWSER_MOUSE_DOUBLE_CLICK      ? "DC" : "  ",
  39.                         mouse & BROWSER_MOUSE_DRAG_1            ? "D1" : "  ",
  40.                         mouse & BROWSER_MOUSE_DRAG_2            ? "D2" : "  ",
  41.                         mouse & BROWSER_MOUSE_DRAG_ON           ? "DO" : "  ",
  42.                         mouse & BROWSER_MOUSE_HOLDING_1         ? "H1" : "  ",
  43.                         mouse & BROWSER_MOUSE_HOLDING_2         ? "H2" : "  ",
  44.                         mouse & BROWSER_MOUSE_MOD_1             ? "M1" : "  ",
  45.                         mouse & BROWSER_MOUSE_MOD_2             ? "M2" : "  ",
  46.                         mouse & BROWSER_MOUSE_MOD_3             ? "M3" : "  "));
  47. }
  48.