| 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_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 "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/extensions/extension_keybinding_registry.h" | 10 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 const gfx::Image& app_icon() const { return app_icon_; } | 142 const gfx::Image& app_icon() const { return app_icon_; } |
| 143 const GURL& app_icon_url() { return app_icon_url_; } | 143 const GURL& app_icon_url() { return app_icon_url_; } |
| 144 | 144 |
| 145 NativeAppWindow* GetBaseWindow(); | 145 NativeAppWindow* GetBaseWindow(); |
| 146 gfx::NativeWindow GetNativeWindow(); | 146 gfx::NativeWindow GetNativeWindow(); |
| 147 | 147 |
| 148 // Returns the bounds that should be reported to the renderer. | 148 // Returns the bounds that should be reported to the renderer. |
| 149 gfx::Rect GetClientBounds() const; | 149 gfx::Rect GetClientBounds() const; |
| 150 | 150 |
| 151 // This will return a slightly smaller icon then the app_icon to be used in | 151 // This will return a slightly smaller icon then the app_icon to be used in |
| 152 // application lists. It is the responsibility of the caller to delete the | 152 // application lists. |
| 153 // returned image after use. | 153 scoped_ptr<gfx::Image> GetAppListIcon(); |
| 154 gfx::Image* GetAppListIcon(); | |
| 155 | 154 |
| 156 // NativeAppWindows should call this to determine what the window's title | 155 // NativeAppWindows should call this to determine what the window's title |
| 157 // is on startup and from within UpdateWindowTitle(). | 156 // is on startup and from within UpdateWindowTitle(). |
| 158 string16 GetTitle() const; | 157 string16 GetTitle() const; |
| 159 | 158 |
| 160 // Call to notify ShellRegistry and delete the window. Subclasses should | 159 // Call to notify ShellRegistry and delete the window. Subclasses should |
| 161 // invoke this method instead of using "delete this". | 160 // invoke this method instead of using "delete this". |
| 162 void OnNativeClose(); | 161 void OnNativeClose(); |
| 163 | 162 |
| 164 // Should be called by native implementations when the window size, position, | 163 // Should be called by native implementations when the window size, position, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 266 |
| 268 scoped_ptr<NativeAppWindow> native_app_window_; | 267 scoped_ptr<NativeAppWindow> native_app_window_; |
| 269 scoped_ptr<ShellWindowContents> shell_window_contents_; | 268 scoped_ptr<ShellWindowContents> shell_window_contents_; |
| 270 | 269 |
| 271 base::WeakPtrFactory<ShellWindow> image_loader_ptr_factory_; | 270 base::WeakPtrFactory<ShellWindow> image_loader_ptr_factory_; |
| 272 | 271 |
| 273 DISALLOW_COPY_AND_ASSIGN(ShellWindow); | 272 DISALLOW_COPY_AND_ASSIGN(ShellWindow); |
| 274 }; | 273 }; |
| 275 | 274 |
| 276 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ | 275 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ |
| OLD | NEW |