| 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" |
| 11 #include "chrome/browser/ui/extensions/native_shell_window.h" | 11 #include "chrome/browser/ui/extensions/native_shell_window.h" |
| 12 #include "chrome/browser/ui/extensions/shell_window.h" | 12 #include "chrome/browser/ui/extensions/shell_window.h" |
| 13 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" | |
| 14 #include "third_party/skia/include/core/SkRegion.h" | 13 #include "third_party/skia/include/core/SkRegion.h" |
| 15 #include "ui/base/gtk/gtk_signal.h" | 14 #include "ui/base/gtk/gtk_signal.h" |
| 16 #include "ui/base/x/active_window_watcher_x_observer.h" | 15 #include "ui/base/x/active_window_watcher_x_observer.h" |
| 17 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
| 18 | 17 |
| 19 class ExtensionKeybindingRegistryGtk; | 18 class ExtensionKeybindingRegistryGtk; |
| 20 class Profile; | 19 class Profile; |
| 21 | 20 |
| 22 namespace extensions { | 21 namespace extensions { |
| 23 class Extension; | 22 class Extension; |
| 24 struct DraggableRegion; | 23 struct DraggableRegion; |
| 25 } | 24 } |
| 26 | 25 |
| 27 class ShellWindowGtk : public NativeShellWindow, | 26 class ShellWindowGtk : public NativeShellWindow, |
| 28 public ExtensionViewGtk::Container, | |
| 29 public ui::ActiveWindowWatcherXObserver { | 27 public ui::ActiveWindowWatcherXObserver { |
| 30 public: | 28 public: |
| 31 ShellWindowGtk(ShellWindow* shell_window, | 29 ShellWindowGtk(ShellWindow* shell_window, |
| 32 const ShellWindow::CreateParams& params); | 30 const ShellWindow::CreateParams& params); |
| 33 | 31 |
| 34 // BaseWindow implementation. | 32 // BaseWindow implementation. |
| 35 virtual bool IsActive() const OVERRIDE; | 33 virtual bool IsActive() const OVERRIDE; |
| 36 virtual bool IsMaximized() const OVERRIDE; | 34 virtual bool IsMaximized() const OVERRIDE; |
| 37 virtual bool IsMinimized() const OVERRIDE; | 35 virtual bool IsMinimized() const OVERRIDE; |
| 38 virtual bool IsFullscreen() const OVERRIDE; | 36 virtual bool IsFullscreen() const OVERRIDE; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 119 |
| 122 // The Extension Keybinding Registry responsible for registering listeners for | 120 // The Extension Keybinding Registry responsible for registering listeners for |
| 123 // accelerators that are sent to the window, that are destined to be turned | 121 // accelerators that are sent to the window, that are destined to be turned |
| 124 // into events and sent to the extension. | 122 // into events and sent to the extension. |
| 125 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; | 123 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; |
| 126 | 124 |
| 127 DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk); | 125 DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk); |
| 128 }; | 126 }; |
| 129 | 127 |
| 130 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ | 128 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ |
| OLD | NEW |