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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 | 48 |
| 49 namespace cc { | 49 namespace cc { |
| 50 class CopyOutputRequest; | 50 class CopyOutputRequest; |
| 51 class CopyOutputResult; | 51 class CopyOutputResult; |
| 52 class DelegatedFrameData; | 52 class DelegatedFrameData; |
| 53 } | 53 } |
| 54 | 54 |
| 55 namespace gfx { | 55 namespace gfx { |
| 56 class Canvas; | 56 class Canvas; |
| 57 class Display; | 57 class Display; |
| 58 class Rect; | |
| 58 } | 59 } |
| 59 | 60 |
| 60 namespace gpu { | 61 namespace gpu { |
| 61 struct Mailbox; | 62 struct Mailbox; |
| 62 } | 63 } |
| 63 | 64 |
| 64 namespace ui { | 65 namespace ui { |
| 65 class CompositorLock; | 66 class CompositorLock; |
| 66 class InputMethod; | 67 class InputMethod; |
| 67 class LocatedEvent; | 68 class LocatedEvent; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 void SelectionBoundsChanged( | 147 void SelectionBoundsChanged( |
| 147 const ViewHostMsg_SelectionBounds_Params& params) override; | 148 const ViewHostMsg_SelectionBounds_Params& params) override; |
| 148 void CopyFromCompositingSurface( | 149 void CopyFromCompositingSurface( |
| 149 const gfx::Rect& src_subrect, | 150 const gfx::Rect& src_subrect, |
| 150 const gfx::Size& dst_size, | 151 const gfx::Size& dst_size, |
| 151 const ReadbackRequestCallback& callback, | 152 const ReadbackRequestCallback& callback, |
| 152 const SkColorType preferred_color_type) override; | 153 const SkColorType preferred_color_type) override; |
| 153 void CopyFromCompositingSurfaceToVideoFrame( | 154 void CopyFromCompositingSurfaceToVideoFrame( |
| 154 const gfx::Rect& src_subrect, | 155 const gfx::Rect& src_subrect, |
| 155 const scoped_refptr<media::VideoFrame>& target, | 156 const scoped_refptr<media::VideoFrame>& target, |
| 156 const base::Callback<void(bool)>& callback) override; | 157 const base::Callback<void(gfx::Rect, bool)>& callback) override; |
| 157 bool CanCopyToVideoFrame() const override; | 158 bool CanCopyToVideoFrame() const override; |
| 158 void BeginFrameSubscription( | 159 void BeginFrameSubscription( |
| 159 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; | 160 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
| 160 void EndFrameSubscription() override; | 161 void EndFrameSubscription() override; |
| 161 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 162 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| 162 void GetScreenInfo(blink::WebScreenInfo* results) override; | 163 void GetScreenInfo(blink::WebScreenInfo* results) override; |
| 163 bool GetScreenColorProfile(std::vector<char>* color_profile) override; | 164 bool GetScreenColorProfile(std::vector<char>* color_profile) override; |
| 164 gfx::Rect GetBoundsInRootWindow() override; | 165 gfx::Rect GetBoundsInRootWindow() override; |
| 165 void WheelEventAck(const blink::WebMouseWheelEvent& event, | 166 void WheelEventAck(const blink::WebMouseWheelEvent& event, |
| 166 InputEventAckState ack_result) override; | 167 InputEventAckState ack_result) override; |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 419 bool ShouldMoveToCenter(); | 420 bool ShouldMoveToCenter(); |
| 420 | 421 |
| 421 // Called after |window_| is parented to a WindowEventDispatcher. | 422 // Called after |window_| is parented to a WindowEventDispatcher. |
| 422 void AddedToRootWindow(); | 423 void AddedToRootWindow(); |
| 423 | 424 |
| 424 // Called prior to removing |window_| from a WindowEventDispatcher. | 425 // Called prior to removing |window_| from a WindowEventDispatcher. |
| 425 void RemovingFromRootWindow(); | 426 void RemovingFromRootWindow(); |
| 426 | 427 |
| 427 // DelegatedFrameHostClient implementation. | 428 // DelegatedFrameHostClient implementation. |
| 428 ui::Layer* DelegatedFrameHostGetLayer() const override; | 429 ui::Layer* DelegatedFrameHostGetLayer() const override; |
| 430 aura::Window* DelegatedFrameHostGetNativeView() const override; | |
|
miu
2015/10/23 01:55:13
I don't think you need this anymore.
Irfan
2015/10/26 23:10:32
Done.
| |
| 429 bool DelegatedFrameHostIsVisible() const override; | 431 bool DelegatedFrameHostIsVisible() const override; |
| 430 gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override; | 432 gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override; |
| 431 bool DelegatedFrameCanCreateResizeLock() const override; | 433 bool DelegatedFrameCanCreateResizeLock() const override; |
| 432 scoped_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( | 434 scoped_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( |
| 433 bool defer_compositor_lock) override; | 435 bool defer_compositor_lock) override; |
| 434 void DelegatedFrameHostResizeLockWasReleased() override; | 436 void DelegatedFrameHostResizeLockWasReleased() override; |
| 435 void DelegatedFrameHostSendCompositorSwapAck( | 437 void DelegatedFrameHostSendCompositorSwapAck( |
| 436 int output_surface_id, | 438 int output_surface_id, |
| 437 const cc::CompositorFrameAck& ack) override; | 439 const cc::CompositorFrameAck& ack) override; |
| 438 void DelegatedFrameHostSendReclaimCompositorResources( | 440 void DelegatedFrameHostSendReclaimCompositorResources( |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 666 bool set_focus_on_mouse_down_; | 668 bool set_focus_on_mouse_down_; |
| 667 | 669 |
| 668 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 670 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 669 | 671 |
| 670 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 672 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 671 }; | 673 }; |
| 672 | 674 |
| 673 } // namespace content | 675 } // namespace content |
| 674 | 676 |
| 675 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 677 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |