| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 void RenderProcessGone(base::TerminationStatus status, | 179 void RenderProcessGone(base::TerminationStatus status, |
| 180 int error_code) override; | 180 int error_code) override; |
| 181 void Destroy() override; | 181 void Destroy() override; |
| 182 void SetTooltipText(const base::string16& tooltip_text) override; | 182 void SetTooltipText(const base::string16& tooltip_text) override; |
| 183 void SelectionChanged(const base::string16& text, | 183 void SelectionChanged(const base::string16& text, |
| 184 size_t offset, | 184 size_t offset, |
| 185 const gfx::Range& range) override; | 185 const gfx::Range& range) override; |
| 186 gfx::Size GetRequestedRendererSize() const override; | 186 gfx::Size GetRequestedRendererSize() const override; |
| 187 void SelectionBoundsChanged( | 187 void SelectionBoundsChanged( |
| 188 const ViewHostMsg_SelectionBounds_Params& params) override; | 188 const ViewHostMsg_SelectionBounds_Params& params) override; |
| 189 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, | 189 void CopyFromCompositingSurface( |
| 190 const gfx::Size& dst_size, | 190 const gfx::Rect& src_subrect, |
| 191 ReadbackRequestCallback& callback, | 191 const gfx::Size& dst_size, |
| 192 const SkColorType color_type) override; | 192 ReadbackRequestCallback& callback, |
| 193 const SkColorType preferred_color_type) override; |
| 193 void CopyFromCompositingSurfaceToVideoFrame( | 194 void CopyFromCompositingSurfaceToVideoFrame( |
| 194 const gfx::Rect& src_subrect, | 195 const gfx::Rect& src_subrect, |
| 195 const scoped_refptr<media::VideoFrame>& target, | 196 const scoped_refptr<media::VideoFrame>& target, |
| 196 const base::Callback<void(bool)>& callback) override; | 197 const base::Callback<void(bool)>& callback) override; |
| 197 bool CanCopyToVideoFrame() const override; | 198 bool CanCopyToVideoFrame() const override; |
| 198 bool CanSubscribeFrame() const override; | 199 bool CanSubscribeFrame() const override; |
| 199 void BeginFrameSubscription( | 200 void BeginFrameSubscription( |
| 200 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; | 201 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
| 201 void EndFrameSubscription() override; | 202 void EndFrameSubscription() override; |
| 202 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 203 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 } | 352 } |
| 352 | 353 |
| 353 // Called when the context menu is about to be displayed. | 354 // Called when the context menu is about to be displayed. |
| 354 void OnShowContextMenu(); | 355 void OnShowContextMenu(); |
| 355 | 356 |
| 356 protected: | 357 protected: |
| 357 ~RenderWidgetHostViewAura() override; | 358 ~RenderWidgetHostViewAura() override; |
| 358 | 359 |
| 359 // Exposed for tests. | 360 // Exposed for tests. |
| 360 aura::Window* window() { return window_; } | 361 aura::Window* window() { return window_; } |
| 361 SkColorType PreferredReadbackFormat() override; | 362 |
| 362 DelegatedFrameHost* GetDelegatedFrameHost() const { | 363 DelegatedFrameHost* GetDelegatedFrameHost() const { |
| 363 return delegated_frame_host_.get(); | 364 return delegated_frame_host_.get(); |
| 364 } | 365 } |
| 365 const ui::MotionEventAura& pointer_state() const { return pointer_state_; } | 366 const ui::MotionEventAura& pointer_state() const { return pointer_state_; } |
| 366 | 367 |
| 367 private: | 368 private: |
| 368 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 369 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 369 PopupRetainsCaptureAfterMouseRelease); | 370 PopupRetainsCaptureAfterMouseRelease); |
| 370 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText); | 371 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText); |
| 371 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState); | 372 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState); |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 // compositing surface and showing the disambiguation popup. | 671 // compositing surface and showing the disambiguation popup. |
| 671 gfx::Vector2dF disambiguation_scroll_offset_; | 672 gfx::Vector2dF disambiguation_scroll_offset_; |
| 672 | 673 |
| 673 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 674 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 674 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 675 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 675 }; | 676 }; |
| 676 | 677 |
| 677 } // namespace content | 678 } // namespace content |
| 678 | 679 |
| 679 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 680 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |