| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // NativeShellWindow implementation. | 58 // NativeShellWindow implementation. |
| 59 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 59 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
| 60 virtual bool IsFullscreenOrPending() const OVERRIDE; | 60 virtual bool IsFullscreenOrPending() const OVERRIDE; |
| 61 virtual void UpdateWindowIcon() OVERRIDE; | 61 virtual void UpdateWindowIcon() OVERRIDE; |
| 62 virtual void UpdateWindowTitle() OVERRIDE; | 62 virtual void UpdateWindowTitle() OVERRIDE; |
| 63 virtual void HandleKeyboardEvent( | 63 virtual void HandleKeyboardEvent( |
| 64 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 64 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 65 virtual void UpdateDraggableRegions( | 65 virtual void UpdateDraggableRegions( |
| 66 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 66 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
| 67 virtual void RenderViewHostChanged() OVERRIDE {} | 67 virtual void RenderViewHostChanged() OVERRIDE {} |
| 68 virtual gfx::Insets GetFrameInsets() const OVERRIDE; |
| 68 | 69 |
| 69 content::WebContents* web_contents() const { | 70 content::WebContents* web_contents() const { |
| 70 return shell_window_->web_contents(); | 71 return shell_window_->web_contents(); |
| 71 } | 72 } |
| 72 const extensions::Extension* extension() const { | 73 const extensions::Extension* extension() const { |
| 73 return shell_window_->extension(); | 74 return shell_window_->extension(); |
| 74 } | 75 } |
| 75 | 76 |
| 76 virtual ~ShellWindowGtk(); | 77 virtual ~ShellWindowGtk(); |
| 77 | 78 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 123 |
| 123 // The Extension Keybinding Registry responsible for registering listeners for | 124 // The Extension Keybinding Registry responsible for registering listeners for |
| 124 // accelerators that are sent to the window, that are destined to be turned | 125 // accelerators that are sent to the window, that are destined to be turned |
| 125 // into events and sent to the extension. | 126 // into events and sent to the extension. |
| 126 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; | 127 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; |
| 127 | 128 |
| 128 DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk); | 129 DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk); |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ | 132 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ |
| OLD | NEW |