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

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

Issue 300323005: Route selection bounds updates through the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Defer selection updates until after compositor scheduling Created 6 years, 6 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 int composition_start, int composition_end, 257 int composition_start, int composition_end,
258 bool show_ime_if_needed, bool is_non_ime_change); 258 bool show_ime_if_needed, bool is_non_ime_change);
259 void SetTitle(const base::string16& title); 259 void SetTitle(const base::string16& title);
260 void OnBackgroundColorChanged(SkColor color); 260 void OnBackgroundColorChanged(SkColor color);
261 261
262 bool HasFocus(); 262 bool HasFocus();
263 void OnGestureEventAck(const blink::WebGestureEvent& event, 263 void OnGestureEventAck(const blink::WebGestureEvent& event,
264 InputEventAckState ack_result); 264 InputEventAckState ack_result);
265 bool FilterInputEvent(const blink::WebInputEvent& event); 265 bool FilterInputEvent(const blink::WebInputEvent& event);
266 void OnSelectionChanged(const std::string& text); 266 void OnSelectionChanged(const std::string& text);
267 void OnSelectionBoundsChanged( 267 void OnSelectionBoundsChanged(const gfx::PointF& anchor,
268 const ViewHostMsg_SelectionBounds_Params& params); 268 const gfx::PointF& focus,
269 int anchor_dir,
270 int focus_dir,
271 bool is_anchor_visible,
272 bool is_focus_visible);
269 273
270 void StartContentIntent(const GURL& content_url); 274 void StartContentIntent(const GURL& content_url);
271 275
272 // Shows the disambiguation popup 276 // Shows the disambiguation popup
273 // |target_rect| --> window coordinates which |zoomed_bitmap| represents 277 // |target_rect| --> window coordinates which |zoomed_bitmap| represents
274 // |zoomed_bitmap| --> magnified image of potential touch targets 278 // |zoomed_bitmap| --> magnified image of potential touch targets
275 void ShowDisambiguationPopup( 279 void ShowDisambiguationPopup(
276 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); 280 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap);
277 281
278 // Creates a java-side touch event, used for injecting touch event for 282 // Creates a java-side touch event, used for injecting touch event for
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 java_bridge_dispatcher_host_manager_; 381 java_bridge_dispatcher_host_manager_;
378 382
379 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 383 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
380 }; 384 };
381 385
382 bool RegisterContentViewCore(JNIEnv* env); 386 bool RegisterContentViewCore(JNIEnv* env);
383 387
384 } // namespace content 388 } // namespace content
385 389
386 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 390 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698