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

Side by Side Diff: content/browser/android/in_process/synchronous_input_event_filter.h

Issue 897773002: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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_ANDROID_IN_PROCESS_SYNCHRONOUS_INPUT_EVENT_FILTER_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_INPUT_EVENT_FILTER_H_
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_INPUT_EVENT_FILTER_H_ 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_INPUT_EVENT_FILTER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "content/common/input/input_event_ack_state.h" 11 #include "content/common/input/input_event_ack_state.h"
12 #include "content/renderer/input/input_handler_manager_client.h" 12 #include "content/renderer/input/input_handler_manager_client.h"
13 #include "ui/gfx/geometry/vector2d_f.h" 13 #include "ui/gfx/geometry/vector2d_f.h"
14 14
15 namespace blink { 15 namespace blink {
16 class WebInputEvent; 16 class WebInputEvent;
17 } 17 }
18 18
19 namespace content { 19 namespace content {
20 20
21 // This class perform synchronous, in-process InputEvent handling. 21 // This class perform synchronous, in-process InputEvent handling.
22 // 22 //
23 // The provided |handler| process WebInputEvents synchronously on the merged 23 // The provided |handler| process WebInputEvents synchronously on the merged
24 // UI and compositing thread. If the event goes unhandled, that is reflected in 24 // UI and compositing thread. If the event goes unhandled, that is reflected in
25 // the InputEventAckState; no forwarding is performed. 25 // the InputEventAckState; no forwarding is performed.
26 class SynchronousInputEventFilter : public InputHandlerManagerClient { 26 class SynchronousInputEventFilter : public InputHandlerManagerClient {
27 public: 27 public:
28 SynchronousInputEventFilter(); 28 SynchronousInputEventFilter();
29 virtual ~SynchronousInputEventFilter(); 29 ~SynchronousInputEventFilter() override;
30 30
31 InputEventAckState HandleInputEvent(int routing_id, 31 InputEventAckState HandleInputEvent(int routing_id,
32 const blink::WebInputEvent& input_event); 32 const blink::WebInputEvent& input_event);
33 33
34 // InputHandlerManagerClient implementation. 34 // InputHandlerManagerClient implementation.
35 virtual void SetBoundHandler(const Handler& handler) override; 35 void SetBoundHandler(const Handler& handler) override;
36 virtual void DidAddInputHandler(int routing_id, 36 void DidAddInputHandler(int routing_id,
37 cc::InputHandler* input_handler) override; 37 cc::InputHandler* input_handler) override;
38 virtual void DidRemoveInputHandler(int routing_id) override; 38 void DidRemoveInputHandler(int routing_id) override;
39 virtual void DidOverscroll(int routing_id, 39 void DidOverscroll(int routing_id,
40 const DidOverscrollParams& params) override; 40 const DidOverscrollParams& params) override;
41 virtual void DidStopFlinging(int routing_id) override; 41 void DidStopFlinging(int routing_id) override;
42 42
43 private: 43 private:
44 void SetBoundHandlerOnUIThread(const Handler& handler); 44 void SetBoundHandlerOnUIThread(const Handler& handler);
45 45
46 Handler handler_; 46 Handler handler_;
47 }; 47 };
48 48
49 } // namespace content 49 } // namespace content
50 50
51 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_INPUT_EVENT_FILTER_H_ 51 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_INPUT_EVENT_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698