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

Side by Side Diff: ash/display/event_transformation_handler.h

Issue 412553005: Scale touch event radius (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comment Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/display/event_transformation_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
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 #if defined(OS_CHROMEOS)
35 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
36 #endif // defined(OS_CHROMEOS)
37 34
38 private: 35 private:
39 TransformationMode transformation_mode_; 36 TransformationMode transformation_mode_;
40 37
41 DISALLOW_COPY_AND_ASSIGN(EventTransformationHandler); 38 DISALLOW_COPY_AND_ASSIGN(EventTransformationHandler);
42 }; 39 };
43 40
44 } // namespace ash 41 } // namespace ash
45 42
46 #endif // ASH_DISPLAY_EVENT_TRANSFORMATION_HANDLER_H_ 43 #endif // ASH_DISPLAY_EVENT_TRANSFORMATION_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/display/event_transformation_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698