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

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: Removed setHasPendingNavigationTransitionForTesting from CVC. 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
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 void SetupTransitionView(JNIEnv* env, jobject jobj, jstring markup);
213 void BeginExitTransition(JNIEnv* env, jobject jobj, jstring css_selector);
214
215 // Notifies the main frame that it can continue navigation (if it was deferred
216 // immediately at first response).
217 void ResumeResponseDeferredAtStart(JNIEnv* env, jobject obj);
218
219 void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj);
220
221 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); 210 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj);
222 211
223 // -------------------------------------------------------------------------- 212 // --------------------------------------------------------------------------
224 // Public methods that call to Java via JNI 213 // Public methods that call to Java via JNI
225 // -------------------------------------------------------------------------- 214 // --------------------------------------------------------------------------
226 215
227 // This method is invoked when the request is deferred immediately after
228 // receiving response headers.
229 void DidDeferAfterResponseStarted(
230 const TransitionLayerData& transition_data);
231
232 // This method is invoked when a navigation transition is detected, to
233 // determine if the embedder intends to handle it.
234 bool WillHandleDeferAfterResponseStarted();
235
236 // This method is invoked when a navigation transition has started.
237 void DidStartNavigationTransitionForFrame(int64 frame_id);
238
239 void OnSmartClipDataExtracted(const base::string16& text, 216 void OnSmartClipDataExtracted(const base::string16& text,
240 const base::string16& html, 217 const base::string16& html,
241 const gfx::Rect& clip_rect); 218 const gfx::Rect& clip_rect);
242 219
243 // Creates a popup menu with |items|. 220 // Creates a popup menu with |items|.
244 // |multiple| defines if it should support multi-select. 221 // |multiple| defines if it should support multi-select.
245 // If not |multiple|, |selected_item| sets the initially selected item. 222 // If not |multiple|, |selected_item| sets the initially selected item.
246 // Otherwise, item's "checked" flag selects it. 223 // Otherwise, item's "checked" flag selects it.
247 void ShowSelectPopupMenu(const gfx::Rect& bounds, 224 void ShowSelectPopupMenu(const gfx::Rect& bounds,
248 const std::vector<MenuItem>& items, 225 const std::vector<MenuItem>& items,
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 java_bridge_dispatcher_host_; 375 java_bridge_dispatcher_host_;
399 376
400 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 377 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
401 }; 378 };
402 379
403 bool RegisterContentViewCore(JNIEnv* env); 380 bool RegisterContentViewCore(JNIEnv* env);
404 381
405 } // namespace content 382 } // namespace content
406 383
407 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 384 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698