| 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/aw_switches.h" | 9 #include "android_webview/common/aw_switches.h" |
| 10 #include "android_webview/common/render_view_messages.h" | 10 #include "android_webview/common/render_view_messages.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 if (web_contents()->GetRenderViewHost()) { | 98 if (web_contents()->GetRenderViewHost()) { |
| 99 Send(new AwViewMsg_SetBackgroundColor(web_contents()->GetRoutingID(), | 99 Send(new AwViewMsg_SetBackgroundColor(web_contents()->GetRoutingID(), |
| 100 background_color_)); | 100 background_color_)); |
| 101 } | 101 } |
| 102 } | 102 } |
| 103 | 103 |
| 104 void AwRenderViewHostExt::SetJsOnlineProperty(bool network_up) { | 104 void AwRenderViewHostExt::SetJsOnlineProperty(bool network_up) { |
| 105 Send(new AwViewMsg_SetJsOnlineProperty(network_up)); | 105 Send(new AwViewMsg_SetJsOnlineProperty(network_up)); |
| 106 } | 106 } |
| 107 | 107 |
| 108 void AwRenderViewHostExt::PauseOrResumeGeolocation(bool should_pause) { |
| 109 Send(new AwViewMsg_PauseOrResumeGeolocation(web_contents()->GetRoutingID(), |
| 110 should_pause)); |
| 111 } |
| 112 |
| 108 void AwRenderViewHostExt::RenderViewCreated( | 113 void AwRenderViewHostExt::RenderViewCreated( |
| 109 content::RenderViewHost* render_view_host) { | 114 content::RenderViewHost* render_view_host) { |
| 110 Send(new AwViewMsg_SetBackgroundColor(web_contents()->GetRoutingID(), | 115 Send(new AwViewMsg_SetBackgroundColor(web_contents()->GetRoutingID(), |
| 111 background_color_)); | 116 background_color_)); |
| 112 } | 117 } |
| 113 | 118 |
| 114 void AwRenderViewHostExt::RenderProcessGone(base::TerminationStatus status) { | 119 void AwRenderViewHostExt::RenderProcessGone(base::TerminationStatus status) { |
| 115 DCHECK(CalledOnValidThread()); | 120 DCHECK(CalledOnValidThread()); |
| 116 for (std::map<int, DocumentHasImagesResult>::iterator pending_req = | 121 for (std::map<int, DocumentHasImagesResult>::iterator pending_req = |
| 117 pending_document_has_images_requests_.begin(); | 122 pending_document_has_images_requests_.begin(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 void AwRenderViewHostExt::OnPageScaleFactorChanged(float page_scale_factor) { | 175 void AwRenderViewHostExt::OnPageScaleFactorChanged(float page_scale_factor) { |
| 171 client_->OnWebLayoutPageScaleFactorChanged(page_scale_factor); | 176 client_->OnWebLayoutPageScaleFactorChanged(page_scale_factor); |
| 172 } | 177 } |
| 173 | 178 |
| 174 void AwRenderViewHostExt::OnContentsSizeChanged( | 179 void AwRenderViewHostExt::OnContentsSizeChanged( |
| 175 const gfx::Size& contents_size) { | 180 const gfx::Size& contents_size) { |
| 176 client_->OnWebLayoutContentsSizeChanged(contents_size); | 181 client_->OnWebLayoutContentsSizeChanged(contents_size); |
| 177 } | 182 } |
| 178 | 183 |
| 179 } // namespace android_webview | 184 } // namespace android_webview |
| OLD | NEW |