| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 virtual bool ShouldWelcomePageLinkToTermsOfService(); | 105 virtual bool ShouldWelcomePageLinkToTermsOfService(); |
| 106 | 106 |
| 107 static void InitTabHelpers(content::WebContents* web_contents); | 107 static void InitTabHelpers(content::WebContents* web_contents); |
| 108 | 108 |
| 109 // Register the Tab's native methods through JNI. | 109 // Register the Tab's native methods through JNI. |
| 110 static bool RegisterTabAndroid(JNIEnv* env); | 110 static bool RegisterTabAndroid(JNIEnv* env); |
| 111 | 111 |
| 112 // CoreTabHelperDelegate ---------------------------------------------------- | 112 // CoreTabHelperDelegate ---------------------------------------------------- |
| 113 | 113 |
| 114 virtual void SwapTabContents(content::WebContents* old_contents, | 114 virtual void SwapTabContents(content::WebContents* old_contents, |
| 115 content::WebContents* new_contents) OVERRIDE; | 115 content::WebContents* new_contents, |
| 116 bool did_start_load, |
| 117 bool did_finish_load) OVERRIDE; |
| 116 | 118 |
| 117 // NotificationObserver ----------------------------------------------------- | 119 // NotificationObserver ----------------------------------------------------- |
| 118 virtual void Observe(int type, | 120 virtual void Observe(int type, |
| 119 const content::NotificationSource& source, | 121 const content::NotificationSource& source, |
| 120 const content::NotificationDetails& details) OVERRIDE; | 122 const content::NotificationDetails& details) OVERRIDE; |
| 121 | 123 |
| 122 // Methods called from Java via JNI ----------------------------------------- | 124 // Methods called from Java via JNI ----------------------------------------- |
| 123 | 125 |
| 124 virtual void Destroy(JNIEnv* env, jobject obj); | 126 virtual void Destroy(JNIEnv* env, jobject obj); |
| 125 virtual void InitWebContents(JNIEnv* env, | 127 virtual void InitWebContents(JNIEnv* env, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 152 scoped_ptr<content::WebContents> web_contents_; | 154 scoped_ptr<content::WebContents> web_contents_; |
| 153 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> | 155 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> |
| 154 web_contents_delegate_; | 156 web_contents_delegate_; |
| 155 | 157 |
| 156 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 158 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
| 157 | 159 |
| 158 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 160 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
| 159 }; | 161 }; |
| 160 | 162 |
| 161 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 163 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
| OLD | NEW |