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

Side by Side Diff: android_webview/browser/renderer_host/aw_render_view_host_ext.cc

Issue 12217134: [Android WebView] Implement WebSettings.{get|set}LoadWithOverviewMode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comment for the message Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « android_webview/browser/renderer_host/aw_render_view_host_ext.h ('k') | android_webview/common/render_view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698