| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSIONS_APP_WINDOW_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_APP_WINDOW_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_APP_WINDOW_CONTENTS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_APP_WINDOW_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "apps/shell_window.h" | 10 #include "apps/shell_window.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 54 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 55 | 55 |
| 56 // ExtensionFunctionDispatcher::Delegate | 56 // ExtensionFunctionDispatcher::Delegate |
| 57 virtual extensions::WindowController* GetExtensionWindowController() const | 57 virtual extensions::WindowController* GetExtensionWindowController() const |
| 58 OVERRIDE; | 58 OVERRIDE; |
| 59 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 59 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
| 60 | 60 |
| 61 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 61 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
| 62 void UpdateDraggableRegions( | 62 void UpdateDraggableRegions( |
| 63 const std::vector<extensions::DraggableRegion>& regions); | 63 const std::vector<extensions::DraggableRegion>& regions); |
| 64 void LaunchAppWithUrl(const GURL& url, const GURL& referrer_url) const; |
| 64 void SuspendRenderViewHost(content::RenderViewHost* rvh); | 65 void SuspendRenderViewHost(content::RenderViewHost* rvh); |
| 65 | 66 |
| 66 ShellWindow* host_; // This class is owned by |host_| | 67 ShellWindow* host_; // This class is owned by |host_| |
| 67 GURL url_; | 68 GURL url_; |
| 68 content::NotificationRegistrar registrar_; | 69 content::NotificationRegistrar registrar_; |
| 69 scoped_ptr<content::WebContents> web_contents_; | 70 scoped_ptr<content::WebContents> web_contents_; |
| 70 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 71 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
| 71 | 72 |
| 72 DISALLOW_COPY_AND_ASSIGN(AppWindowContents); | 73 DISALLOW_COPY_AND_ASSIGN(AppWindowContents); |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace apps | 76 } // namespace apps |
| 76 | 77 |
| 77 #endif // CHROME_BROWSER_EXTENSIONS_APP_WINDOW_CONTENTS_H_ | 78 #endif // CHROME_BROWSER_EXTENSIONS_APP_WINDOW_CONTENTS_H_ |
| OLD | NEW |