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

Unified Diff: android_webview/browser/renderer_host/aw_render_view_host_ext.cc

Issue 12041009: [Android WebView] Migrate the rendering code to a separate set of classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload error, re-uploading. 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/renderer_host/aw_render_view_host_ext.cc
diff --git a/android_webview/browser/renderer_host/aw_render_view_host_ext.cc b/android_webview/browser/renderer_host/aw_render_view_host_ext.cc
index d76c7e9c8d857e98d536f19964ffec25da765ba8..0c7f0827a444348991e244bfe5dc843b9b13389a 100644
--- a/android_webview/browser/renderer_host/aw_render_view_host_ext.cc
+++ b/android_webview/browser/renderer_host/aw_render_view_host_ext.cc
@@ -18,11 +18,9 @@
namespace android_webview {
-AwRenderViewHostExt::AwRenderViewHostExt(content::WebContents* contents,
- Client* client)
+AwRenderViewHostExt::AwRenderViewHostExt(content::WebContents* contents)
: content::WebContentsObserver(contents),
- has_new_hit_test_data_(false),
- client_(client) {
+ has_new_hit_test_data_(false) {
}
AwRenderViewHostExt::~AwRenderViewHostExt() {}
@@ -65,11 +63,6 @@ const AwHitTestData& AwRenderViewHostExt::GetLastHitTestData() const {
return last_hit_test_data_;
}
-void AwRenderViewHostExt::EnableCapturePictureCallback(bool enabled) {
- Send(new AwViewMsg_EnableCapturePictureCallback(
- web_contents()->GetRoutingID(), enabled));
-}
-
void AwRenderViewHostExt::SetTextZoomLevel(double level) {
DCHECK(CalledOnValidThread());
Send(new AwViewMsg_SetTextZoomLevel(web_contents()->GetRoutingID(), level));
@@ -101,8 +94,6 @@ bool AwRenderViewHostExt::OnMessageReceived(const IPC::Message& message) {
OnDocumentHasImagesResponse)
IPC_MESSAGE_HANDLER(AwViewHostMsg_UpdateHitTestData,
OnUpdateHitTestData)
- IPC_MESSAGE_HANDLER(AwViewHostMsg_PictureUpdated,
- OnPictureUpdated)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -129,24 +120,4 @@ void AwRenderViewHostExt::OnUpdateHitTestData(
has_new_hit_test_data_ = true;
}
-void AwRenderViewHostExt::OnPictureUpdated() {
- if (client_)
- client_->OnPictureUpdated(web_contents()->GetRenderProcessHost()->GetID(),
- routing_id());
-}
-
-bool AwRenderViewHostExt::IsRenderViewReady() const {
- return web_contents()->GetRenderProcessHost()->HasConnection() &&
- web_contents()->GetRenderViewHost() &&
- web_contents()->GetRenderViewHost()->IsRenderViewLive();
-}
-
-void AwRenderViewHostExt::CapturePictureSync() {
- if (!IsRenderViewReady())
- return;
-
- ScopedAllowWaitForLegacyWebViewApi wait;
- Send(new AwViewMsg_CapturePictureSync(web_contents()->GetRoutingID()));
-}
-
} // namespace android_webview

Powered by Google App Engine
This is Rietveld 408576698