| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 bool IsShowing() override; | 100 bool IsShowing() override; |
| 101 gfx::Rect GetViewBounds() const override; | 101 gfx::Rect GetViewBounds() const override; |
| 102 gfx::Size GetVisibleViewportSize() const override; | 102 gfx::Size GetVisibleViewportSize() const override; |
| 103 gfx::Size GetPhysicalBackingSize() const override; | 103 gfx::Size GetPhysicalBackingSize() const override; |
| 104 bool DoBrowserControlsShrinkBlinkSize() const override; | 104 bool DoBrowserControlsShrinkBlinkSize() const override; |
| 105 float GetTopControlsHeight() const override; | 105 float GetTopControlsHeight() const override; |
| 106 float GetBottomControlsHeight() const override; | 106 float GetBottomControlsHeight() const override; |
| 107 void UpdateCursor(const WebCursor& cursor) override; | 107 void UpdateCursor(const WebCursor& cursor) override; |
| 108 void SetIsLoading(bool is_loading) override; | 108 void SetIsLoading(bool is_loading) override; |
| 109 void ImeCancelComposition() override; | 109 void ImeCancelComposition() override; |
| 110 void ImeCompositionRangeChanged( | |
| 111 const gfx::Range& range, | |
| 112 const std::vector<gfx::Rect>& character_bounds) override; | |
| 113 void FocusedNodeChanged(bool is_editable_node, | 110 void FocusedNodeChanged(bool is_editable_node, |
| 114 const gfx::Rect& node_bounds_in_screen) override; | 111 const gfx::Rect& node_bounds_in_screen) override; |
| 115 void RenderProcessGone(base::TerminationStatus status, | 112 void RenderProcessGone(base::TerminationStatus status, |
| 116 int error_code) override; | 113 int error_code) override; |
| 117 void Destroy() override; | 114 void Destroy() override; |
| 118 void SetTooltipText(const base::string16& tooltip_text) override; | 115 void SetTooltipText(const base::string16& tooltip_text) override; |
| 119 void SelectionChanged(const base::string16& text, | 116 void SelectionChanged(const base::string16& text, |
| 120 size_t offset, | 117 size_t offset, |
| 121 const gfx::Range& range) override; | 118 const gfx::Range& range) override; |
| 122 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 119 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 } | 248 } |
| 252 | 249 |
| 253 void OnOverscrollRefreshHandlerAvailable(); | 250 void OnOverscrollRefreshHandlerAvailable(); |
| 254 | 251 |
| 255 static void OnContextLost(); | 252 static void OnContextLost(); |
| 256 | 253 |
| 257 // TextInputManager::Observer overrides. | 254 // TextInputManager::Observer overrides. |
| 258 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, | 255 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, |
| 259 RenderWidgetHostViewBase* updated_view, | 256 RenderWidgetHostViewBase* updated_view, |
| 260 bool did_change_state) override; | 257 bool did_change_state) override; |
| 258 void OnImeCompositionRangeChanged( |
| 259 TextInputManager* text_input_manager, |
| 260 RenderWidgetHostViewBase* updated_view) override; |
| 261 | 261 |
| 262 private: | 262 private: |
| 263 void RunAckCallbacks(); | 263 void RunAckCallbacks(); |
| 264 | 264 |
| 265 void CheckCompositorFrameSinkChanged(uint32_t compositor_frame_sink_id); | 265 void CheckCompositorFrameSinkChanged(uint32_t compositor_frame_sink_id); |
| 266 void SubmitCompositorFrame(cc::CompositorFrame frame_data); | 266 void SubmitCompositorFrame(cc::CompositorFrame frame_data); |
| 267 void SendReclaimCompositorResources(uint32_t compositor_frame_sink_id, | 267 void SendReclaimCompositorResources(uint32_t compositor_frame_sink_id, |
| 268 bool is_swap_ack); | 268 bool is_swap_ack); |
| 269 | 269 |
| 270 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata, | 270 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata, |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 gfx::Vector2dF last_scroll_offset_; | 401 gfx::Vector2dF last_scroll_offset_; |
| 402 | 402 |
| 403 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 403 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 404 | 404 |
| 405 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 405 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 406 }; | 406 }; |
| 407 | 407 |
| 408 } // namespace content | 408 } // namespace content |
| 409 | 409 |
| 410 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 410 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |