| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 Send(new AwViewMsg_DoHitTest(web_contents()->GetRoutingID(), | 56 Send(new AwViewMsg_DoHitTest(web_contents()->GetRoutingID(), |
| 57 view_x, | 57 view_x, |
| 58 view_y)); | 58 view_y)); |
| 59 } | 59 } |
| 60 | 60 |
| 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::SetEnableFixedLayoutMode(bool enable) { | |
| 67 DCHECK(CalledOnValidThread()); | |
| 68 Send(new AwViewMsg_SetEnableFixedLayoutMode(web_contents()->GetRoutingID(), | |
| 69 enable)); | |
| 70 } | |
| 71 | |
| 72 void AwRenderViewHostExt::SetTextZoomLevel(double level) { | 66 void AwRenderViewHostExt::SetTextZoomLevel(double level) { |
| 73 DCHECK(CalledOnValidThread()); | 67 DCHECK(CalledOnValidThread()); |
| 74 Send(new AwViewMsg_SetTextZoomLevel(web_contents()->GetRoutingID(), level)); | 68 Send(new AwViewMsg_SetTextZoomLevel(web_contents()->GetRoutingID(), level)); |
| 75 } | 69 } |
| 76 | 70 |
| 77 void AwRenderViewHostExt::ResetScrollAndScaleState() { | 71 void AwRenderViewHostExt::ResetScrollAndScaleState() { |
| 78 DCHECK(CalledOnValidThread()); | 72 DCHECK(CalledOnValidThread()); |
| 79 Send(new AwViewMsg_ResetScrollAndScaleState(web_contents()->GetRoutingID())); | 73 Send(new AwViewMsg_ResetScrollAndScaleState(web_contents()->GetRoutingID())); |
| 80 } | 74 } |
| 81 | 75 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 125 } |
| 132 | 126 |
| 133 void AwRenderViewHostExt::OnUpdateHitTestData( | 127 void AwRenderViewHostExt::OnUpdateHitTestData( |
| 134 const AwHitTestData& hit_test_data) { | 128 const AwHitTestData& hit_test_data) { |
| 135 DCHECK(CalledOnValidThread()); | 129 DCHECK(CalledOnValidThread()); |
| 136 last_hit_test_data_ = hit_test_data; | 130 last_hit_test_data_ = hit_test_data; |
| 137 has_new_hit_test_data_ = true; | 131 has_new_hit_test_data_ = true; |
| 138 } | 132 } |
| 139 | 133 |
| 140 } // namespace android_webview | 134 } // namespace android_webview |
| OLD | NEW |