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 // Sets the tab as content to be printed through JNI. |
| 164 void SetPendingPrint(); |
| 165 |
162 // Called to get default favicon of current tab, return null if no | 166 // Called to get default favicon of current tab, return null if no |
163 // favicon is avaliable for current tab. | 167 // favicon is avaliable for current tab. |
164 base::android::ScopedJavaLocalRef<jobject> GetDefaultFavicon(JNIEnv* env, | 168 base::android::ScopedJavaLocalRef<jobject> GetDefaultFavicon(JNIEnv* env, |
165 jobject obj); | 169 jobject obj); |
166 // Register the Tab's native methods through JNI. | 170 // Register the Tab's native methods through JNI. |
167 static bool RegisterTabAndroid(JNIEnv* env); | 171 static bool RegisterTabAndroid(JNIEnv* env); |
168 | 172 |
169 private: | 173 private: |
170 prerender::PrerenderManager* GetPrerenderManager() const; | 174 prerender::PrerenderManager* GetPrerenderManager() const; |
171 | 175 |
(...skipping 10 matching lines...) Expand all Loading... |
182 scoped_ptr<content::WebContents> web_contents_; | 186 scoped_ptr<content::WebContents> web_contents_; |
183 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> | 187 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> |
184 web_contents_delegate_; | 188 web_contents_delegate_; |
185 | 189 |
186 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 190 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
187 | 191 |
188 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 192 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
189 }; | 193 }; |
190 | 194 |
191 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 195 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
OLD | NEW |