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: chrome/browser/android/tab_android.h

Issue 810853003: Upstream FullscreenManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 (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 #ifndef CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_TAB_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_TAB_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/jni_weak_ref.h" 10 #include "base/android/jni_weak_ref.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Called to get default favicon of current tab, return null if no 166 // Called to get default favicon of current tab, return null if no
167 // favicon is avaliable for current tab. 167 // favicon is avaliable for current tab.
168 base::android::ScopedJavaLocalRef<jobject> GetDefaultFavicon(JNIEnv* env, 168 base::android::ScopedJavaLocalRef<jobject> GetDefaultFavicon(JNIEnv* env,
169 jobject obj); 169 jobject obj);
170 170
171 void CreateHistoricalTab(JNIEnv* env, jobject obj); 171 void CreateHistoricalTab(JNIEnv* env, jobject obj);
172 172
173 static void CreateHistoricalTabFromContents( 173 static void CreateHistoricalTabFromContents(
174 content::WebContents* web_contents); 174 content::WebContents* web_contents);
175 175
176 void UpdateTopControlsState(JNIEnv* env,
177 jobject obj,
178 jint constraints,
179 jint current,
180 jboolean animate);
181
176 // Register the Tab's native methods through JNI. 182 // Register the Tab's native methods through JNI.
177 static bool RegisterTabAndroid(JNIEnv* env); 183 static bool RegisterTabAndroid(JNIEnv* env);
178 184
179 private: 185 private:
180 prerender::PrerenderManager* GetPrerenderManager() const; 186 prerender::PrerenderManager* GetPrerenderManager() const;
181 187
182 JavaObjectWeakGlobalRef weak_java_tab_; 188 JavaObjectWeakGlobalRef weak_java_tab_;
183 189
184 // The identifier used by session restore for this tab. 190 // The identifier used by session restore for this tab.
185 SessionID session_tab_id_; 191 SessionID session_tab_id_;
186 192
187 // Identifier of the window the tab is in. 193 // Identifier of the window the tab is in.
188 SessionID session_window_id_; 194 SessionID session_window_id_;
189 195
190 content::NotificationRegistrar notification_registrar_; 196 content::NotificationRegistrar notification_registrar_;
191 197
192 scoped_ptr<content::WebContents> web_contents_; 198 scoped_ptr<content::WebContents> web_contents_;
193 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> 199 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid>
194 web_contents_delegate_; 200 web_contents_delegate_;
195 201
196 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; 202 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_;
197 203
198 DISALLOW_COPY_AND_ASSIGN(TabAndroid); 204 DISALLOW_COPY_AND_ASSIGN(TabAndroid);
199 }; 205 };
200 206
201 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ 207 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698