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

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

Issue 351683002: Adds link disambiguation popup support to Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: attempt to fix athena build Created 6 years, 3 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 | « chrome/chrome_browser_ui.gypi ('k') | 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 InputEventAckState ack_result); 230 InputEventAckState ack_result);
231 bool FilterInputEvent(const blink::WebInputEvent& event); 231 bool FilterInputEvent(const blink::WebInputEvent& event);
232 void OnSelectionChanged(const std::string& text); 232 void OnSelectionChanged(const std::string& text);
233 void OnSelectionEvent(SelectionEventType event, 233 void OnSelectionEvent(SelectionEventType event,
234 const gfx::PointF& anchor_position); 234 const gfx::PointF& anchor_position);
235 scoped_ptr<TouchHandleDrawable> CreatePopupTouchHandleDrawable(); 235 scoped_ptr<TouchHandleDrawable> CreatePopupTouchHandleDrawable();
236 236
237 void StartContentIntent(const GURL& content_url); 237 void StartContentIntent(const GURL& content_url);
238 238
239 // Shows the disambiguation popup 239 // Shows the disambiguation popup
240 // |target_rect| --> window coordinates which |zoomed_bitmap| represents 240 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents
241 // |zoomed_bitmap| --> magnified image of potential touch targets 241 // |zoomed_bitmap| --> magnified image of potential touch targets
242 void ShowDisambiguationPopup( 242 void ShowDisambiguationPopup(
243 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); 243 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap);
244 244
245 // Creates a java-side touch event, used for injecting touch event for 245 // Creates a java-side touch event, used for injecting touch event for
246 // testing/benchmarking purposes 246 // testing/benchmarking purposes
247 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); 247 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer();
248 248
249 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); 249 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient();
250 250
251 // Returns the context that the ContentViewCore was created with, it would 251 // Returns the context that the ContentViewCore was created with, it would
252 // typically be an Activity context for an on screen view. 252 // typically be an Activity context for an on screen view.
253 base::android::ScopedJavaLocalRef<jobject> GetContext(); 253 base::android::ScopedJavaLocalRef<jobject> GetContext();
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 java_bridge_dispatcher_host_; 345 java_bridge_dispatcher_host_;
346 346
347 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 347 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
348 }; 348 };
349 349
350 bool RegisterContentViewCore(JNIEnv* env); 350 bool RegisterContentViewCore(JNIEnv* env);
351 351
352 } // namespace content 352 } // namespace content
353 353
354 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 354 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698