Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 1254883006: Bubble scroll events from WebView guest to embedder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Complete test. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 void SetContentsOpaque(bool opaque); 240 void SetContentsOpaque(bool opaque);
241 241
242 // Find the given |search_text| in the page. Returns true if the find request 242 // Find the given |search_text| in the page. Returns true if the find request
243 // is handled by this browser plugin guest. 243 // is handled by this browser plugin guest.
244 bool Find(int request_id, 244 bool Find(int request_id,
245 const base::string16& search_text, 245 const base::string16& search_text,
246 const blink::WebFindOptions& options); 246 const blink::WebFindOptions& options);
247 bool StopFinding(StopFindAction action); 247 bool StopFinding(StopFindAction action);
248 248
249 void SendScrollCompletion(bool handled);
250
249 protected: 251 protected:
250 252
251 // BrowserPluginGuest is a WebContentsObserver of |web_contents| and 253 // BrowserPluginGuest is a WebContentsObserver of |web_contents| and
252 // |web_contents| has to stay valid for the lifetime of BrowserPluginGuest. 254 // |web_contents| has to stay valid for the lifetime of BrowserPluginGuest.
253 // Constructor protected for testing. 255 // Constructor protected for testing.
254 BrowserPluginGuest(bool has_render_view, 256 BrowserPluginGuest(bool has_render_view,
255 WebContentsImpl* web_contents, 257 WebContentsImpl* web_contents,
256 BrowserPluginGuestDelegate* delegate); 258 BrowserPluginGuestDelegate* delegate);
257 259
258 // Protected for testing. 260 // Protected for testing.
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 // Weak pointer used to ask GeolocationPermissionContext about geolocation 460 // Weak pointer used to ask GeolocationPermissionContext about geolocation
459 // permission. 461 // permission.
460 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; 462 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;
461 463
462 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 464 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
463 }; 465 };
464 466
465 } // namespace content 467 } // namespace content
466 468
467 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 469 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698