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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 139 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
140 const gfx::Rect& pos) override; | 140 const gfx::Rect& pos) override; |
141 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 141 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
142 void Focus() override; | 142 void Focus() override; |
143 void UpdateCursor(const WebCursor& cursor) override; | 143 void UpdateCursor(const WebCursor& cursor) override; |
144 void SetIsLoading(bool is_loading) override; | 144 void SetIsLoading(bool is_loading) override; |
145 void RenderProcessGone(base::TerminationStatus status, | 145 void RenderProcessGone(base::TerminationStatus status, |
146 int error_code) override; | 146 int error_code) override; |
147 void Destroy() override; | 147 void Destroy() override; |
148 void SetTooltipText(const base::string16& tooltip_text) override; | 148 void SetTooltipText(const base::string16& tooltip_text) override; |
149 void SelectionChanged(const base::string16& text, | |
150 size_t offset, | |
151 const gfx::Range& range) override; | |
152 gfx::Size GetRequestedRendererSize() const override; | 149 gfx::Size GetRequestedRendererSize() const override; |
153 void CopyFromCompositingSurface( | 150 void CopyFromCompositingSurface( |
154 const gfx::Rect& src_subrect, | 151 const gfx::Rect& src_subrect, |
155 const gfx::Size& dst_size, | 152 const gfx::Size& dst_size, |
156 const ReadbackRequestCallback& callback, | 153 const ReadbackRequestCallback& callback, |
157 const SkColorType preferred_color_type) override; | 154 const SkColorType preferred_color_type) override; |
158 void CopyFromCompositingSurfaceToVideoFrame( | 155 void CopyFromCompositingSurfaceToVideoFrame( |
159 const gfx::Rect& src_subrect, | 156 const gfx::Rect& src_subrect, |
160 const scoped_refptr<media::VideoFrame>& target, | 157 const scoped_refptr<media::VideoFrame>& target, |
161 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | 158 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 | 462 |
466 // TextInputManager::Observer implementation. | 463 // TextInputManager::Observer implementation. |
467 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, | 464 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, |
468 RenderWidgetHostViewBase* updated_view, | 465 RenderWidgetHostViewBase* updated_view, |
469 bool did_update_state) override; | 466 bool did_update_state) override; |
470 void OnImeCancelComposition(TextInputManager* text_input_manager, | 467 void OnImeCancelComposition(TextInputManager* text_input_manager, |
471 RenderWidgetHostViewBase* updated_view) override; | 468 RenderWidgetHostViewBase* updated_view) override; |
472 void OnSelectionBoundsChanged( | 469 void OnSelectionBoundsChanged( |
473 TextInputManager* text_input_manager, | 470 TextInputManager* text_input_manager, |
474 RenderWidgetHostViewBase* updated_view) override; | 471 RenderWidgetHostViewBase* updated_view) override; |
| 472 void OnTextSelectionChanged(TextInputManager* text_input_mangager, |
| 473 RenderWidgetHostViewBase* updated_view) override; |
475 | 474 |
476 // cc::BeginFrameObserver implementation. | 475 // cc::BeginFrameObserver implementation. |
477 void OnBeginFrame(const cc::BeginFrameArgs& args) override; | 476 void OnBeginFrame(const cc::BeginFrameArgs& args) override; |
478 const cc::BeginFrameArgs& LastUsedBeginFrameArgs() const override; | 477 const cc::BeginFrameArgs& LastUsedBeginFrameArgs() const override; |
479 void OnBeginFrameSourcePausedChanged(bool paused) override; | 478 void OnBeginFrameSourcePausedChanged(bool paused) override; |
480 | 479 |
481 // Detaches |this| from the input method object. | 480 // Detaches |this| from the input method object. |
482 void DetachFromInputMethod(); | 481 void DetachFromInputMethod(); |
483 | 482 |
484 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method | 483 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 bool disable_input_event_router_for_testing_; | 684 bool disable_input_event_router_for_testing_; |
686 | 685 |
687 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 686 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
688 | 687 |
689 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 688 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
690 }; | 689 }; |
691 | 690 |
692 } // namespace content | 691 } // namespace content |
693 | 692 |
694 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 693 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |