| OLD | NEW |
| 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 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 const content::NotificationSource& source, | 129 const content::NotificationSource& source, |
| 130 const content::NotificationDetails& details) override; | 130 const content::NotificationDetails& details) override; |
| 131 | 131 |
| 132 // Overridden from favicon::FaviconDriverObserver: | 132 // Overridden from favicon::FaviconDriverObserver: |
| 133 void OnFaviconUpdated(favicon::FaviconDriver* favicon_driver, | 133 void OnFaviconUpdated(favicon::FaviconDriver* favicon_driver, |
| 134 NotificationIconType notification_icon_type, | 134 NotificationIconType notification_icon_type, |
| 135 const GURL& icon_url, | 135 const GURL& icon_url, |
| 136 bool icon_url_changed, | 136 bool icon_url_changed, |
| 137 const gfx::Image& image) override; | 137 const gfx::Image& image) override; |
| 138 | 138 |
| 139 // Returns true if this tab is currently presented in the context of custom |
| 140 // tabs. Tabs can be moved between different activities so the returned value |
| 141 // might change over the lifetime of the tab. |
| 142 bool IsCurrentlyACustomTab(); |
| 143 |
| 139 // Methods called from Java via JNI ----------------------------------------- | 144 // Methods called from Java via JNI ----------------------------------------- |
| 140 | 145 |
| 141 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); | 146 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); |
| 142 void InitWebContents( | 147 void InitWebContents( |
| 143 JNIEnv* env, | 148 JNIEnv* env, |
| 144 const base::android::JavaParamRef<jobject>& obj, | 149 const base::android::JavaParamRef<jobject>& obj, |
| 145 jboolean incognito, | 150 jboolean incognito, |
| 146 const base::android::JavaParamRef<jobject>& jweb_contents, | 151 const base::android::JavaParamRef<jobject>& jweb_contents, |
| 147 const base::android::JavaParamRef<jobject>& jweb_contents_delegate, | 152 const base::android::JavaParamRef<jobject>& jweb_contents_delegate, |
| 148 const base::android::JavaParamRef<jobject>& jcontext_menu_populator); | 153 const base::android::JavaParamRef<jobject>& jcontext_menu_populator); |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 277 |
| 273 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 278 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
| 274 | 279 |
| 275 std::string webapp_manifest_scope_; | 280 std::string webapp_manifest_scope_; |
| 276 bool embedded_media_experience_enabled_; | 281 bool embedded_media_experience_enabled_; |
| 277 | 282 |
| 278 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 283 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
| 279 }; | 284 }; |
| 280 | 285 |
| 281 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 286 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
| OLD | NEW |