| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 void Hide() override; | 97 void Hide() override; |
| 98 bool IsShowing() override; | 98 bool IsShowing() override; |
| 99 gfx::Rect GetViewBounds() const override; | 99 gfx::Rect GetViewBounds() const override; |
| 100 gfx::Size GetVisibleViewportSize() const override; | 100 gfx::Size GetVisibleViewportSize() const override; |
| 101 gfx::Size GetPhysicalBackingSize() const override; | 101 gfx::Size GetPhysicalBackingSize() const override; |
| 102 bool DoBrowserControlsShrinkBlinkSize() const override; | 102 bool DoBrowserControlsShrinkBlinkSize() const override; |
| 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 ImeCancelComposition() override; | |
| 108 void FocusedNodeChanged(bool is_editable_node, | 107 void FocusedNodeChanged(bool is_editable_node, |
| 109 const gfx::Rect& node_bounds_in_screen) override; | 108 const gfx::Rect& node_bounds_in_screen) override; |
| 110 void RenderProcessGone(base::TerminationStatus status, | 109 void RenderProcessGone(base::TerminationStatus status, |
| 111 int error_code) override; | 110 int error_code) override; |
| 112 void Destroy() override; | 111 void Destroy() override; |
| 113 void SetTooltipText(const base::string16& tooltip_text) override; | 112 void SetTooltipText(const base::string16& tooltip_text) override; |
| 114 void SelectionChanged(const base::string16& text, | 113 void SelectionChanged(const base::string16& text, |
| 115 size_t offset, | 114 size_t offset, |
| 116 const gfx::Range& range) override; | 115 const gfx::Range& range) override; |
| 117 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 116 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 245 |
| 247 static void OnContextLost(); | 246 static void OnContextLost(); |
| 248 | 247 |
| 249 // TextInputManager::Observer overrides. | 248 // TextInputManager::Observer overrides. |
| 250 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, | 249 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, |
| 251 RenderWidgetHostViewBase* updated_view, | 250 RenderWidgetHostViewBase* updated_view, |
| 252 bool did_change_state) override; | 251 bool did_change_state) override; |
| 253 void OnImeCompositionRangeChanged( | 252 void OnImeCompositionRangeChanged( |
| 254 TextInputManager* text_input_manager, | 253 TextInputManager* text_input_manager, |
| 255 RenderWidgetHostViewBase* updated_view) override; | 254 RenderWidgetHostViewBase* updated_view) override; |
| 255 void OnImeCancelComposition(TextInputManager* text_input_manager, |
| 256 RenderWidgetHostViewBase* updated_view) override; |
| 256 | 257 |
| 257 private: | 258 private: |
| 258 void RunAckCallbacks(); | 259 void RunAckCallbacks(); |
| 259 | 260 |
| 260 void CheckCompositorFrameSinkChanged(uint32_t compositor_frame_sink_id); | 261 void CheckCompositorFrameSinkChanged(uint32_t compositor_frame_sink_id); |
| 261 void SubmitCompositorFrame(cc::CompositorFrame frame_data); | 262 void SubmitCompositorFrame(cc::CompositorFrame frame_data); |
| 262 void SendReclaimCompositorResources(uint32_t compositor_frame_sink_id, | 263 void SendReclaimCompositorResources(uint32_t compositor_frame_sink_id, |
| 263 bool is_swap_ack); | 264 bool is_swap_ack); |
| 264 | 265 |
| 265 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata, | 266 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata, |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 gfx::Vector2dF last_scroll_offset_; | 397 gfx::Vector2dF last_scroll_offset_; |
| 397 | 398 |
| 398 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 399 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 399 | 400 |
| 400 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 401 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 401 }; | 402 }; |
| 402 | 403 |
| 403 } // namespace content | 404 } // namespace content |
| 404 | 405 |
| 405 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 406 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |