Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: chrome/browser/android/tab_android.h

Issue 740983002: Implement window.print() on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 170
167 void CreateHistoricalTab(JNIEnv* env, jobject obj); 171 void CreateHistoricalTab(JNIEnv* env, jobject obj);
168 172
169 static void CreateHistoricalTabFromContents( 173 static void CreateHistoricalTabFromContents(
170 content::WebContents* web_contents); 174 content::WebContents* web_contents);
171 175
(...skipping 16 matching lines...) Expand all
188 scoped_ptr<content::WebContents> web_contents_; 192 scoped_ptr<content::WebContents> web_contents_;
189 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> 193 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid>
190 web_contents_delegate_; 194 web_contents_delegate_;
191 195
192 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; 196 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_;
193 197
194 DISALLOW_COPY_AND_ASSIGN(TabAndroid); 198 DISALLOW_COPY_AND_ASSIGN(TabAndroid);
195 }; 199 };
196 200
197 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ 201 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/Tab.java ('k') | chrome/browser/android/tab_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698