OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 // of the matched accelerator. | 423 // of the matched accelerator. |
424 static gboolean OnGtkAccelerator(GtkAccelGroup* accel_group, | 424 static gboolean OnGtkAccelerator(GtkAccelGroup* accel_group, |
425 GObject* acceleratable, | 425 GObject* acceleratable, |
426 guint keyval, | 426 guint keyval, |
427 GdkModifierType modifier, | 427 GdkModifierType modifier, |
428 void* user_data); | 428 void* user_data); |
429 | 429 |
430 // Key press event callback. | 430 // Key press event callback. |
431 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnKeyPress, GdkEventKey*); | 431 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnKeyPress, GdkEventKey*); |
432 | 432 |
| 433 // Key release event callback. |
| 434 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnKeyRelease, GdkEventKey*); |
| 435 |
433 // Mouse move and mouse button press callbacks. | 436 // Mouse move and mouse button press callbacks. |
434 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnMouseMoveEvent, | 437 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnMouseMoveEvent, |
435 GdkEventMotion*); | 438 GdkEventMotion*); |
436 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnButtonPressEvent, | 439 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnButtonPressEvent, |
437 GdkEventButton*); | 440 GdkEventButton*); |
438 | 441 |
439 // Tracks focus state of browser. | 442 // Tracks focus state of browser. |
440 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnFocusIn, | 443 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnFocusIn, |
441 GdkEventFocus*); | 444 GdkEventFocus*); |
442 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnFocusOut, | 445 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnFocusOut, |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; | 570 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; |
568 | 571 |
569 FullscreenExitBubbleType fullscreen_exit_bubble_type_; | 572 FullscreenExitBubbleType fullscreen_exit_bubble_type_; |
570 | 573 |
571 content::NotificationRegistrar registrar_; | 574 content::NotificationRegistrar registrar_; |
572 | 575 |
573 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 576 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
574 }; | 577 }; |
575 | 578 |
576 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 579 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
OLD | NEW |