| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_ | 5 #ifndef CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_ |
| 6 #define CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_ | 6 #define CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "extensions/browser/extension_function_dispatcher.h" | 9 #include "extensions/browser/extension_function_dispatcher.h" |
| 10 #include "extensions/browser/guest_view/guest_view.h" | 10 #include "extensions/browser/guest_view/guest_view.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 virtual void GuestSizeChangedDueToAutoSize( | 35 virtual void GuestSizeChangedDueToAutoSize( |
| 36 const gfx::Size& old_size, | 36 const gfx::Size& old_size, |
| 37 const gfx::Size& new_size) OVERRIDE; | 37 const gfx::Size& new_size) OVERRIDE; |
| 38 virtual bool IsAutoSizeSupported() const OVERRIDE; | 38 virtual bool IsAutoSizeSupported() const OVERRIDE; |
| 39 | 39 |
| 40 // ExtensionFunctionDispatcher::Delegate implementation. | 40 // ExtensionFunctionDispatcher::Delegate implementation. |
| 41 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 41 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
| 42 | 42 |
| 43 // content::WebContentsDelegate implementation. | 43 // content::WebContentsDelegate implementation. |
| 44 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 44 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
| 45 virtual bool HandleContextMenu( |
| 46 const content::ContextMenuParams& params) OVERRIDE; |
| 45 virtual bool ShouldCreateWebContents( | 47 virtual bool ShouldCreateWebContents( |
| 46 content::WebContents* web_contents, | 48 content::WebContents* web_contents, |
| 47 int route_id, | 49 int route_id, |
| 48 WindowContainerType window_container_type, | 50 WindowContainerType window_container_type, |
| 49 const base::string16& frame_name, | 51 const base::string16& frame_name, |
| 50 const GURL& target_url, | 52 const GURL& target_url, |
| 51 const std::string& partition_id, | 53 const std::string& partition_id, |
| 52 content::SessionStorageNamespace* session_storage_namespace) OVERRIDE; | 54 content::SessionStorageNamespace* session_storage_namespace) OVERRIDE; |
| 53 | 55 |
| 54 // content::WebContentsObserver implementation. | 56 // content::WebContentsObserver implementation. |
| 55 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 57 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 56 | 58 |
| 57 private: | 59 private: |
| 58 ExtensionOptionsGuest(content::BrowserContext* browser_context, | 60 ExtensionOptionsGuest(content::BrowserContext* browser_context, |
| 59 int guest_instance_id); | 61 int guest_instance_id); |
| 60 virtual ~ExtensionOptionsGuest(); | 62 virtual ~ExtensionOptionsGuest(); |
| 61 void SetUpAutoSize(); | 63 void SetUpAutoSize(); |
| 62 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 64 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
| 63 | 65 |
| 64 scoped_ptr<extensions::ExtensionFunctionDispatcher> | 66 scoped_ptr<extensions::ExtensionFunctionDispatcher> |
| 65 extension_function_dispatcher_; | 67 extension_function_dispatcher_; |
| 66 GURL options_page_; | 68 GURL options_page_; |
| 67 | 69 |
| 68 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); | 70 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H
_ | 73 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H
_ |
| OLD | NEW |