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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_guest.cc

Issue 597753003: Implement find in page support for top level BrowserPlugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 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 #include "extensions/browser/guest_view/web_view/web_view_guest.h" 5 #include "extensions/browser/guest_view/web_view/web_view_guest.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "content/public/browser/browser_context.h" 10 #include "content/public/browser/browser_context.h"
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 break; 585 break;
586 } 586 }
587 } 587 }
588 588
589 double WebViewGuest::GetZoom() { 589 double WebViewGuest::GetZoom() {
590 if (!web_view_guest_delegate_) 590 if (!web_view_guest_delegate_)
591 return 1.0; 591 return 1.0;
592 return web_view_guest_delegate_->GetZoom(); 592 return web_view_guest_delegate_->GetZoom();
593 } 593 }
594 594
595 void WebViewGuest::Find( 595 void WebViewGuest::StartFinding(
596 const base::string16& search_text, 596 const base::string16& search_text,
597 const blink::WebFindOptions& options, 597 const blink::WebFindOptions& options,
598 scoped_refptr<WebViewInternalFindFunction> find_function) { 598 scoped_refptr<WebViewInternalFindFunction> find_function) {
599 find_helper_.Find(web_contents(), search_text, options, find_function); 599 find_helper_.Find(web_contents(), search_text, options, find_function);
600 } 600 }
601 601
602 void WebViewGuest::StopFinding(content::StopFindAction action) { 602 void WebViewGuest::StopFinding(content::StopFindAction action) {
603 find_helper_.CancelAllFindSessions(); 603 find_helper_.CancelAllFindSessions();
604 web_contents()->StopFinding(action); 604 web_contents()->StopFinding(action);
605 } 605 }
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 WebViewGuest* guest = 1210 WebViewGuest* guest =
1211 WebViewGuest::From(embedder_render_process_id(), new_window_instance_id); 1211 WebViewGuest::From(embedder_render_process_id(), new_window_instance_id);
1212 if (!guest) 1212 if (!guest)
1213 return; 1213 return;
1214 1214
1215 if (!allow) 1215 if (!allow)
1216 guest->Destroy(); 1216 guest->Destroy();
1217 } 1217 }
1218 1218
1219 } // namespace extensions 1219 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698