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_NATIVE_APP_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 public ui::ActiveWindowWatcherXObserver { | 29 public ui::ActiveWindowWatcherXObserver { |
30 public: | 30 public: |
31 NativeAppWindowGtk(ShellWindow* shell_window, | 31 NativeAppWindowGtk(ShellWindow* shell_window, |
32 const ShellWindow::CreateParams& params); | 32 const ShellWindow::CreateParams& params); |
33 | 33 |
34 // BaseWindow implementation. | 34 // BaseWindow implementation. |
35 virtual bool IsActive() const OVERRIDE; | 35 virtual bool IsActive() const OVERRIDE; |
36 virtual bool IsMaximized() const OVERRIDE; | 36 virtual bool IsMaximized() const OVERRIDE; |
37 virtual bool IsMinimized() const OVERRIDE; | 37 virtual bool IsMinimized() const OVERRIDE; |
38 virtual bool IsFullscreen() const OVERRIDE; | 38 virtual bool IsFullscreen() const OVERRIDE; |
| 39 virtual bool IsDetached() const OVERRIDE; |
39 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; | 40 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; |
40 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; | 41 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; |
| 42 virtual ui::WindowShowState GetRestoredState() const OVERRIDE; |
41 virtual gfx::Rect GetBounds() const OVERRIDE; | 43 virtual gfx::Rect GetBounds() const OVERRIDE; |
42 virtual void Show() OVERRIDE; | 44 virtual void Show() OVERRIDE; |
43 virtual void ShowInactive() OVERRIDE; | 45 virtual void ShowInactive() OVERRIDE; |
44 virtual void Hide() OVERRIDE; | 46 virtual void Hide() OVERRIDE; |
45 virtual void Close() OVERRIDE; | 47 virtual void Close() OVERRIDE; |
46 virtual void Activate() OVERRIDE; | 48 virtual void Activate() OVERRIDE; |
47 virtual void Deactivate() OVERRIDE; | 49 virtual void Deactivate() OVERRIDE; |
48 virtual void Maximize() OVERRIDE; | 50 virtual void Maximize() OVERRIDE; |
49 virtual void Minimize() OVERRIDE; | 51 virtual void Minimize() OVERRIDE; |
50 virtual void Restore() OVERRIDE; | 52 virtual void Restore() OVERRIDE; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; | 151 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; |
150 | 152 |
151 // Observers to be notified when any web contents modal dialog requires | 153 // Observers to be notified when any web contents modal dialog requires |
152 // updating its dimensions. | 154 // updating its dimensions. |
153 ObserverList<WebContentsModalDialogHostObserver> observer_list_; | 155 ObserverList<WebContentsModalDialogHostObserver> observer_list_; |
154 | 156 |
155 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); | 157 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); |
156 }; | 158 }; |
157 | 159 |
158 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ | 160 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ |
OLD | NEW |