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 27 matching lines...) Expand all Loading... |
38 const gfx::Size& new_size) OVERRIDE; | 38 const gfx::Size& new_size) OVERRIDE; |
39 virtual bool IsAutoSizeSupported() const OVERRIDE; | 39 virtual bool IsAutoSizeSupported() const OVERRIDE; |
40 | 40 |
41 // ExtensionFunctionDispatcher::Delegate implementation. | 41 // ExtensionFunctionDispatcher::Delegate implementation. |
42 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 42 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
43 | 43 |
44 // content::WebContentsDelegate implementation. | 44 // content::WebContentsDelegate implementation. |
45 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 45 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
46 virtual bool HandleContextMenu( | 46 virtual bool HandleContextMenu( |
47 const content::ContextMenuParams& params) OVERRIDE; | 47 const content::ContextMenuParams& params) OVERRIDE; |
| 48 virtual void RunFileChooser( |
| 49 content::WebContents* web_contents, |
| 50 const content::FileChooserParams& params) OVERRIDE; |
48 virtual bool ShouldCreateWebContents( | 51 virtual bool ShouldCreateWebContents( |
49 content::WebContents* web_contents, | 52 content::WebContents* web_contents, |
50 int route_id, | 53 int route_id, |
51 WindowContainerType window_container_type, | 54 WindowContainerType window_container_type, |
52 const base::string16& frame_name, | 55 const base::string16& frame_name, |
53 const GURL& target_url, | 56 const GURL& target_url, |
54 const std::string& partition_id, | 57 const std::string& partition_id, |
55 content::SessionStorageNamespace* session_storage_namespace) OVERRIDE; | 58 content::SessionStorageNamespace* session_storage_namespace) OVERRIDE; |
56 | 59 |
57 // content::WebContentsObserver implementation. | 60 // content::WebContentsObserver implementation. |
58 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 61 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
59 | 62 |
60 private: | 63 private: |
61 ExtensionOptionsGuest(content::BrowserContext* browser_context, | 64 ExtensionOptionsGuest(content::BrowserContext* browser_context, |
62 int guest_instance_id); | 65 int guest_instance_id); |
63 virtual ~ExtensionOptionsGuest(); | 66 virtual ~ExtensionOptionsGuest(); |
64 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 67 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
65 void SetUpAutoSize(); | 68 void SetUpAutoSize(); |
66 | 69 |
67 scoped_ptr<extensions::ExtensionFunctionDispatcher> | 70 scoped_ptr<extensions::ExtensionFunctionDispatcher> |
68 extension_function_dispatcher_; | 71 extension_function_dispatcher_; |
69 GURL options_page_; | 72 GURL options_page_; |
70 | 73 |
71 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); | 74 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); |
72 }; | 75 }; |
73 | 76 |
74 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H
_ | 77 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H
_ |
OLD | NEW |