OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 ASH_DISPLAY_EVENT_TRANSFORMATION_HANDLER_H_ | 5 #ifndef ASH_DISPLAY_EVENT_TRANSFORMATION_HANDLER_H_ |
6 #define ASH_DISPLAY_EVENT_TRANSFORMATION_HANDLER_H_ | 6 #define ASH_DISPLAY_EVENT_TRANSFORMATION_HANDLER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ui/events/event_handler.h" | 10 #include "ui/events/event_handler.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 }; | 23 }; |
24 | 24 |
25 EventTransformationHandler(); | 25 EventTransformationHandler(); |
26 virtual ~EventTransformationHandler(); | 26 virtual ~EventTransformationHandler(); |
27 | 27 |
28 void set_transformation_mode(TransformationMode transformation_mode) { | 28 void set_transformation_mode(TransformationMode transformation_mode) { |
29 transformation_mode_ = transformation_mode; | 29 transformation_mode_ = transformation_mode; |
30 } | 30 } |
31 | 31 |
32 // Overridden from ui::EventHandler. | 32 // Overridden from ui::EventHandler. |
33 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 33 virtual void OnScrollEvent(ui::ScrollEvent* event) override; |
34 | 34 |
35 private: | 35 private: |
36 TransformationMode transformation_mode_; | 36 TransformationMode transformation_mode_; |
37 | 37 |
38 DISALLOW_COPY_AND_ASSIGN(EventTransformationHandler); | 38 DISALLOW_COPY_AND_ASSIGN(EventTransformationHandler); |
39 }; | 39 }; |
40 | 40 |
41 } // namespace ash | 41 } // namespace ash |
42 | 42 |
43 #endif // ASH_DISPLAY_EVENT_TRANSFORMATION_HANDLER_H_ | 43 #endif // ASH_DISPLAY_EVENT_TRANSFORMATION_HANDLER_H_ |
OLD | NEW |