Chromium Code Reviews| 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_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 const gfx::Range& range, | 146 const gfx::Range& range, |
| 147 const std::vector<gfx::Rect>& character_bounds) override; | 147 const std::vector<gfx::Rect>& character_bounds) override; |
| 148 void RenderProcessGone(base::TerminationStatus status, | 148 void RenderProcessGone(base::TerminationStatus status, |
| 149 int error_code) override; | 149 int error_code) override; |
| 150 void Destroy() override; | 150 void Destroy() override; |
| 151 void SetTooltipText(const base::string16& tooltip_text) override; | 151 void SetTooltipText(const base::string16& tooltip_text) override; |
| 152 void SelectionChanged(const base::string16& text, | 152 void SelectionChanged(const base::string16& text, |
| 153 size_t offset, | 153 size_t offset, |
| 154 const gfx::Range& range) override; | 154 const gfx::Range& range) override; |
| 155 gfx::Size GetRequestedRendererSize() const override; | 155 gfx::Size GetRequestedRendererSize() const override; |
| 156 void SelectionBoundsChanged( | |
| 157 const ViewHostMsg_SelectionBounds_Params& params) override; | |
| 158 void CopyFromCompositingSurface( | 156 void CopyFromCompositingSurface( |
| 159 const gfx::Rect& src_subrect, | 157 const gfx::Rect& src_subrect, |
| 160 const gfx::Size& dst_size, | 158 const gfx::Size& dst_size, |
| 161 const ReadbackRequestCallback& callback, | 159 const ReadbackRequestCallback& callback, |
| 162 const SkColorType preferred_color_type) override; | 160 const SkColorType preferred_color_type) override; |
| 163 void CopyFromCompositingSurfaceToVideoFrame( | 161 void CopyFromCompositingSurfaceToVideoFrame( |
| 164 const gfx::Rect& src_subrect, | 162 const gfx::Rect& src_subrect, |
| 165 const scoped_refptr<media::VideoFrame>& target, | 163 const scoped_refptr<media::VideoFrame>& target, |
| 166 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | 164 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
| 167 bool CanCopyToVideoFrame() const override; | 165 bool CanCopyToVideoFrame() const override; |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 467 const base::TimeTicks& timebase, | 465 const base::TimeTicks& timebase, |
| 468 const base::TimeDelta& interval) override; | 466 const base::TimeDelta& interval) override; |
| 469 void SetBeginFrameSource(cc::BeginFrameSource* source) override; | 467 void SetBeginFrameSource(cc::BeginFrameSource* source) override; |
| 470 | 468 |
| 471 // TextInputManager::Observer implementation. | 469 // TextInputManager::Observer implementation. |
| 472 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, | 470 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, |
| 473 RenderWidgetHostViewBase* updated_view, | 471 RenderWidgetHostViewBase* updated_view, |
| 474 bool did_update_state) override; | 472 bool did_update_state) override; |
| 475 void OnImeCancelComposition(TextInputManager* text_input_manager, | 473 void OnImeCancelComposition(TextInputManager* text_input_manager, |
| 476 RenderWidgetHostViewBase* updated_view) override; | 474 RenderWidgetHostViewBase* updated_view) override; |
| 475 void OnSelectionBoundsChanged( | |
| 476 TextInputManager* text_input_manager, | |
| 477 RenderWidgetHostViewBase* updated_view) override; | |
| 477 | 478 |
| 478 // cc::BeginFrameObserver implementation. | 479 // cc::BeginFrameObserver implementation. |
| 479 void OnBeginFrame(const cc::BeginFrameArgs& args) override; | 480 void OnBeginFrame(const cc::BeginFrameArgs& args) override; |
| 480 const cc::BeginFrameArgs& LastUsedBeginFrameArgs() const override; | 481 const cc::BeginFrameArgs& LastUsedBeginFrameArgs() const override; |
| 481 void OnBeginFrameSourcePausedChanged(bool paused) override; | 482 void OnBeginFrameSourcePausedChanged(bool paused) override; |
| 482 | 483 |
| 483 // Detaches |this| from the input method object. | 484 // Detaches |this| from the input method object. |
| 484 void DetachFromInputMethod(); | 485 void DetachFromInputMethod(); |
| 485 | 486 |
| 486 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method | 487 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 579 | 580 |
| 580 // The cursor for the page. This is passed up from the renderer. | 581 // The cursor for the page. This is passed up from the renderer. |
| 581 WebCursor current_cursor_; | 582 WebCursor current_cursor_; |
| 582 | 583 |
| 583 // Stores the current state of the active pointers targeting this | 584 // Stores the current state of the active pointers targeting this |
| 584 // object. | 585 // object. |
| 585 ui::MotionEventAura pointer_state_; | 586 ui::MotionEventAura pointer_state_; |
| 586 | 587 |
| 587 // Bounds for the selection. | 588 // Bounds for the selection. |
| 588 gfx::SelectionBound selection_anchor_; | 589 gfx::SelectionBound selection_anchor_; |
| 589 gfx::SelectionBound selection_focus_; | 590 gfx::SelectionBound selection_focus_; |
|
EhsanK
2016/06/29 18:36:43
These are no longer needed as we track the state i
| |
| 590 | 591 |
| 591 // The current composition character bounds. | 592 // The current composition character bounds. |
| 592 std::vector<gfx::Rect> composition_character_bounds_; | 593 std::vector<gfx::Rect> composition_character_bounds_; |
| 593 | 594 |
| 594 // Indicates if there is onging composition text. | 595 // Indicates if there is onging composition text. |
| 595 bool has_composition_text_; | 596 bool has_composition_text_; |
| 596 | 597 |
| 597 // Whether return characters should be passed on to the RenderWidgetHostImpl. | 598 // Whether return characters should be passed on to the RenderWidgetHostImpl. |
| 598 bool accept_return_character_; | 599 bool accept_return_character_; |
| 599 | 600 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 693 bool disable_input_event_router_for_testing_; | 694 bool disable_input_event_router_for_testing_; |
| 694 | 695 |
| 695 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 696 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 696 | 697 |
| 697 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 698 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 698 }; | 699 }; |
| 699 | 700 |
| 700 } // namespace content | 701 } // namespace content |
| 701 | 702 |
| 702 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 703 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |