| 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 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h" | 5 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/aw_browser_context.h" | 7 #include "android_webview/browser/aw_browser_context.h" |
| 8 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" | 8 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" |
| 9 #include "android_webview/common/render_view_messages.h" | 9 #include "android_webview/common/render_view_messages.h" |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 const AwHitTestData& AwRenderViewHostExt::GetLastHitTestData() const { | 61 const AwHitTestData& AwRenderViewHostExt::GetLastHitTestData() const { |
| 62 DCHECK(CalledOnValidThread()); | 62 DCHECK(CalledOnValidThread()); |
| 63 return last_hit_test_data_; | 63 return last_hit_test_data_; |
| 64 } | 64 } |
| 65 | 65 |
| 66 void AwRenderViewHostExt::SetTextZoomLevel(double level) { | 66 void AwRenderViewHostExt::SetTextZoomLevel(double level) { |
| 67 DCHECK(CalledOnValidThread()); | 67 DCHECK(CalledOnValidThread()); |
| 68 Send(new AwViewMsg_SetTextZoomLevel(web_contents()->GetRoutingID(), level)); | 68 Send(new AwViewMsg_SetTextZoomLevel(web_contents()->GetRoutingID(), level)); |
| 69 } | 69 } |
| 70 | 70 |
| 71 void AwRenderViewHostExt::ResetScrollAndScaleState() { |
| 72 DCHECK(CalledOnValidThread()); |
| 73 Send(new AwViewMsg_ResetScrollAndScaleState(web_contents()->GetRoutingID())); |
| 74 } |
| 75 |
| 71 void AwRenderViewHostExt::RenderViewGone(base::TerminationStatus status) { | 76 void AwRenderViewHostExt::RenderViewGone(base::TerminationStatus status) { |
| 72 DCHECK(CalledOnValidThread()); | 77 DCHECK(CalledOnValidThread()); |
| 73 for (std::map<int, DocumentHasImagesResult>::iterator pending_req = | 78 for (std::map<int, DocumentHasImagesResult>::iterator pending_req = |
| 74 pending_document_has_images_requests_.begin(); | 79 pending_document_has_images_requests_.begin(); |
| 75 pending_req != pending_document_has_images_requests_.end(); | 80 pending_req != pending_document_has_images_requests_.end(); |
| 76 ++pending_req) { | 81 ++pending_req) { |
| 77 pending_req->second.Run(false); | 82 pending_req->second.Run(false); |
| 78 } | 83 } |
| 79 } | 84 } |
| 80 | 85 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 } | 119 } |
| 115 | 120 |
| 116 void AwRenderViewHostExt::OnUpdateHitTestData( | 121 void AwRenderViewHostExt::OnUpdateHitTestData( |
| 117 const AwHitTestData& hit_test_data) { | 122 const AwHitTestData& hit_test_data) { |
| 118 DCHECK(CalledOnValidThread()); | 123 DCHECK(CalledOnValidThread()); |
| 119 last_hit_test_data_ = hit_test_data; | 124 last_hit_test_data_ = hit_test_data; |
| 120 has_new_hit_test_data_ = true; | 125 has_new_hit_test_data_ = true; |
| 121 } | 126 } |
| 122 | 127 |
| 123 } // namespace android_webview | 128 } // namespace android_webview |
| OLD | NEW |