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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 jobject obj, | 136 jobject obj, |
137 jboolean delete_native); | 137 jboolean delete_native); |
138 base::android::ScopedJavaLocalRef<jobject> GetProfileAndroid(JNIEnv* env, | 138 base::android::ScopedJavaLocalRef<jobject> GetProfileAndroid(JNIEnv* env, |
139 jobject obj); | 139 jobject obj); |
140 ToolbarModel::SecurityLevel GetSecurityLevel(JNIEnv* env, jobject obj); | 140 ToolbarModel::SecurityLevel GetSecurityLevel(JNIEnv* env, jobject obj); |
141 void SetActiveNavigationEntryTitleForUrl(JNIEnv* env, | 141 void SetActiveNavigationEntryTitleForUrl(JNIEnv* env, |
142 jobject obj, | 142 jobject obj, |
143 jstring jurl, | 143 jstring jurl, |
144 jstring jtitle); | 144 jstring jtitle); |
145 | 145 |
| 146 bool Print(JNIEnv* env, jobject obj); |
| 147 |
146 protected: | 148 protected: |
147 virtual ~TabAndroid(); | 149 virtual ~TabAndroid(); |
148 | 150 |
149 private: | 151 private: |
150 JavaObjectWeakGlobalRef weak_java_tab_; | 152 JavaObjectWeakGlobalRef weak_java_tab_; |
151 | 153 |
152 SessionID session_tab_id_; | 154 SessionID session_tab_id_; |
153 | 155 |
154 content::NotificationRegistrar notification_registrar_; | 156 content::NotificationRegistrar notification_registrar_; |
155 | 157 |
156 scoped_ptr<content::WebContents> web_contents_; | 158 scoped_ptr<content::WebContents> web_contents_; |
157 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> | 159 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> |
158 web_contents_delegate_; | 160 web_contents_delegate_; |
159 | 161 |
160 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 162 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
161 | 163 |
162 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 164 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
163 }; | 165 }; |
164 | 166 |
165 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 167 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
OLD | NEW |