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 "chrome/browser/guest_view/guest_view.h" | 9 #include "chrome/browser/guest_view/guest_view.h" |
10 #include "extensions/browser/extension_function_dispatcher.h" | 10 #include "extensions/browser/extension_function_dispatcher.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 virtual bool CanEmbedderUseGuestView( | 26 virtual bool CanEmbedderUseGuestView( |
27 const std::string& embedder_extension_id) OVERRIDE; | 27 const std::string& embedder_extension_id) OVERRIDE; |
28 virtual void CreateWebContents( | 28 virtual void CreateWebContents( |
29 const std::string& embedder_extension_id, | 29 const std::string& embedder_extension_id, |
30 int embedder_render_process_id, | 30 int embedder_render_process_id, |
31 const base::DictionaryValue& create_params, | 31 const base::DictionaryValue& create_params, |
32 const WebContentsCreatedCallback& callback) OVERRIDE; | 32 const WebContentsCreatedCallback& callback) OVERRIDE; |
33 virtual void DidAttachToEmbedder() OVERRIDE; | 33 virtual void DidAttachToEmbedder() OVERRIDE; |
34 virtual void DidInitialize() OVERRIDE; | 34 virtual void DidInitialize() OVERRIDE; |
35 virtual void DidStopLoading() OVERRIDE; | 35 virtual void DidStopLoading() OVERRIDE; |
| 36 virtual void GuestSizeChangedDueToAutoSize( |
| 37 const gfx::Size& old_size, |
| 38 const gfx::Size& new_size) OVERRIDE; |
| 39 virtual bool IsAutoSizeSupported() const OVERRIDE; |
36 | 40 |
37 // ExtensionFunctionDispatcher::Delegate implementation. | 41 // ExtensionFunctionDispatcher::Delegate implementation. |
38 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 42 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
39 | 43 |
40 // content::WebContentsObserver implementation. | 44 // content::WebContentsObserver implementation. |
41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 45 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
42 | 46 |
43 private: | 47 private: |
44 ExtensionOptionsGuest(content::BrowserContext* browser_context, | 48 ExtensionOptionsGuest(content::BrowserContext* browser_context, |
45 int guest_instance_id); | 49 int guest_instance_id); |
46 virtual ~ExtensionOptionsGuest(); | 50 virtual ~ExtensionOptionsGuest(); |
| 51 void SetUpAutoSize(); |
47 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 52 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
48 | 53 |
49 scoped_ptr<extensions::ExtensionFunctionDispatcher> | 54 scoped_ptr<extensions::ExtensionFunctionDispatcher> |
50 extension_function_dispatcher_; | 55 extension_function_dispatcher_; |
51 GURL options_page_; | 56 GURL options_page_; |
52 | 57 |
53 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); | 58 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); |
54 }; | 59 }; |
55 | 60 |
56 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H
_ | 61 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H
_ |
OLD | NEW |