| 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_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 jbyteArray j_post_data, | 152 jbyteArray j_post_data, |
| 153 jint page_transition, | 153 jint page_transition, |
| 154 jstring j_referrer_url, | 154 jstring j_referrer_url, |
| 155 jint referrer_policy, | 155 jint referrer_policy, |
| 156 jboolean is_renderer_initiated); | 156 jboolean is_renderer_initiated); |
| 157 void SetActiveNavigationEntryTitleForUrl(JNIEnv* env, | 157 void SetActiveNavigationEntryTitleForUrl(JNIEnv* env, |
| 158 jobject obj, | 158 jobject obj, |
| 159 jstring jurl, | 159 jstring jurl, |
| 160 jstring jtitle); | 160 jstring jtitle); |
| 161 bool Print(JNIEnv* env, jobject obj); | 161 bool Print(JNIEnv* env, jobject obj); |
| 162 |
| 163 void ShowPrintDialog(); |
| 164 |
| 162 // Called to get default favicon of current tab, return null if no | 165 // Called to get default favicon of current tab, return null if no |
| 163 // favicon is avaliable for current tab. | 166 // favicon is avaliable for current tab. |
| 164 base::android::ScopedJavaLocalRef<jobject> GetDefaultFavicon(JNIEnv* env, | 167 base::android::ScopedJavaLocalRef<jobject> GetDefaultFavicon(JNIEnv* env, |
| 165 jobject obj); | 168 jobject obj); |
| 166 jboolean IsFaviconValid(JNIEnv* env, jobject jobj); | 169 jboolean IsFaviconValid(JNIEnv* env, jobject jobj); |
| 167 | 170 |
| 168 // Register the Tab's native methods through JNI. | 171 // Register the Tab's native methods through JNI. |
| 169 static bool RegisterTabAndroid(JNIEnv* env); | 172 static bool RegisterTabAndroid(JNIEnv* env); |
| 170 | 173 |
| 171 private: | 174 private: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 184 scoped_ptr<content::WebContents> web_contents_; | 187 scoped_ptr<content::WebContents> web_contents_; |
| 185 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> | 188 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> |
| 186 web_contents_delegate_; | 189 web_contents_delegate_; |
| 187 | 190 |
| 188 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 191 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
| 189 | 192 |
| 190 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 193 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
| 191 }; | 194 }; |
| 192 | 195 |
| 193 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 196 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
| OLD | NEW |