| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 const SkColorType color_type) override; | 137 const SkColorType color_type) override; |
| 138 void CopyFromSurfaceToVideoFrame( | 138 void CopyFromSurfaceToVideoFrame( |
| 139 const gfx::Rect& src_rect, | 139 const gfx::Rect& src_rect, |
| 140 scoped_refptr<media::VideoFrame> target, | 140 scoped_refptr<media::VideoFrame> target, |
| 141 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | 141 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
| 142 void BeginFrameSubscription( | 142 void BeginFrameSubscription( |
| 143 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; | 143 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
| 144 void EndFrameSubscription() override; | 144 void EndFrameSubscription() override; |
| 145 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 145 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| 146 gfx::Rect GetBoundsInRootWindow() override; | 146 gfx::Rect GetBoundsInRootWindow() override; |
| 147 void OnSetNeedsFlushInput() override; | |
| 148 void WheelEventAck(const blink::WebMouseWheelEvent& event, | 147 void WheelEventAck(const blink::WebMouseWheelEvent& event, |
| 149 InputEventAckState ack_result) override; | 148 InputEventAckState ack_result) override; |
| 150 void GestureEventAck(const blink::WebGestureEvent& event, | 149 void GestureEventAck(const blink::WebGestureEvent& event, |
| 151 InputEventAckState ack_result) override; | 150 InputEventAckState ack_result) override; |
| 152 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 151 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 153 InputEventAckState ack_result) override; | 152 InputEventAckState ack_result) override; |
| 154 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 153 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
| 155 override; | 154 override; |
| 156 InputEventAckState FilterInputEvent( | 155 InputEventAckState FilterInputEvent( |
| 157 const blink::WebInputEvent& input_event) override; | 156 const blink::WebInputEvent& input_event) override; |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 | 527 |
| 529 // Current tooltip text. | 528 // Current tooltip text. |
| 530 base::string16 tooltip_; | 529 base::string16 tooltip_; |
| 531 | 530 |
| 532 // The background color of the web content. | 531 // The background color of the web content. |
| 533 SkColor background_color_; | 532 SkColor background_color_; |
| 534 | 533 |
| 535 // Whether a request for begin frames has been issued. | 534 // Whether a request for begin frames has been issued. |
| 536 bool needs_begin_frames_; | 535 bool needs_begin_frames_; |
| 537 | 536 |
| 538 // Whether a request to flush input has been issued. | |
| 539 bool needs_flush_input_; | |
| 540 | |
| 541 // Whether or not a frame observer has been added. | 537 // Whether or not a frame observer has been added. |
| 542 bool added_frame_observer_; | 538 bool added_frame_observer_; |
| 543 | 539 |
| 544 // Used to track the last cursor visibility update that was sent to the | 540 // Used to track the last cursor visibility update that was sent to the |
| 545 // renderer via NotifyRendererOfCursorVisibilityState(). | 541 // renderer via NotifyRendererOfCursorVisibilityState(). |
| 546 enum CursorVisibilityState { | 542 enum CursorVisibilityState { |
| 547 UNKNOWN, | 543 UNKNOWN, |
| 548 VISIBLE, | 544 VISIBLE, |
| 549 NOT_VISIBLE, | 545 NOT_VISIBLE, |
| 550 }; | 546 }; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 cc::LocalSurfaceId local_surface_id_; | 607 cc::LocalSurfaceId local_surface_id_; |
| 612 | 608 |
| 613 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 609 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 614 | 610 |
| 615 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 611 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 616 }; | 612 }; |
| 617 | 613 |
| 618 } // namespace content | 614 } // namespace content |
| 619 | 615 |
| 620 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 616 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |