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

Side by Side Diff: chrome/browser/android/tab_android.cc

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Remove clearThumbnailPlaceholder fn Created 3 years, 5 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 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 "chrome/browser/android/tab_android.h" 5 #include "chrome/browser/android/tab_android.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 if (tab_content_manager == tab_content_manager_) 794 if (tab_content_manager == tab_content_manager_)
795 return; 795 return;
796 796
797 if (tab_content_manager_) 797 if (tab_content_manager_)
798 tab_content_manager_->DetachLiveLayer(GetAndroidId(), GetContentLayer()); 798 tab_content_manager_->DetachLiveLayer(GetAndroidId(), GetContentLayer());
799 tab_content_manager_ = tab_content_manager; 799 tab_content_manager_ = tab_content_manager;
800 if (tab_content_manager_) 800 if (tab_content_manager_)
801 tab_content_manager_->AttachLiveLayer(GetAndroidId(), GetContentLayer()); 801 tab_content_manager_->AttachLiveLayer(GetAndroidId(), GetContentLayer());
802 } 802 }
803 803
804 void TabAndroid::ClearThumbnailPlaceholder(JNIEnv* env,
805 const JavaParamRef<jobject>& obj) {
806 if (tab_content_manager_)
807 tab_content_manager_->NativeRemoveTabThumbnail(GetAndroidId());
808 }
809
804 scoped_refptr<content::DevToolsAgentHost> TabAndroid::GetDevToolsAgentHost() { 810 scoped_refptr<content::DevToolsAgentHost> TabAndroid::GetDevToolsAgentHost() {
805 return devtools_host_; 811 return devtools_host_;
806 } 812 }
807 813
808 void TabAndroid::SetDevToolsAgentHost( 814 void TabAndroid::SetDevToolsAgentHost(
809 scoped_refptr<content::DevToolsAgentHost> host) { 815 scoped_refptr<content::DevToolsAgentHost> host) {
810 devtools_host_ = std::move(host); 816 devtools_host_ = std::move(host);
811 } 817 }
812 818
813 static void Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { 819 static void Init(JNIEnv* env, const JavaParamRef<jobject>& obj) {
814 TRACE_EVENT0("native", "TabAndroid::Init"); 820 TRACE_EVENT0("native", "TabAndroid::Init");
815 // This will automatically bind to the Java object and pass ownership there. 821 // This will automatically bind to the Java object and pass ownership there.
816 new TabAndroid(env, obj); 822 new TabAndroid(env, obj);
817 } 823 }
818 824
819 // static 825 // static
820 bool TabAndroid::RegisterTabAndroid(JNIEnv* env) { 826 bool TabAndroid::RegisterTabAndroid(JNIEnv* env) {
821 return RegisterNativesImpl(env); 827 return RegisterNativesImpl(env);
822 } 828 }
OLDNEW
« no previous file with comments | « chrome/browser/android/tab_android.h ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698