| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_GTK_BROWSER_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class BrowserWindowGtk : public BrowserWindow, | 49 class BrowserWindowGtk : public BrowserWindow, |
| 50 public NotificationObserver, | 50 public NotificationObserver, |
| 51 public TabStripModelObserver { | 51 public TabStripModelObserver { |
| 52 public: | 52 public: |
| 53 explicit BrowserWindowGtk(Browser* browser); | 53 explicit BrowserWindowGtk(Browser* browser); |
| 54 virtual ~BrowserWindowGtk(); | 54 virtual ~BrowserWindowGtk(); |
| 55 | 55 |
| 56 Browser* browser() const { return browser_.get(); } | 56 Browser* browser() const { return browser_.get(); } |
| 57 | 57 |
| 58 // Process a keyboard input and try to find an accelerator for it. | 58 // Process a keyboard input and try to find an accelerator for it. |
| 59 void HandleAccelerator(guint keyval, GdkModifierType modifier); | 59 void HandleAccelerator(GdkEventKey* event); |
| 60 | 60 |
| 61 // Overridden from BrowserWindow | 61 // Overridden from BrowserWindow |
| 62 virtual void Show(); | 62 virtual void Show(); |
| 63 virtual void SetBounds(const gfx::Rect& bounds); | 63 virtual void SetBounds(const gfx::Rect& bounds); |
| 64 virtual void Close(); | 64 virtual void Close(); |
| 65 virtual void Activate(); | 65 virtual void Activate(); |
| 66 virtual bool IsActive() const; | 66 virtual bool IsActive() const; |
| 67 virtual void FlashFrame(); | 67 virtual void FlashFrame(); |
| 68 virtual gfx::NativeWindow GetNativeHandle(); | 68 virtual gfx::NativeWindow GetNativeHandle(); |
| 69 virtual BrowserWindowTesting* GetBrowserWindowTesting(); | 69 virtual BrowserWindowTesting* GetBrowserWindowTesting(); |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 // first time. This is to work around a compiz bug. | 373 // first time. This is to work around a compiz bug. |
| 374 bool maximize_after_show_; | 374 bool maximize_after_show_; |
| 375 | 375 |
| 376 // The accelerator group used to handle accelerators, owned by this object. | 376 // The accelerator group used to handle accelerators, owned by this object. |
| 377 GtkAccelGroup* accel_group_; | 377 GtkAccelGroup* accel_group_; |
| 378 | 378 |
| 379 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 379 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
| 380 }; | 380 }; |
| 381 | 381 |
| 382 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ | 382 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ |
| OLD | NEW |