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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 2659433002: Track Text Selection information in TextInputManager (OOPIF for Android) (Closed)
Patch Set: Clean ups Created 3 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 float GetTopControlsHeight() const override; 103 float GetTopControlsHeight() const override;
104 float GetBottomControlsHeight() const override; 104 float GetBottomControlsHeight() const override;
105 void UpdateCursor(const WebCursor& cursor) override; 105 void UpdateCursor(const WebCursor& cursor) override;
106 void SetIsLoading(bool is_loading) override; 106 void SetIsLoading(bool is_loading) override;
107 void FocusedNodeChanged(bool is_editable_node, 107 void FocusedNodeChanged(bool is_editable_node,
108 const gfx::Rect& node_bounds_in_screen) override; 108 const gfx::Rect& node_bounds_in_screen) override;
109 void RenderProcessGone(base::TerminationStatus status, 109 void RenderProcessGone(base::TerminationStatus status,
110 int error_code) override; 110 int error_code) override;
111 void Destroy() override; 111 void Destroy() override;
112 void SetTooltipText(const base::string16& tooltip_text) override; 112 void SetTooltipText(const base::string16& tooltip_text) override;
113 void SelectionChanged(const base::string16& text,
114 size_t offset,
115 const gfx::Range& range) override;
116 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 113 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
117 void SetBackgroundColor(SkColor color) override; 114 void SetBackgroundColor(SkColor color) override;
118 void CopyFromCompositingSurface( 115 void CopyFromCompositingSurface(
119 const gfx::Rect& src_subrect, 116 const gfx::Rect& src_subrect,
120 const gfx::Size& dst_size, 117 const gfx::Size& dst_size,
121 const ReadbackRequestCallback& callback, 118 const ReadbackRequestCallback& callback,
122 const SkColorType preferred_color_type) override; 119 const SkColorType preferred_color_type) override;
123 void CopyFromCompositingSurfaceToVideoFrame( 120 void CopyFromCompositingSurfaceToVideoFrame(
124 const gfx::Rect& src_subrect, 121 const gfx::Rect& src_subrect,
125 const scoped_refptr<media::VideoFrame>& target, 122 const scoped_refptr<media::VideoFrame>& target,
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 245
249 // TextInputManager::Observer overrides. 246 // TextInputManager::Observer overrides.
250 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, 247 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager,
251 RenderWidgetHostViewBase* updated_view, 248 RenderWidgetHostViewBase* updated_view,
252 bool did_change_state) override; 249 bool did_change_state) override;
253 void OnImeCompositionRangeChanged( 250 void OnImeCompositionRangeChanged(
254 TextInputManager* text_input_manager, 251 TextInputManager* text_input_manager,
255 RenderWidgetHostViewBase* updated_view) override; 252 RenderWidgetHostViewBase* updated_view) override;
256 void OnImeCancelComposition(TextInputManager* text_input_manager, 253 void OnImeCancelComposition(TextInputManager* text_input_manager,
257 RenderWidgetHostViewBase* updated_view) override; 254 RenderWidgetHostViewBase* updated_view) override;
255 void OnTextSelectionChanged(TextInputManager* text_input_manager,
256 RenderWidgetHostViewBase* updated_view) override;
258 257
259 private: 258 private:
260 void RunAckCallbacks(); 259 void RunAckCallbacks();
261 260
262 void CheckCompositorFrameSinkChanged(uint32_t compositor_frame_sink_id); 261 void CheckCompositorFrameSinkChanged(uint32_t compositor_frame_sink_id);
263 void SubmitCompositorFrame(cc::CompositorFrame frame_data); 262 void SubmitCompositorFrame(cc::CompositorFrame frame_data);
264 void SendReclaimCompositorResources(uint32_t compositor_frame_sink_id, 263 void SendReclaimCompositorResources(uint32_t compositor_frame_sink_id,
265 bool is_swap_ack); 264 bool is_swap_ack);
266 265
267 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata, 266 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata,
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 gfx::Vector2dF last_scroll_offset_; 398 gfx::Vector2dF last_scroll_offset_;
400 399
401 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 400 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
402 401
403 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 402 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
404 }; 403 };
405 404
406 } // namespace content 405 } // namespace content
407 406
408 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 407 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698