Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: chrome/browser/ui/gtk/extensions/native_app_window_gtk.h

Issue 14031021: Save and restore State for ShellWindows, including panels (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/extensions/native_app_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698