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

Side by Side Diff: chrome/browser/ui/extensions/shell_window.h

Issue 11280173: Rename ShellWindow* classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge fix Created 8 years 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_EXTENSIONS_SHELL_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/extensions/extension_function_dispatcher.h" 9 #include "chrome/browser/extensions/extension_function_dispatcher.h"
10 #include "chrome/browser/extensions/extension_keybinding_registry.h" 10 #include "chrome/browser/extensions/extension_keybinding_registry.h"
11 #include "chrome/browser/extensions/image_loading_tracker.h" 11 #include "chrome/browser/extensions/image_loading_tracker.h"
12 #include "chrome/browser/sessions/session_id.h" 12 #include "chrome/browser/sessions/session_id.h"
13 #include "chrome/browser/ui/base_window.h" 13 #include "chrome/browser/ui/base_window.h"
14 #include "content/public/browser/notification_observer.h" 14 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
16 #include "content/public/browser/web_contents_delegate.h" 16 #include "content/public/browser/web_contents_delegate.h"
17 #include "content/public/browser/web_contents_observer.h" 17 #include "content/public/browser/web_contents_observer.h"
18 #include "content/public/common/console_message_level.h" 18 #include "content/public/common/console_message_level.h"
19 #include "ui/gfx/image/image.h" 19 #include "ui/gfx/image/image.h"
20 #include "ui/gfx/rect.h" 20 #include "ui/gfx/rect.h"
21 21
22 class GURL; 22 class GURL;
23 class Profile; 23 class Profile;
24 class NativeShellWindow; 24 class NativeAppWindow;
25 25
26 namespace content { 26 namespace content {
27 class WebContents; 27 class WebContents;
28 } 28 }
29 29
30 namespace extensions { 30 namespace extensions {
31 class Extension; 31 class Extension;
32 class PlatformAppBrowserTest; 32 class PlatformAppBrowserTest;
33 class WindowController; 33 class WindowController;
34 34
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const extensions::Extension* extension() const { return extension_; } 86 const extensions::Extension* extension() const { return extension_; }
87 content::WebContents* web_contents() const { return web_contents_.get(); } 87 content::WebContents* web_contents() const { return web_contents_.get(); }
88 Profile* profile() const { return profile_; } 88 Profile* profile() const { return profile_; }
89 const gfx::Image& app_icon() const { return app_icon_; } 89 const gfx::Image& app_icon() const { return app_icon_; }
90 90
91 BaseWindow* GetBaseWindow(); 91 BaseWindow* GetBaseWindow();
92 gfx::NativeWindow GetNativeWindow() { 92 gfx::NativeWindow GetNativeWindow() {
93 return GetBaseWindow()->GetNativeWindow(); 93 return GetBaseWindow()->GetNativeWindow();
94 } 94 }
95 95
96 // NativeShellWindows should call this to determine what the window's title 96 // NativeAppWindows should call this to determine what the window's title
97 // is on startup and from within UpdateWindowTitle(). 97 // is on startup and from within UpdateWindowTitle().
98 virtual string16 GetTitle() const; 98 virtual string16 GetTitle() const;
99 99
100 // Call to notify ShellRegistry and delete the window. Subclasses should 100 // Call to notify ShellRegistry and delete the window. Subclasses should
101 // invoke this method instead of using "delete this". 101 // invoke this method instead of using "delete this".
102 void OnNativeClose(); 102 void OnNativeClose();
103 103
104 // Should be called by native implementations when the window size, position, 104 // Should be called by native implementations when the window size, position,
105 // or minimized/maximized state has changed. 105 // or minimized/maximized state has changed.
106 void OnNativeWindowChanged(); 106 void OnNativeWindowChanged();
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 scoped_ptr<content::WebContents> web_contents_; 204 scoped_ptr<content::WebContents> web_contents_;
205 content::NotificationRegistrar registrar_; 205 content::NotificationRegistrar registrar_;
206 ExtensionFunctionDispatcher extension_function_dispatcher_; 206 ExtensionFunctionDispatcher extension_function_dispatcher_;
207 207
208 // Icon showed in the task bar. 208 // Icon showed in the task bar.
209 gfx::Image app_icon_; 209 gfx::Image app_icon_;
210 210
211 // Used for loading app_icon_. 211 // Used for loading app_icon_.
212 scoped_ptr<ImageLoadingTracker> app_icon_loader_; 212 scoped_ptr<ImageLoadingTracker> app_icon_loader_;
213 213
214 scoped_ptr<NativeShellWindow> native_window_; 214 scoped_ptr<NativeAppWindow> native_app_window_;
215 215
216 DISALLOW_COPY_AND_ASSIGN(ShellWindow); 216 DISALLOW_COPY_AND_ASSIGN(ShellWindow);
217 }; 217 };
218 218
219 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 219 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/native_shell_window.h ('k') | chrome/browser/ui/extensions/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698