| 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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 | 421 |
| 422 InputEventAckState HandleInputEvent( | 422 InputEventAckState HandleInputEvent( |
| 423 const blink::WebCoalescedInputEvent& input_event, | 423 const blink::WebCoalescedInputEvent& input_event, |
| 424 const ui::LatencyInfo& latency_info, | 424 const ui::LatencyInfo& latency_info, |
| 425 InputEventDispatchType dispatch_type) override; | 425 InputEventDispatchType dispatch_type) override; |
| 426 | 426 |
| 427 void SendInputEventAck(blink::WebInputEvent::Type type, | 427 void SendInputEventAck(blink::WebInputEvent::Type type, |
| 428 InputEventAckState ack_result, | 428 InputEventAckState ack_result, |
| 429 uint32_t touch_event_id) override; | 429 uint32_t touch_event_id) override; |
| 430 | 430 |
| 431 scoped_refptr<MainThreadEventQueue> GetInputEventQueue(); |
| 432 |
| 431 protected: | 433 protected: |
| 432 // Friend RefCounted so that the dtor can be non-public. Using this class | 434 // Friend RefCounted so that the dtor can be non-public. Using this class |
| 433 // without ref-counting is an error. | 435 // without ref-counting is an error. |
| 434 friend class base::RefCounted<RenderWidget>; | 436 friend class base::RefCounted<RenderWidget>; |
| 435 | 437 |
| 436 // For unit tests. | 438 // For unit tests. |
| 437 friend class RenderWidgetTest; | 439 friend class RenderWidgetTest; |
| 438 | 440 |
| 439 enum ResizeAck { | 441 enum ResizeAck { |
| 440 SEND_RESIZE_ACK, | 442 SEND_RESIZE_ACK, |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 scoped_refptr<MainThreadEventQueue> input_event_queue_; | 889 scoped_refptr<MainThreadEventQueue> input_event_queue_; |
| 888 | 890 |
| 889 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 891 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
| 890 | 892 |
| 891 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 893 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 892 }; | 894 }; |
| 893 | 895 |
| 894 } // namespace content | 896 } // namespace content |
| 895 | 897 |
| 896 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 898 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |