| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 250 |
| 251 void SetContentsOpaque(bool opaque); | 251 void SetContentsOpaque(bool opaque); |
| 252 | 252 |
| 253 // Find the given |search_text| in the page. Returns true if the find request | 253 // Find the given |search_text| in the page. Returns true if the find request |
| 254 // is handled by this browser plugin guest. | 254 // is handled by this browser plugin guest. |
| 255 bool Find(int request_id, | 255 bool Find(int request_id, |
| 256 const base::string16& search_text, | 256 const base::string16& search_text, |
| 257 const blink::WebFindOptions& options); | 257 const blink::WebFindOptions& options); |
| 258 bool StopFinding(StopFindAction action); | 258 bool StopFinding(StopFindAction action); |
| 259 | 259 |
| 260 void ResendEventToEmbedder(const blink::WebInputEvent& event); |
| 261 |
| 260 protected: | 262 protected: |
| 261 | 263 |
| 262 // BrowserPluginGuest is a WebContentsObserver of |web_contents| and | 264 // BrowserPluginGuest is a WebContentsObserver of |web_contents| and |
| 263 // |web_contents| has to stay valid for the lifetime of BrowserPluginGuest. | 265 // |web_contents| has to stay valid for the lifetime of BrowserPluginGuest. |
| 264 // Constructor protected for testing. | 266 // Constructor protected for testing. |
| 265 BrowserPluginGuest(bool has_render_view, | 267 BrowserPluginGuest(bool has_render_view, |
| 266 WebContentsImpl* web_contents, | 268 WebContentsImpl* web_contents, |
| 267 BrowserPluginGuestDelegate* delegate); | 269 BrowserPluginGuestDelegate* delegate); |
| 268 | 270 |
| 269 // Protected for testing. | 271 // Protected for testing. |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 469 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
| 468 // permission. | 470 // permission. |
| 469 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 471 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
| 470 | 472 |
| 471 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 473 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 472 }; | 474 }; |
| 473 | 475 |
| 474 } // namespace content | 476 } // namespace content |
| 475 | 477 |
| 476 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 478 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |