| 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_WEB_VIEW_WEB_VIEW_GUEST_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 content::WebContents* source, | 129 content::WebContents* source, |
| 130 const content::MediaStreamRequest& request, | 130 const content::MediaStreamRequest& request, |
| 131 const content::MediaResponseCallback& callback) override; | 131 const content::MediaResponseCallback& callback) override; |
| 132 bool CheckMediaAccessPermission(content::WebContents* source, | 132 bool CheckMediaAccessPermission(content::WebContents* source, |
| 133 const GURL& security_origin, | 133 const GURL& security_origin, |
| 134 content::MediaStreamType type) override; | 134 content::MediaStreamType type) override; |
| 135 void CanDownload(content::RenderViewHost* render_view_host, | 135 void CanDownload(content::RenderViewHost* render_view_host, |
| 136 const GURL& url, | 136 const GURL& url, |
| 137 const std::string& request_method, | 137 const std::string& request_method, |
| 138 const base::Callback<void(bool)>& callback) override; | 138 const base::Callback<void(bool)>& callback) override; |
| 139 content::JavaScriptDialogManager* GetJavaScriptDialogManager() override; | 139 content::JavaScriptDialogManager* GetJavaScriptDialogManager( |
| 140 content::WebContents* source) override; |
| 140 content::ColorChooser* OpenColorChooser( | 141 content::ColorChooser* OpenColorChooser( |
| 141 content::WebContents* web_contents, | 142 content::WebContents* web_contents, |
| 142 SkColor color, | 143 SkColor color, |
| 143 const std::vector<content::ColorSuggestion>& suggestions) override; | 144 const std::vector<content::ColorSuggestion>& suggestions) override; |
| 144 void AddNewContents(content::WebContents* source, | 145 void AddNewContents(content::WebContents* source, |
| 145 content::WebContents* new_contents, | 146 content::WebContents* new_contents, |
| 146 WindowOpenDisposition disposition, | 147 WindowOpenDisposition disposition, |
| 147 const gfx::Rect& initial_pos, | 148 const gfx::Rect& initial_pos, |
| 148 bool user_gesture, | 149 bool user_gesture, |
| 149 bool* was_blocked) override; | 150 bool* was_blocked) override; |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 // This is used to ensure pending tasks will not fire after this object is | 362 // This is used to ensure pending tasks will not fire after this object is |
| 362 // destroyed. | 363 // destroyed. |
| 363 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; | 364 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; |
| 364 | 365 |
| 365 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 366 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
| 366 }; | 367 }; |
| 367 | 368 |
| 368 } // namespace extensions | 369 } // namespace extensions |
| 369 | 370 |
| 370 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 371 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| OLD | NEW |