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

Side by Side Diff: ash/touch/touch_transformer_controller.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 | « ash/display/event_transformation_handler.cc ('k') | ash/touch/touch_transformer_controller.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TOUCH_TOUCH_TRANSFORMER_CONTROLLER_H_ 5 #ifndef ASH_TOUCH_TOUCH_TRANSFORMER_CONTROLLER_H_
6 #define ASH_TOUCH_TOUCH_TRANSFORMER_CONTROLLER_H_ 6 #define ASH_TOUCH_TOUCH_TRANSFORMER_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/display/display_controller.h" 9 #include "ash/display/display_controller.h"
10 #include "ui/gfx/transform.h" 10 #include "ui/gfx/transform.h"
(...skipping 16 matching lines...) Expand all
27 virtual void OnDisplaysInitialized() OVERRIDE; 27 virtual void OnDisplaysInitialized() OVERRIDE;
28 virtual void OnDisplayConfigurationChanged() OVERRIDE; 28 virtual void OnDisplayConfigurationChanged() OVERRIDE;
29 29
30 private: 30 private:
31 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest, 31 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
32 TouchTransformerMirrorModeLetterboxing); 32 TouchTransformerMirrorModeLetterboxing);
33 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest, 33 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
34 TouchTransformerMirrorModePillarboxing); 34 TouchTransformerMirrorModePillarboxing);
35 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest, 35 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
36 TouchTransformerExtendedMode); 36 TouchTransformerExtendedMode);
37 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
38 TouchRadiusScale);
37 39
38 bool ShouldComputeMirrorModeTouchTransformer( 40 bool ShouldComputeMirrorModeTouchTransformer(
39 const DisplayInfo& touch_display) const ; 41 const DisplayInfo& touch_display) const ;
40 42
41 gfx::Transform GetMirrorModeTouchTransformer( 43 gfx::Transform GetMirrorModeTouchTransformer(
42 const DisplayInfo& touch_display) const; 44 const DisplayInfo& touch_display) const;
43 45
44 gfx::Transform GetExtendedModeTouchTransformer( 46 gfx::Transform GetExtendedModeTouchTransformer(
45 const DisplayInfo& touch_display, const gfx::Size& fb_size) const; 47 const DisplayInfo& touch_display, const gfx::Size& fb_size) const;
46 48
49 double GetTouchResolutionScale(const DisplayInfo& touch_display) const;
50
47 // For unittests only. 51 // For unittests only.
48 bool force_compute_mirror_mode_touch_transformer_; 52 bool force_compute_mirror_mode_touch_transformer_;
49 53
50 DISALLOW_COPY_AND_ASSIGN(TouchTransformerController); 54 DISALLOW_COPY_AND_ASSIGN(TouchTransformerController);
51 }; 55 };
52 56
53 } // namespace ash 57 } // namespace ash
54 58
55 #endif // ASH_TOUCH_TOUCH_TRANSFORMER_CONTROLLER_H_ 59 #endif // ASH_TOUCH_TOUCH_TRANSFORMER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/display/event_transformation_handler.cc ('k') | ash/touch/touch_transformer_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698