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 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 // of the matched accelerator. | 429 // of the matched accelerator. |
430 static gboolean OnGtkAccelerator(GtkAccelGroup* accel_group, | 430 static gboolean OnGtkAccelerator(GtkAccelGroup* accel_group, |
431 GObject* acceleratable, | 431 GObject* acceleratable, |
432 guint keyval, | 432 guint keyval, |
433 GdkModifierType modifier, | 433 GdkModifierType modifier, |
434 void* user_data); | 434 void* user_data); |
435 | 435 |
436 // Key press event callback. | 436 // Key press event callback. |
437 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnKeyPress, GdkEventKey*); | 437 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnKeyPress, GdkEventKey*); |
438 | 438 |
| 439 // Key release event callback. |
| 440 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnKeyRelease, GdkEventKey*); |
| 441 |
439 // Mouse move and mouse button press callbacks. | 442 // Mouse move and mouse button press callbacks. |
440 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnMouseMoveEvent, | 443 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnMouseMoveEvent, |
441 GdkEventMotion*); | 444 GdkEventMotion*); |
442 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnButtonPressEvent, | 445 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnButtonPressEvent, |
443 GdkEventButton*); | 446 GdkEventButton*); |
444 | 447 |
445 // Tracks focus state of browser. | 448 // Tracks focus state of browser. |
446 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnFocusIn, | 449 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnFocusIn, |
447 GdkEventFocus*); | 450 GdkEventFocus*); |
448 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnFocusOut, | 451 CHROMEGTK_CALLBACK_1(BrowserWindowGtk, gboolean, OnFocusOut, |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; | 576 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; |
574 | 577 |
575 FullscreenExitBubbleType fullscreen_exit_bubble_type_; | 578 FullscreenExitBubbleType fullscreen_exit_bubble_type_; |
576 | 579 |
577 content::NotificationRegistrar registrar_; | 580 content::NotificationRegistrar registrar_; |
578 | 581 |
579 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 582 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
580 }; | 583 }; |
581 | 584 |
582 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 585 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
OLD | NEW |