OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // A BrowserPluginGuest is the browser side of a browser <--> embedder | 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder |
6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder | 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder |
7 // renderer side of browser <--> embedder renderer communication. | 7 // renderer side of browser <--> embedder renderer communication. |
8 // | 8 // |
9 // BrowserPluginGuest lives on the UI thread of the browser process. Any | 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any |
10 // messages about the guest render process that the embedder might be interested | 10 // messages about the guest render process that the embedder might be interested |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 WebContents* new_contents) OVERRIDE; | 211 WebContents* new_contents) OVERRIDE; |
212 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; | 212 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; |
213 virtual void RendererResponsive(WebContents* source) OVERRIDE; | 213 virtual void RendererResponsive(WebContents* source) OVERRIDE; |
214 virtual void RunFileChooser(WebContents* web_contents, | 214 virtual void RunFileChooser(WebContents* web_contents, |
215 const FileChooserParams& params) OVERRIDE; | 215 const FileChooserParams& params) OVERRIDE; |
216 virtual bool ShouldFocusPageAfterCrash() OVERRIDE; | 216 virtual bool ShouldFocusPageAfterCrash() OVERRIDE; |
217 virtual void RequestMediaAccessPermission( | 217 virtual void RequestMediaAccessPermission( |
218 WebContents* web_contents, | 218 WebContents* web_contents, |
219 const MediaStreamRequest& request, | 219 const MediaStreamRequest& request, |
220 const MediaResponseCallback& callback) OVERRIDE; | 220 const MediaResponseCallback& callback) OVERRIDE; |
| 221 virtual bool PreHandleGestureEvent( |
| 222 content::WebContents* source, |
| 223 const blink::WebGestureEvent& event) OVERRIDE; |
221 | 224 |
222 // JavaScriptDialogManager implementation. | 225 // JavaScriptDialogManager implementation. |
223 virtual void RunJavaScriptDialog( | 226 virtual void RunJavaScriptDialog( |
224 WebContents* web_contents, | 227 WebContents* web_contents, |
225 const GURL& origin_url, | 228 const GURL& origin_url, |
226 const std::string& accept_lang, | 229 const std::string& accept_lang, |
227 JavaScriptMessageType javascript_message_type, | 230 JavaScriptMessageType javascript_message_type, |
228 const base::string16& message_text, | 231 const base::string16& message_text, |
229 const base::string16& default_prompt_text, | 232 const base::string16& default_prompt_text, |
230 const DialogClosedCallback& callback, | 233 const DialogClosedCallback& callback, |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 603 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
601 // permission. | 604 // permission. |
602 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 605 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
603 | 606 |
604 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 607 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
605 }; | 608 }; |
606 | 609 |
607 } // namespace content | 610 } // namespace content |
608 | 611 |
609 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 612 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |