| 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 EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_
H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_
H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_
H_ | 6 #define EXTENSIONS_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/extension_options/extension_options_gues
t_delegate.h" | 10 #include "extensions/browser/guest_view/extension_options/extension_options_gues
t_delegate.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 : public extensions::GuestView<ExtensionOptionsGuest>, | 21 : public extensions::GuestView<ExtensionOptionsGuest>, |
| 22 public extensions::ExtensionFunctionDispatcher::Delegate { | 22 public extensions::ExtensionFunctionDispatcher::Delegate { |
| 23 public: | 23 public: |
| 24 static const char Type[]; | 24 static const char Type[]; |
| 25 static extensions::GuestViewBase* Create( | 25 static extensions::GuestViewBase* Create( |
| 26 content::BrowserContext* browser_context, | 26 content::BrowserContext* browser_context, |
| 27 content::WebContents* owner_web_contents, | 27 content::WebContents* owner_web_contents, |
| 28 int guest_instance_id); | 28 int guest_instance_id); |
| 29 | 29 |
| 30 // GuestViewBase implementation. | 30 // GuestViewBase implementation. |
| 31 bool CanRunInDetachedState() const override; |
| 31 void CreateWebContents(const base::DictionaryValue& create_params, | 32 void CreateWebContents(const base::DictionaryValue& create_params, |
| 32 const WebContentsCreatedCallback& callback) override; | 33 const WebContentsCreatedCallback& callback) override; |
| 33 void DidAttachToEmbedder() override; | |
| 34 void DidInitialize(const base::DictionaryValue& create_params) override; | 34 void DidInitialize(const base::DictionaryValue& create_params) override; |
| 35 void DidStopLoading() override; | 35 void DidStopLoading() override; |
| 36 const char* GetAPINamespace() const override; | 36 const char* GetAPINamespace() const override; |
| 37 int GetTaskPrefix() const override; | 37 int GetTaskPrefix() const override; |
| 38 void GuestSizeChangedDueToAutoSize(const gfx::Size& old_size, | 38 void GuestSizeChangedDueToAutoSize(const gfx::Size& old_size, |
| 39 const gfx::Size& new_size) override; | 39 const gfx::Size& new_size) override; |
| 40 bool IsAutoSizeSupported() const override; | 40 bool IsAutoSizeSupported() const override; |
| 41 bool IsPreferredSizeModeEnabled() const override; |
| 41 void OnPreferredSizeChanged(const gfx::Size& pref_size) override; | 42 void OnPreferredSizeChanged(const gfx::Size& pref_size) override; |
| 42 bool IsPreferredSizeModeEnabled() const override; | |
| 43 | 43 |
| 44 // ExtensionFunctionDispatcher::Delegate implementation. | 44 // ExtensionFunctionDispatcher::Delegate implementation. |
| 45 content::WebContents* GetAssociatedWebContents() const override; | 45 content::WebContents* GetAssociatedWebContents() const override; |
| 46 | 46 |
| 47 // content::WebContentsDelegate implementation. | 47 // content::WebContentsDelegate implementation. |
| 48 content::WebContents* OpenURLFromTab( | 48 content::WebContents* OpenURLFromTab( |
| 49 content::WebContents* source, | 49 content::WebContents* source, |
| 50 const content::OpenURLParams& params) override; | 50 const content::OpenURLParams& params) override; |
| 51 void CloseContents(content::WebContents* source) override; | 51 void CloseContents(content::WebContents* source) override; |
| 52 bool HandleContextMenu(const content::ContextMenuParams& params) override; | 52 bool HandleContextMenu(const content::ContextMenuParams& params) override; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 71 content::WebContents* owner_web_contents, | 71 content::WebContents* owner_web_contents, |
| 72 int guest_instance_id); | 72 int guest_instance_id); |
| 73 ~ExtensionOptionsGuest() override; | 73 ~ExtensionOptionsGuest() override; |
| 74 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 74 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
| 75 | 75 |
| 76 scoped_ptr<extensions::ExtensionFunctionDispatcher> | 76 scoped_ptr<extensions::ExtensionFunctionDispatcher> |
| 77 extension_function_dispatcher_; | 77 extension_function_dispatcher_; |
| 78 scoped_ptr<extensions::ExtensionOptionsGuestDelegate> | 78 scoped_ptr<extensions::ExtensionOptionsGuestDelegate> |
| 79 extension_options_guest_delegate_; | 79 extension_options_guest_delegate_; |
| 80 GURL options_page_; | 80 GURL options_page_; |
| 81 bool has_navigated_; | |
| 82 | 81 |
| 83 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); | 82 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); |
| 84 }; | 83 }; |
| 85 | 84 |
| 86 } // namespace extensions | 85 } // namespace extensions |
| 87 | 86 |
| 88 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE
ST_H_ | 87 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE
ST_H_ |
| OLD | NEW |