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

Side by Side Diff: ash/touch/touch_transformer_controller.h

Issue 800983006: Update {virtual,override,final} to follow C++11 style in ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Workaround Created 5 years, 11 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
« no previous file with comments | « ash/touch/touch_observer_hud.h ('k') | ash/touch/touchscreen_util_unittest.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"
11 11
12 namespace ui { 12 namespace ui {
13 struct TouchscreenDevice; 13 struct TouchscreenDevice;
14 } // namespace ui 14 } // namespace ui
15 15
16 namespace ash { 16 namespace ash {
17 17
18 // TouchTransformerController listens to display configuration change 18 // TouchTransformerController listens to display configuration change
19 // and updates the touch transformation for touch displays. 19 // and updates the touch transformation for touch displays.
20 class ASH_EXPORT TouchTransformerController 20 class ASH_EXPORT TouchTransformerController
21 : public DisplayController::Observer { 21 : public DisplayController::Observer {
22 public: 22 public:
23 TouchTransformerController(); 23 TouchTransformerController();
24 virtual ~TouchTransformerController(); 24 ~TouchTransformerController() override;
25 25
26 // Updates the TouchTransformer for touch device and pushes the new 26 // Updates the TouchTransformer for touch device and pushes the new
27 // TouchTransformer into device manager. 27 // TouchTransformer into device manager.
28 void UpdateTouchTransformer() const; 28 void UpdateTouchTransformer() const;
29 29
30 // DisplayController::Observer: 30 // DisplayController::Observer:
31 virtual void OnDisplaysInitialized() override; 31 void OnDisplaysInitialized() override;
32 virtual void OnDisplayConfigurationChanged() override; 32 void OnDisplayConfigurationChanged() override;
33 33
34 private: 34 private:
35 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest, 35 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
36 TouchTransformerMirrorModeLetterboxing); 36 TouchTransformerMirrorModeLetterboxing);
37 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest, 37 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
38 TouchTransformerMirrorModePillarboxing); 38 TouchTransformerMirrorModePillarboxing);
39 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest, 39 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
40 TouchTransformerExtendedMode); 40 TouchTransformerExtendedMode);
41 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest, 41 FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
42 TouchRadiusScale); 42 TouchRadiusScale);
(...skipping 18 matching lines...) Expand all
61 double GetTouchResolutionScale( 61 double GetTouchResolutionScale(
62 const DisplayInfo& touch_display, 62 const DisplayInfo& touch_display,
63 const ui::TouchscreenDevice& touch_device) const; 63 const ui::TouchscreenDevice& touch_device) const;
64 64
65 DISALLOW_COPY_AND_ASSIGN(TouchTransformerController); 65 DISALLOW_COPY_AND_ASSIGN(TouchTransformerController);
66 }; 66 };
67 67
68 } // namespace ash 68 } // namespace ash
69 69
70 #endif // ASH_TOUCH_TOUCH_TRANSFORMER_CONTROLLER_H_ 70 #endif // ASH_TOUCH_TOUCH_TRANSFORMER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/touch/touch_observer_hud.h ('k') | ash/touch/touchscreen_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698