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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include "chrome/browser/ui/extensions/shell_window.h" | 11 #include "chrome/browser/ui/extensions/shell_window.h" |
12 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" | 12 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" |
13 #include "ui/base/gtk/gtk_signal.h" | 13 #include "ui/base/gtk/gtk_signal.h" |
14 #include "ui/base/x/active_window_watcher_x_observer.h" | 14 #include "ui/base/x/active_window_watcher_x_observer.h" |
15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
16 | 16 |
17 class ExtensionHost; | 17 class PlatformAppHost; |
18 | 18 |
19 class ShellWindowGtk : public ShellWindow, | 19 class ShellWindowGtk : public ShellWindow, |
20 public ExtensionViewGtk::Container, | 20 public ExtensionViewGtk::Container, |
21 public ui::ActiveWindowWatcherXObserver { | 21 public ui::ActiveWindowWatcherXObserver { |
22 public: | 22 public: |
23 explicit ShellWindowGtk(ExtensionHost* host); | 23 explicit ShellWindowGtk(PlatformAppHost* host); |
24 | 24 |
25 // BaseWindow implementation. | 25 // BaseWindow implementation. |
26 virtual bool IsActive() const OVERRIDE; | 26 virtual bool IsActive() const OVERRIDE; |
27 virtual bool IsMaximized() const OVERRIDE; | 27 virtual bool IsMaximized() const OVERRIDE; |
28 virtual bool IsMinimized() const OVERRIDE; | 28 virtual bool IsMinimized() const OVERRIDE; |
29 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; | 29 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; |
30 virtual gfx::Rect GetBounds() const OVERRIDE; | 30 virtual gfx::Rect GetBounds() const OVERRIDE; |
31 virtual void Show() OVERRIDE; | 31 virtual void Show() OVERRIDE; |
32 virtual void ShowInactive() OVERRIDE; | 32 virtual void ShowInactive() OVERRIDE; |
33 virtual void Close() OVERRIDE; | 33 virtual void Close() OVERRIDE; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // The position and size of the current window. | 65 // The position and size of the current window. |
66 gfx::Rect bounds_; | 66 gfx::Rect bounds_; |
67 | 67 |
68 // The position and size of the non-maximized, non-fullscreen window. | 68 // The position and size of the non-maximized, non-fullscreen window. |
69 gfx::Rect restored_bounds_; | 69 gfx::Rect restored_bounds_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk); | 71 DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk); |
72 }; | 72 }; |
73 | 73 |
74 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ | 74 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ |
OLD | NEW |