| 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_find_helper.h" | 5 #include "extensions/browser/guest_view/web_view/web_view_find_helper.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "components/guest_view/browser/guest_view_event.h" |
| 9 #include "extensions/browser/api/guest_view/web_view/web_view_internal_api.h" | 10 #include "extensions/browser/api/guest_view/web_view/web_view_internal_api.h" |
| 10 #include "extensions/browser/guest_view/guest_view_event.h" | |
| 11 #include "extensions/browser/guest_view/web_view/web_view_constants.h" | 11 #include "extensions/browser/guest_view/web_view/web_view_constants.h" |
| 12 | 12 |
| 13 using guestview::GuestViewEvent; |
| 14 |
| 13 namespace extensions { | 15 namespace extensions { |
| 14 | 16 |
| 15 WebViewFindHelper::WebViewFindHelper(WebViewGuest* webview_guest) | 17 WebViewFindHelper::WebViewFindHelper(WebViewGuest* webview_guest) |
| 16 : webview_guest_(webview_guest), current_find_request_id_(0) { | 18 : webview_guest_(webview_guest), current_find_request_id_(0) { |
| 17 } | 19 } |
| 18 | 20 |
| 19 WebViewFindHelper::~WebViewFindHelper() { | 21 WebViewFindHelper::~WebViewFindHelper() { |
| 20 } | 22 } |
| 21 | 23 |
| 22 void WebViewFindHelper::CancelAllFindSessions() { | 24 void WebViewFindHelper::CancelAllFindSessions() { |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 base::DictionaryValue results; | 276 base::DictionaryValue results; |
| 275 find_results_.PrepareResults(&results); | 277 find_results_.PrepareResults(&results); |
| 276 results.SetBoolean(webview::kFindCanceled, canceled); | 278 results.SetBoolean(webview::kFindCanceled, canceled); |
| 277 | 279 |
| 278 // Call the callback. | 280 // Call the callback. |
| 279 find_function_->SetResult(results.DeepCopy()); | 281 find_function_->SetResult(results.DeepCopy()); |
| 280 find_function_->SendResponse(true); | 282 find_function_->SendResponse(true); |
| 281 } | 283 } |
| 282 | 284 |
| 283 } // namespace extensions | 285 } // namespace extensions |
| OLD | NEW |