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

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

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « ash/display/display_manager_unittest.cc ('k') | 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"
11 11
12 namespace ash { 12 namespace ash {
13 13
14 namespace internal {
15
16 // An event filter that transforms input event properties in extended desktop 14 // An event filter that transforms input event properties in extended desktop
17 // environment. 15 // environment.
18 class ASH_EXPORT EventTransformationHandler : public ui::EventHandler { 16 class ASH_EXPORT EventTransformationHandler : public ui::EventHandler {
19 public: 17 public:
20 enum TransformationMode { 18 enum TransformationMode {
21 TRANSFORM_AUTO, // Transform events by the default amount. 19 TRANSFORM_AUTO, // Transform events by the default amount.
22 // 1. Linear scaling w.r.t. the device scale factor. 20 // 1. Linear scaling w.r.t. the device scale factor.
23 // 2. Add 20% more for non-integrated displays. 21 // 2. Add 20% more for non-integrated displays.
24 TRANSFORM_NONE, // No transformation. 22 TRANSFORM_NONE, // No transformation.
25 }; 23 };
(...skipping 10 matching lines...) Expand all
36 #if defined(OS_CHROMEOS) 34 #if defined(OS_CHROMEOS)
37 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; 35 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
38 #endif // defined(OS_CHROMEOS) 36 #endif // defined(OS_CHROMEOS)
39 37
40 private: 38 private:
41 TransformationMode transformation_mode_; 39 TransformationMode transformation_mode_;
42 40
43 DISALLOW_COPY_AND_ASSIGN(EventTransformationHandler); 41 DISALLOW_COPY_AND_ASSIGN(EventTransformationHandler);
44 }; 42 };
45 43
46 } // namespace internal
47 } // namespace ash 44 } // namespace ash
48 45
49 #endif // ASH_DISPLAY_EVENT_TRANSFORMATION_HANDLER_H_ 46 #endif // ASH_DISPLAY_EVENT_TRANSFORMATION_HANDLER_H_
OLDNEW
« no previous file with comments | « ash/display/display_manager_unittest.cc ('k') | ash/display/event_transformation_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698