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

Side by Side Diff: android_webview/native/aw_contents.cc

Issue 17291010: Clean up AwContents calls to change visibility (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/native/aw_contents.h" 5 #include "android_webview/native/aw_contents.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/aw_browser_main_parts.h" 8 #include "android_webview/browser/aw_browser_main_parts.h"
9 #include "android_webview/browser/gpu_memory_buffer_impl.h" 9 #include "android_webview/browser/gpu_memory_buffer_impl.h"
10 #include "android_webview/browser/in_process_view_renderer.h" 10 #include "android_webview/browser/in_process_view_renderer.h"
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 href.obj(), 583 href.obj(),
584 anchor_text.obj(), 584 anchor_text.obj(),
585 img_src.obj()); 585 img_src.obj());
586 } 586 }
587 587
588 void AwContents::OnSizeChanged(JNIEnv* env, jobject obj, 588 void AwContents::OnSizeChanged(JNIEnv* env, jobject obj,
589 int w, int h, int ow, int oh) { 589 int w, int h, int ow, int oh) {
590 browser_view_renderer_->OnSizeChanged(w, h); 590 browser_view_renderer_->OnSizeChanged(w, h);
591 } 591 }
592 592
593 void AwContents::SetWindowViewVisibility(JNIEnv* env, jobject obj, 593 void AwContents::SetVisibility(JNIEnv* env, jobject obj, bool visible) {
594 bool window_visible, 594 browser_view_renderer_->OnVisibilityChanged(visible);
595 bool view_visible) {
596 browser_view_renderer_->OnVisibilityChanged(window_visible, view_visible);
597 } 595 }
598 596
599 void AwContents::OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h) { 597 void AwContents::OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h) {
600 browser_view_renderer_->OnAttachedToWindow(w, h); 598 browser_view_renderer_->OnAttachedToWindow(w, h);
601 } 599 }
602 600
603 void AwContents::OnDetachedFromWindow(JNIEnv* env, jobject obj) { 601 void AwContents::OnDetachedFromWindow(JNIEnv* env, jobject obj) {
604 browser_view_renderer_->OnDetachedFromWindow(); 602 browser_view_renderer_->OnDetachedFromWindow();
605 } 603 }
606 604
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 return browser_view_renderer_->CapturePicture(); 715 return browser_view_renderer_->CapturePicture();
718 } 716 }
719 717
720 void AwContents::EnableOnNewPicture(JNIEnv* env, 718 void AwContents::EnableOnNewPicture(JNIEnv* env,
721 jobject obj, 719 jobject obj,
722 jboolean enabled) { 720 jboolean enabled) {
723 browser_view_renderer_->EnableOnNewPicture(enabled); 721 browser_view_renderer_->EnableOnNewPicture(enabled);
724 } 722 }
725 723
726 } // namespace android_webview 724 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698