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