OLD | NEW |
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 <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 void Destroy() override; | 118 void Destroy() override; |
119 void SetTooltipText(const base::string16& tooltip_text) override; | 119 void SetTooltipText(const base::string16& tooltip_text) override; |
120 void SelectionChanged(const base::string16& text, | 120 void SelectionChanged(const base::string16& text, |
121 size_t offset, | 121 size_t offset, |
122 const gfx::Range& range) override; | 122 const gfx::Range& range) override; |
123 void SelectionBoundsChanged( | 123 void SelectionBoundsChanged( |
124 const ViewHostMsg_SelectionBounds_Params& params) override; | 124 const ViewHostMsg_SelectionBounds_Params& params) override; |
125 void AcceleratedSurfaceInitialized(int route_id) override; | 125 void AcceleratedSurfaceInitialized(int route_id) override; |
126 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 126 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
127 void SetBackgroundColor(SkColor color) override; | 127 void SetBackgroundColor(SkColor color) override; |
128 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, | 128 void CopyFromCompositingSurface( |
129 const gfx::Size& dst_size, | 129 const gfx::Rect& src_subrect, |
130 ReadbackRequestCallback& callback, | 130 const gfx::Size& dst_size, |
131 const SkColorType color_type) override; | 131 ReadbackRequestCallback& callback, |
| 132 const SkColorType preferred_color_type) override; |
132 void CopyFromCompositingSurfaceToVideoFrame( | 133 void CopyFromCompositingSurfaceToVideoFrame( |
133 const gfx::Rect& src_subrect, | 134 const gfx::Rect& src_subrect, |
134 const scoped_refptr<media::VideoFrame>& target, | 135 const scoped_refptr<media::VideoFrame>& target, |
135 const base::Callback<void(bool)>& callback) override; | 136 const base::Callback<void(bool)>& callback) override; |
136 bool CanCopyToVideoFrame() const override; | 137 bool CanCopyToVideoFrame() const override; |
137 void GetScreenInfo(blink::WebScreenInfo* results) override; | 138 void GetScreenInfo(blink::WebScreenInfo* results) override; |
138 gfx::Rect GetBoundsInRootWindow() override; | 139 gfx::Rect GetBoundsInRootWindow() override; |
139 gfx::GLSurfaceHandle GetCompositingSurface() override; | 140 gfx::GLSurfaceHandle GetCompositingSurface() override; |
140 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 141 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
141 InputEventAckState ack_result) override; | 142 InputEventAckState ack_result) override; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 bool OnTouchHandleEvent(const ui::MotionEvent& event); | 219 bool OnTouchHandleEvent(const ui::MotionEvent& event); |
219 void ResetGestureDetection(); | 220 void ResetGestureDetection(); |
220 void SetDoubleTapSupportEnabled(bool enabled); | 221 void SetDoubleTapSupportEnabled(bool enabled); |
221 void SetMultiTouchZoomSupportEnabled(bool enabled); | 222 void SetMultiTouchZoomSupportEnabled(bool enabled); |
222 | 223 |
223 long GetNativeImeAdapter(); | 224 long GetNativeImeAdapter(); |
224 | 225 |
225 void WasResized(); | 226 void WasResized(); |
226 | 227 |
227 void GetScaledContentBitmap(float scale, | 228 void GetScaledContentBitmap(float scale, |
228 SkColorType color_type, | 229 SkColorType preferred_color_type, |
229 gfx::Rect src_subrect, | 230 gfx::Rect src_subrect, |
230 ReadbackRequestCallback& result_callback); | 231 ReadbackRequestCallback& result_callback); |
231 | 232 |
232 scoped_refptr<cc::Layer> CreateDelegatedLayer() const; | 233 scoped_refptr<cc::Layer> CreateDelegatedLayer() const; |
233 | 234 |
234 bool HasValidFrame() const; | 235 bool HasValidFrame() const; |
235 | 236 |
236 void MoveCaret(const gfx::Point& point); | 237 void MoveCaret(const gfx::Point& point); |
237 void DismissTextHandles(); | 238 void DismissTextHandles(); |
238 void SetTextHandlesTemporarilyHidden(bool hidden); | 239 void SetTextHandlesTemporarilyHidden(bool hidden); |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 gfx::Vector2dF last_scroll_offset_; | 407 gfx::Vector2dF last_scroll_offset_; |
407 | 408 |
408 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 409 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
409 | 410 |
410 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 411 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
411 }; | 412 }; |
412 | 413 |
413 } // namespace content | 414 } // namespace content |
414 | 415 |
415 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 416 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |