| 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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 float page_scale, | 236 float page_scale, |
| 237 float top_controls_delta) override; | 237 float top_controls_delta) override; |
| 238 void BeginMainFrame(double frame_time_sec) override; | 238 void BeginMainFrame(double frame_time_sec) override; |
| 239 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( | 239 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( |
| 240 const cc::FrameSinkId& frame_sink_id, | 240 const cc::FrameSinkId& frame_sink_id, |
| 241 bool fallback) override; | 241 bool fallback) override; |
| 242 void DidCommitAndDrawCompositorFrame() override; | 242 void DidCommitAndDrawCompositorFrame() override; |
| 243 void DidCommitCompositorFrame() override; | 243 void DidCommitCompositorFrame() override; |
| 244 void DidCompletePageScaleAnimation() override; | 244 void DidCompletePageScaleAnimation() override; |
| 245 void DidReceiveCompositorFrameAck() override; | 245 void DidReceiveCompositorFrameAck() override; |
| 246 void ForwardCompositorProto(const std::vector<uint8_t>& proto) override; | |
| 247 bool IsClosing() const override; | 246 bool IsClosing() const override; |
| 248 void RequestScheduleAnimation() override; | 247 void RequestScheduleAnimation() override; |
| 249 void UpdateVisualState() override; | 248 void UpdateVisualState() override; |
| 250 void WillBeginCompositorFrame() override; | 249 void WillBeginCompositorFrame() override; |
| 251 std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( | 250 std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( |
| 252 std::unique_ptr<cc::CopyOutputRequest> request) override; | 251 std::unique_ptr<cc::CopyOutputRequest> request) override; |
| 253 | 252 |
| 254 // RenderWidgetInputHandlerDelegate | 253 // RenderWidgetInputHandlerDelegate |
| 255 void FocusChangeComplete() override; | 254 void FocusChangeComplete() override; |
| 256 bool HasTouchEventHandlersAt(const gfx::Point& point) const override; | 255 bool HasTouchEventHandlersAt(const gfx::Point& point) const override; |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 virtual void OnDeviceScaleFactorChanged(); | 504 virtual void OnDeviceScaleFactorChanged(); |
| 506 | 505 |
| 507 void OnRepaint(gfx::Size size_to_paint); | 506 void OnRepaint(gfx::Size size_to_paint); |
| 508 void OnSyntheticGestureCompleted(); | 507 void OnSyntheticGestureCompleted(); |
| 509 void OnSetTextDirection(blink::WebTextDirection direction); | 508 void OnSetTextDirection(blink::WebTextDirection direction); |
| 510 void OnGetFPS(); | 509 void OnGetFPS(); |
| 511 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, | 510 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, |
| 512 const gfx::Rect& window_screen_rect); | 511 const gfx::Rect& window_screen_rect); |
| 513 void OnUpdateWindowScreenRect(const gfx::Rect& window_screen_rect); | 512 void OnUpdateWindowScreenRect(const gfx::Rect& window_screen_rect); |
| 514 void OnSetViewportIntersection(const gfx::Rect& viewport_intersection); | 513 void OnSetViewportIntersection(const gfx::Rect& viewport_intersection); |
| 515 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); | |
| 516 // Real data that is dragged is not included at DragEnter time. | 514 // Real data that is dragged is not included at DragEnter time. |
| 517 void OnDragTargetDragEnter( | 515 void OnDragTargetDragEnter( |
| 518 const std::vector<DropData::Metadata>& drop_meta_data, | 516 const std::vector<DropData::Metadata>& drop_meta_data, |
| 519 const gfx::Point& client_pt, | 517 const gfx::Point& client_pt, |
| 520 const gfx::Point& screen_pt, | 518 const gfx::Point& screen_pt, |
| 521 blink::WebDragOperationsMask operations_allowed, | 519 blink::WebDragOperationsMask operations_allowed, |
| 522 int key_modifiers); | 520 int key_modifiers); |
| 523 void OnDragTargetDragOver(const gfx::Point& client_pt, | 521 void OnDragTargetDragOver(const gfx::Point& client_pt, |
| 524 const gfx::Point& screen_pt, | 522 const gfx::Point& screen_pt, |
| 525 blink::WebDragOperationsMask operations_allowed, | 523 blink::WebDragOperationsMask operations_allowed, |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 // being handled. If the current event results in starting a drag/drop | 835 // being handled. If the current event results in starting a drag/drop |
| 838 // session, this info is sent to the browser along with other drag/drop info. | 836 // session, this info is sent to the browser along with other drag/drop info. |
| 839 DragEventSourceInfo possible_drag_event_info_; | 837 DragEventSourceInfo possible_drag_event_info_; |
| 840 | 838 |
| 841 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 839 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 842 }; | 840 }; |
| 843 | 841 |
| 844 } // namespace content | 842 } // namespace content |
| 845 | 843 |
| 846 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 844 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |