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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 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
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_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 Profile; 17 class Profile;
18 18
19 namespace extensions {
20 class Extension;
21 }
22
19 class ShellWindowGtk : public ShellWindow, 23 class ShellWindowGtk : public ShellWindow,
20 public ExtensionViewGtk::Container, 24 public ExtensionViewGtk::Container,
21 public ui::ActiveWindowWatcherXObserver { 25 public ui::ActiveWindowWatcherXObserver {
22 public: 26 public:
23 ShellWindowGtk(Profile* profile, 27 ShellWindowGtk(Profile* profile,
24 const Extension* extension, 28 const extensions::Extension* extension,
25 const GURL& url); 29 const GURL& url);
26 30
27 // BaseWindow implementation. 31 // BaseWindow implementation.
28 virtual bool IsActive() const OVERRIDE; 32 virtual bool IsActive() const OVERRIDE;
29 virtual bool IsMaximized() const OVERRIDE; 33 virtual bool IsMaximized() const OVERRIDE;
30 virtual bool IsMinimized() const OVERRIDE; 34 virtual bool IsMinimized() const OVERRIDE;
31 virtual bool IsFullscreen() const OVERRIDE; 35 virtual bool IsFullscreen() const OVERRIDE;
32 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; 36 virtual gfx::Rect GetRestoredBounds() const OVERRIDE;
33 virtual gfx::Rect GetBounds() const OVERRIDE; 37 virtual gfx::Rect GetBounds() const OVERRIDE;
34 virtual void Show() OVERRIDE; 38 virtual void Show() OVERRIDE;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // The position and size of the current window. 72 // The position and size of the current window.
69 gfx::Rect bounds_; 73 gfx::Rect bounds_;
70 74
71 // The position and size of the non-maximized, non-fullscreen window. 75 // The position and size of the non-maximized, non-fullscreen window.
72 gfx::Rect restored_bounds_; 76 gfx::Rect restored_bounds_;
73 77
74 DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk); 78 DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk);
75 }; 79 };
76 80
77 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ 81 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698