| 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 | 9 |
| 10 #include "base/android/jni_helper.h" | 10 #include "base/android/jni_helper.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 bool is_folder, | 97 bool is_folder, |
| 98 bool is_partner_bookmark); | 98 bool is_partner_bookmark); |
| 99 | 99 |
| 100 // Called to notify that the new tab page has completely rendered. | 100 // Called to notify that the new tab page has completely rendered. |
| 101 virtual void OnNewTabPageReady(); | 101 virtual void OnNewTabPageReady(); |
| 102 | 102 |
| 103 // Called to determine if chrome://welcome should contain links to the terms | 103 // Called to determine if chrome://welcome should contain links to the terms |
| 104 // of service and the privacy notice. | 104 // of service and the privacy notice. |
| 105 virtual bool ShouldWelcomePageLinkToTermsOfService(); | 105 virtual bool ShouldWelcomePageLinkToTermsOfService(); |
| 106 | 106 |
| 107 static void InitTabHelpers(content::WebContents* web_contents); |
| 108 |
| 107 // Register the Tab's native methods through JNI. | 109 // Register the Tab's native methods through JNI. |
| 108 static bool RegisterTabAndroid(JNIEnv* env); | 110 static bool RegisterTabAndroid(JNIEnv* env); |
| 109 | 111 |
| 110 // CoreTabHelperDelegate ---------------------------------------------------- | 112 // CoreTabHelperDelegate ---------------------------------------------------- |
| 111 | 113 |
| 112 virtual void SwapTabContents(content::WebContents* old_contents, | 114 virtual void SwapTabContents(content::WebContents* old_contents, |
| 113 content::WebContents* new_contents) OVERRIDE; | 115 content::WebContents* new_contents) OVERRIDE; |
| 114 | 116 |
| 115 // NotificationObserver ----------------------------------------------------- | 117 // NotificationObserver ----------------------------------------------------- |
| 116 virtual void Observe(int type, | 118 virtual void Observe(int type, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 scoped_ptr<content::WebContents> web_contents_; | 152 scoped_ptr<content::WebContents> web_contents_; |
| 151 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> | 153 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> |
| 152 web_contents_delegate_; | 154 web_contents_delegate_; |
| 153 | 155 |
| 154 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 156 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
| 155 | 157 |
| 156 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 158 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
| 157 }; | 159 }; |
| 158 | 160 |
| 159 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 161 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
| OLD | NEW |