| 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 "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" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 virtual extensions::WindowController* GetExtensionWindowController() const | 164 virtual extensions::WindowController* GetExtensionWindowController() const |
| 165 OVERRIDE; | 165 OVERRIDE; |
| 166 | 166 |
| 167 // Message handlers. | 167 // Message handlers. |
| 168 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 168 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
| 169 | 169 |
| 170 // Helper method to add a message to the renderer's DevTools console. | 170 // Helper method to add a message to the renderer's DevTools console. |
| 171 void AddMessageToDevToolsConsole(content::ConsoleMessageLevel level, | 171 void AddMessageToDevToolsConsole(content::ConsoleMessageLevel level, |
| 172 const std::string& message); | 172 const std::string& message); |
| 173 | 173 |
| 174 // Sends an update |
| 175 void SendBoundsUpdate(); |
| 176 |
| 174 virtual void UpdateDraggableRegions( | 177 virtual void UpdateDraggableRegions( |
| 175 const std::vector<extensions::DraggableRegion>& regions); | 178 const std::vector<extensions::DraggableRegion>& regions); |
| 176 | 179 |
| 177 // Load the app's image, firing a load state change when loaded. | 180 // Load the app's image, firing a load state change when loaded. |
| 178 void UpdateExtensionAppIcon(); | 181 void UpdateExtensionAppIcon(); |
| 179 | 182 |
| 180 // ImageLoadingTracker::Observer implementation. | 183 // ImageLoadingTracker::Observer implementation. |
| 181 virtual void OnImageLoaded(const gfx::Image& image, | 184 virtual void OnImageLoaded(const gfx::Image& image, |
| 182 const std::string& extension_id, | 185 const std::string& extension_id, |
| 183 int index) OVERRIDE; | 186 int index) OVERRIDE; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 204 | 207 |
| 205 // Used for loading app_icon_. | 208 // Used for loading app_icon_. |
| 206 scoped_ptr<ImageLoadingTracker> app_icon_loader_; | 209 scoped_ptr<ImageLoadingTracker> app_icon_loader_; |
| 207 | 210 |
| 208 scoped_ptr<NativeShellWindow> native_window_; | 211 scoped_ptr<NativeShellWindow> native_window_; |
| 209 | 212 |
| 210 DISALLOW_COPY_AND_ASSIGN(ShellWindow); | 213 DISALLOW_COPY_AND_ASSIGN(ShellWindow); |
| 211 }; | 214 }; |
| 212 | 215 |
| 213 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ | 216 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ |
| OLD | NEW |