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