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

Side by Side Diff: content/browser/web_contents/web_contents_android.cc

Issue 1743143002: Remove WebContents::Was{Hidden,Shown}() from the content public interface Base URL: https://chromium.googlesource.com/chromium/src.git@20160225-WebContents-DicardCursorRects
Patch Set: Fix androido Created 4 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/web_contents/web_contents_android.h" 5 #include "content/browser/web_contents/web_contents_android.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 return web_contents_->GetBrowserContext()->IsOffTheRecord(); 375 return web_contents_->GetBrowserContext()->IsOffTheRecord();
376 } 376 }
377 377
378 void WebContentsAndroid::ResumeLoadingCreatedWebContents( 378 void WebContentsAndroid::ResumeLoadingCreatedWebContents(
379 JNIEnv* env, 379 JNIEnv* env,
380 const JavaParamRef<jobject>& obj) { 380 const JavaParamRef<jobject>& obj) {
381 web_contents_->ResumeLoadingCreatedWebContents(); 381 web_contents_->ResumeLoadingCreatedWebContents();
382 } 382 }
383 383
384 void WebContentsAndroid::OnHide(JNIEnv* env, const JavaParamRef<jobject>& obj) { 384 void WebContentsAndroid::OnHide(JNIEnv* env, const JavaParamRef<jobject>& obj) {
385 web_contents_->WasHidden(); 385 static_cast<WebContentsImpl*>(web_contents_)->WasHidden();
386 } 386 }
387 387
388 void WebContentsAndroid::OnShow(JNIEnv* env, const JavaParamRef<jobject>& obj) { 388 void WebContentsAndroid::OnShow(JNIEnv* env, const JavaParamRef<jobject>& obj) {
389 web_contents_->WasShown(); 389 static_cast<WebContentsImpl*>(web_contents_)->WasShown();
390 } 390 }
391 391
392 void WebContentsAndroid::SuspendAllMediaPlayers( 392 void WebContentsAndroid::SuspendAllMediaPlayers(
393 JNIEnv* env, 393 JNIEnv* env,
394 const JavaParamRef<jobject>& jobj) { 394 const JavaParamRef<jobject>& jobj) {
395 MediaWebContentsObserverAndroid::FromWebContents(web_contents_) 395 MediaWebContentsObserverAndroid::FromWebContents(web_contents_)
396 ->SuspendAllMediaPlayers(); 396 ->SuspendAllMediaPlayers();
397 } 397 }
398 398
399 void WebContentsAndroid::SetAudioMuted(JNIEnv* env, 399 void WebContentsAndroid::SetAudioMuted(JNIEnv* env,
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 if (response == READBACK_SUCCESS) 692 if (response == READBACK_SUCCESS)
693 java_bitmap = gfx::ConvertToJavaBitmap(&bitmap); 693 java_bitmap = gfx::ConvertToJavaBitmap(&bitmap);
694 Java_WebContentsImpl_onGetContentBitmapFinished(env, 694 Java_WebContentsImpl_onGetContentBitmapFinished(env,
695 obj->obj(), 695 obj->obj(),
696 callback->obj(), 696 callback->obj(),
697 java_bitmap.obj(), 697 java_bitmap.obj(),
698 response); 698 response);
699 } 699 }
700 700
701 } // namespace content 701 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698