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

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 414423002: Removing ContentViewCore dependencies from few functions which acts as direct wrapper to WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed few nits and new line issues. Created 6 years, 4 months 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 jint transition_type, 87 jint transition_type,
88 jstring j_referrer_url, 88 jstring j_referrer_url,
89 jint referrer_policy, 89 jint referrer_policy,
90 jint ua_override_option, 90 jint ua_override_option,
91 jstring extra_headers, 91 jstring extra_headers,
92 jbyteArray post_data, 92 jbyteArray post_data,
93 jstring base_url_for_data_url, 93 jstring base_url_for_data_url,
94 jstring virtual_url_for_data_url, 94 jstring virtual_url_for_data_url,
95 jboolean can_load_local_resources, 95 jboolean can_load_local_resources,
96 jboolean is_renderer_initiated); 96 jboolean is_renderer_initiated);
97 base::android::ScopedJavaLocalRef<jstring> GetURL(JNIEnv* env, jobject) const;
98 jboolean IsIncognito(JNIEnv* env, jobject obj);
99 void SendOrientationChangeEvent(JNIEnv* env, jobject obj, jint orientation); 97 void SendOrientationChangeEvent(JNIEnv* env, jobject obj, jint orientation);
100 jboolean OnTouchEvent(JNIEnv* env, 98 jboolean OnTouchEvent(JNIEnv* env,
101 jobject obj, 99 jobject obj,
102 jobject motion_event, 100 jobject motion_event,
103 jlong time_ms, 101 jlong time_ms,
104 jint android_action, 102 jint android_action,
105 jint pointer_count, 103 jint pointer_count,
106 jint history_size, 104 jint history_size,
107 jint action_index, 105 jint action_index,
108 jfloat pos_x_0, 106 jfloat pos_x_0,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 200
203 void ExtractSmartClipData(JNIEnv* env, 201 void ExtractSmartClipData(JNIEnv* env,
204 jobject obj, 202 jobject obj,
205 jint x, 203 jint x,
206 jint y, 204 jint y,
207 jint width, 205 jint width,
208 jint height); 206 jint height);
209 207
210 void SetBackgroundOpaque(JNIEnv* env, jobject jobj, jboolean opaque); 208 void SetBackgroundOpaque(JNIEnv* env, jobject jobj, jboolean opaque);
211 209
212 // Notifies the main frame that it can continue navigation (if it was deferred
213 // immediately at first response).
214 void ResumeResponseDeferredAtStart(JNIEnv* env, jobject obj);
215
216 void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj);
217
218 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); 210 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj);
219 211
220 // -------------------------------------------------------------------------- 212 // --------------------------------------------------------------------------
221 // Public methods that call to Java via JNI 213 // Public methods that call to Java via JNI
222 // -------------------------------------------------------------------------- 214 // --------------------------------------------------------------------------
223 215
224 // This method is invoked when the request is deferred immediately after 216 // This method is invoked when the request is deferred immediately after
225 // receiving response headers. 217 // receiving response headers.
226 void DidDeferAfterResponseStarted( 218 void DidDeferAfterResponseStarted(
227 const scoped_refptr<net::HttpResponseHeaders>& headers, 219 const scoped_refptr<net::HttpResponseHeaders>& headers,
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 java_bridge_dispatcher_host_; 383 java_bridge_dispatcher_host_;
392 384
393 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 385 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
394 }; 386 };
395 387
396 bool RegisterContentViewCore(JNIEnv* env); 388 bool RegisterContentViewCore(JNIEnv* env);
397 389
398 } // namespace content 390 } // namespace content
399 391
400 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 392 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | content/browser/android/content_view_core_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698