| 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_EXTENSIONS_SHELL_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include "base/timer.h" | 10 #include "base/timer.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 virtual void Hide() OVERRIDE; | 43 virtual void Hide() OVERRIDE; |
| 44 virtual void Close() OVERRIDE; | 44 virtual void Close() OVERRIDE; |
| 45 virtual void Activate() OVERRIDE; | 45 virtual void Activate() OVERRIDE; |
| 46 virtual void Deactivate() OVERRIDE; | 46 virtual void Deactivate() OVERRIDE; |
| 47 virtual void Maximize() OVERRIDE; | 47 virtual void Maximize() OVERRIDE; |
| 48 virtual void Minimize() OVERRIDE; | 48 virtual void Minimize() OVERRIDE; |
| 49 virtual void Restore() OVERRIDE; | 49 virtual void Restore() OVERRIDE; |
| 50 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 50 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 51 virtual void FlashFrame(bool flash) OVERRIDE; | 51 virtual void FlashFrame(bool flash) OVERRIDE; |
| 52 virtual bool IsAlwaysOnTop() const OVERRIDE; | 52 virtual bool IsAlwaysOnTop() const OVERRIDE; |
| 53 virtual gfx::Rect ContentBoundsForWindowBounds( |
| 54 const gfx::Rect& window_bounds) const OVERRIDE; |
| 55 virtual gfx::Rect WindowBoundsForContentBounds( |
| 56 const gfx::Rect& content_bounds) const OVERRIDE; |
| 53 | 57 |
| 54 // ActiveWindowWatcherXObserver implementation. | 58 // ActiveWindowWatcherXObserver implementation. |
| 55 virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE; | 59 virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE; |
| 56 | 60 |
| 57 private: | 61 private: |
| 58 // NativeShellWindow implementation. | 62 // NativeShellWindow implementation. |
| 59 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 63 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
| 60 virtual bool IsFullscreenOrPending() const OVERRIDE; | 64 virtual bool IsFullscreenOrPending() const OVERRIDE; |
| 61 virtual void UpdateWindowIcon() OVERRIDE; | 65 virtual void UpdateWindowIcon() OVERRIDE; |
| 62 virtual void UpdateWindowTitle() OVERRIDE; | 66 virtual void UpdateWindowTitle() OVERRIDE; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 126 |
| 123 // The Extension Keybinding Registry responsible for registering listeners for | 127 // The Extension Keybinding Registry responsible for registering listeners for |
| 124 // accelerators that are sent to the window, that are destined to be turned | 128 // accelerators that are sent to the window, that are destined to be turned |
| 125 // into events and sent to the extension. | 129 // into events and sent to the extension. |
| 126 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; | 130 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; |
| 127 | 131 |
| 128 DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk); | 132 DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk); |
| 129 }; | 133 }; |
| 130 | 134 |
| 131 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ | 135 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ |
| OLD | NEW |