OLD | NEW |
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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 break; | 581 break; |
582 } | 582 } |
583 } | 583 } |
584 | 584 |
585 double WebViewGuest::GetZoom() { | 585 double WebViewGuest::GetZoom() { |
586 if (!web_view_guest_delegate_) | 586 if (!web_view_guest_delegate_) |
587 return 1.0; | 587 return 1.0; |
588 return web_view_guest_delegate_->GetZoom(); | 588 return web_view_guest_delegate_->GetZoom(); |
589 } | 589 } |
590 | 590 |
591 void WebViewGuest::Find( | 591 void WebViewGuest::StartFinding( |
592 const base::string16& search_text, | 592 const base::string16& search_text, |
593 const blink::WebFindOptions& options, | 593 const blink::WebFindOptions& options, |
594 scoped_refptr<WebViewInternalFindFunction> find_function) { | 594 scoped_refptr<WebViewInternalFindFunction> find_function) { |
595 find_helper_.Find(web_contents(), search_text, options, find_function); | 595 find_helper_.Find(web_contents(), search_text, options, find_function); |
596 } | 596 } |
597 | 597 |
598 void WebViewGuest::StopFinding(content::StopFindAction action) { | 598 void WebViewGuest::StopFinding(content::StopFindAction action) { |
599 find_helper_.CancelAllFindSessions(); | 599 find_helper_.CancelAllFindSessions(); |
600 web_contents()->StopFinding(action); | 600 web_contents()->StopFinding(action); |
601 } | 601 } |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 WebViewGuest* guest = | 1217 WebViewGuest* guest = |
1218 WebViewGuest::From(embedder_render_process_id(), new_window_instance_id); | 1218 WebViewGuest::From(embedder_render_process_id(), new_window_instance_id); |
1219 if (!guest) | 1219 if (!guest) |
1220 return; | 1220 return; |
1221 | 1221 |
1222 if (!allow) | 1222 if (!allow) |
1223 guest->Destroy(); | 1223 guest->Destroy(); |
1224 } | 1224 } |
1225 | 1225 |
1226 } // namespace extensions | 1226 } // namespace extensions |
OLD | NEW |