Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: content/browser/renderer_host/input/input_router_impl.h

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_INPUT_INPUT_ROUTER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 Config(); 46 Config();
47 GestureEventQueue::Config gesture_config; 47 GestureEventQueue::Config gesture_config;
48 TouchEventQueue::Config touch_config; 48 TouchEventQueue::Config touch_config;
49 }; 49 };
50 50
51 InputRouterImpl(IPC::Sender* sender, 51 InputRouterImpl(IPC::Sender* sender,
52 InputRouterClient* client, 52 InputRouterClient* client,
53 InputAckHandler* ack_handler, 53 InputAckHandler* ack_handler,
54 int routing_id, 54 int routing_id,
55 const Config& config); 55 const Config& config);
56 virtual ~InputRouterImpl(); 56 ~InputRouterImpl() override;
57 57
58 // InputRouter 58 // InputRouter
59 virtual void Flush() override; 59 void Flush() override;
60 virtual bool SendInput(scoped_ptr<IPC::Message> message) override; 60 bool SendInput(scoped_ptr<IPC::Message> message) override;
61 virtual void SendMouseEvent( 61 void SendMouseEvent(const MouseEventWithLatencyInfo& mouse_event) override;
62 const MouseEventWithLatencyInfo& mouse_event) override; 62 void SendWheelEvent(
63 virtual void SendWheelEvent(
64 const MouseWheelEventWithLatencyInfo& wheel_event) override; 63 const MouseWheelEventWithLatencyInfo& wheel_event) override;
65 virtual void SendKeyboardEvent( 64 void SendKeyboardEvent(const NativeWebKeyboardEvent& key_event,
66 const NativeWebKeyboardEvent& key_event, 65 const ui::LatencyInfo& latency_info,
67 const ui::LatencyInfo& latency_info, 66 bool is_keyboard_shortcut) override;
68 bool is_keyboard_shortcut) override; 67 void SendGestureEvent(
69 virtual void SendGestureEvent(
70 const GestureEventWithLatencyInfo& gesture_event) override; 68 const GestureEventWithLatencyInfo& gesture_event) override;
71 virtual void SendTouchEvent( 69 void SendTouchEvent(const TouchEventWithLatencyInfo& touch_event) override;
72 const TouchEventWithLatencyInfo& touch_event) override; 70 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const override;
73 virtual const NativeWebKeyboardEvent* GetLastKeyboardEvent() const override; 71 bool ShouldForwardTouchEvent() const override;
74 virtual bool ShouldForwardTouchEvent() const override; 72 void OnViewUpdated(int view_flags) override;
75 virtual void OnViewUpdated(int view_flags) override; 73 bool HasPendingEvents() const override;
76 virtual bool HasPendingEvents() const override;
77 74
78 // IPC::Listener 75 // IPC::Listener
79 virtual bool OnMessageReceived(const IPC::Message& message) override; 76 bool OnMessageReceived(const IPC::Message& message) override;
80 77
81 private: 78 private:
82 friend class InputRouterImplTest; 79 friend class InputRouterImplTest;
83 80
84 // TouchpadTapSuppressionControllerClient 81 // TouchpadTapSuppressionControllerClient
85 virtual void SendMouseEventImmediately( 82 void SendMouseEventImmediately(
86 const MouseEventWithLatencyInfo& mouse_event) override; 83 const MouseEventWithLatencyInfo& mouse_event) override;
87 84
88 // TouchEventQueueClient 85 // TouchEventQueueClient
89 virtual void SendTouchEventImmediately( 86 void SendTouchEventImmediately(
90 const TouchEventWithLatencyInfo& touch_event) override; 87 const TouchEventWithLatencyInfo& touch_event) override;
91 virtual void OnTouchEventAck(const TouchEventWithLatencyInfo& event, 88 void OnTouchEventAck(const TouchEventWithLatencyInfo& event,
92 InputEventAckState ack_result) override; 89 InputEventAckState ack_result) override;
93 90
94 // GetureEventFilterClient 91 // GetureEventFilterClient
95 virtual void SendGestureEventImmediately( 92 void SendGestureEventImmediately(
96 const GestureEventWithLatencyInfo& gesture_event) override; 93 const GestureEventWithLatencyInfo& gesture_event) override;
97 virtual void OnGestureEventAck(const GestureEventWithLatencyInfo& event, 94 void OnGestureEventAck(const GestureEventWithLatencyInfo& event,
98 InputEventAckState ack_result) override; 95 InputEventAckState ack_result) override;
99 96
100 bool SendMoveCaret(scoped_ptr<IPC::Message> message); 97 bool SendMoveCaret(scoped_ptr<IPC::Message> message);
101 bool SendSelectRange(scoped_ptr<IPC::Message> message); 98 bool SendSelectRange(scoped_ptr<IPC::Message> message);
102 bool Send(IPC::Message* message); 99 bool Send(IPC::Message* message);
103 100
104 // Filters and forwards |input_event| to the appropriate handler. 101 // Filters and forwards |input_event| to the appropriate handler.
105 void FilterAndSendWebInputEvent(const blink::WebInputEvent& input_event, 102 void FilterAndSendWebInputEvent(const blink::WebInputEvent& input_event,
106 const ui::LatencyInfo& latency_info, 103 const ui::LatencyInfo& latency_info,
107 bool is_keyboard_shortcut); 104 bool is_keyboard_shortcut);
108 105
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 TouchActionFilter touch_action_filter_; 272 TouchActionFilter touch_action_filter_;
276 InputEventStreamValidator input_stream_validator_; 273 InputEventStreamValidator input_stream_validator_;
277 InputEventStreamValidator output_stream_validator_; 274 InputEventStreamValidator output_stream_validator_;
278 275
279 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); 276 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl);
280 }; 277 };
281 278
282 } // namespace content 279 } // namespace content
283 280
284 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 281 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/input_router.h ('k') | content/browser/renderer_host/input/input_router_impl_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698