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

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

Issue 1589953005: Support InputMethodManager#updateCursorAnchorInfo for Android 5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Findbugs warning / Simplify the state transition. Created 4 years, 10 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 #include "content/browser/web_contents/web_contents_impl.h" 21 #include "content/browser/web_contents/web_contents_impl.h"
22 #include "content/public/browser/android/content_view_core.h" 22 #include "content/public/browser/android/content_view_core.h"
23 #include "content/public/browser/web_contents_observer.h" 23 #include "content/public/browser/web_contents_observer.h"
24 #include "third_party/WebKit/public/web/WebInputEvent.h" 24 #include "third_party/WebKit/public/web/WebInputEvent.h"
25 #include "ui/android/overscroll_refresh.h" 25 #include "ui/android/overscroll_refresh.h"
26 #include "ui/android/view_android.h" 26 #include "ui/android/view_android.h"
27 #include "ui/gfx/geometry/rect.h" 27 #include "ui/gfx/geometry/rect.h"
28 #include "ui/gfx/geometry/rect_f.h" 28 #include "ui/gfx/geometry/rect_f.h"
29 #include "url/gurl.h" 29 #include "url/gurl.h"
30 30
31 namespace cc {
32 struct ViewportSelectionBound;
33 }
34
31 namespace ui { 35 namespace ui {
32 class WindowAndroid; 36 class WindowAndroid;
33 } 37 }
34 38
35 namespace content { 39 namespace content {
36 40
37 class GinJavaBridgeDispatcherHost; 41 class GinJavaBridgeDispatcherHost;
38 class RenderFrameHost; 42 class RenderFrameHost;
39 class RenderWidgetHostViewAndroid; 43 class RenderWidgetHostViewAndroid;
40 struct MenuItem; 44 struct MenuItem;
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 void ShowSelectPopupMenu(RenderFrameHost* frame, 302 void ShowSelectPopupMenu(RenderFrameHost* frame,
299 const gfx::Rect& bounds, 303 const gfx::Rect& bounds,
300 const std::vector<MenuItem>& items, 304 const std::vector<MenuItem>& items,
301 int selected_item, 305 int selected_item,
302 bool multiple, 306 bool multiple,
303 bool right_aligned); 307 bool right_aligned);
304 // Hides a visible popup menu. 308 // Hides a visible popup menu.
305 void HideSelectPopupMenu(); 309 void HideSelectPopupMenu();
306 310
307 // All sizes and offsets are in CSS pixels as cached by the renderer. 311 // All sizes and offsets are in CSS pixels as cached by the renderer.
312 // Selection bounds are in DIP coordinates.
aelias_OOO_until_Jul13 2016/02/10 08:23:41 This comment may cause confusion because it makes
aelias_OOO_until_Jul13 2016/02/24 03:16:39 where CSS*mPageScaleFactor==DIP (and DIP*mDeviceSc
308 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, 313 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset,
309 float page_scale_factor, 314 float page_scale_factor,
310 const gfx::Vector2dF& page_scale_factor_limits, 315 const gfx::Vector2dF& page_scale_factor_limits,
311 const gfx::SizeF& content_size, 316 const gfx::SizeF& content_size,
312 const gfx::SizeF& viewport_size, 317 const gfx::SizeF& viewport_size,
313 const gfx::Vector2dF& controls_offset, 318 const gfx::Vector2dF& controls_offset,
314 const gfx::Vector2dF& content_offset, 319 const gfx::Vector2dF& content_offset,
315 bool is_mobile_optimized_hint); 320 bool is_mobile_optimized_hint,
321 const cc::ViewportSelectionBound& selection_start);
316 322
317 void ForceUpdateImeAdapter(long native_ime_adapter); 323 void ForceUpdateImeAdapter(long native_ime_adapter);
318 void UpdateImeAdapter(long native_ime_adapter, 324 void UpdateImeAdapter(long native_ime_adapter,
319 int text_input_type, 325 int text_input_type,
320 int text_input_flags, 326 int text_input_flags,
321 const std::string& text, 327 const std::string& text,
322 int selection_start, 328 int selection_start,
323 int selection_end, 329 int selection_end,
324 int composition_start, 330 int composition_start,
325 int composition_end, 331 int composition_end,
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 472 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
467 473
468 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 474 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
469 }; 475 };
470 476
471 bool RegisterContentViewCore(JNIEnv* env); 477 bool RegisterContentViewCore(JNIEnv* env);
472 478
473 } // namespace content 479 } // namespace content
474 480
475 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 481 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698