Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 const ui::TouchscreenDevice& touchscreen, | 54 const ui::TouchscreenDevice& touchscreen, |
| 55 const gfx::Size& framebuffer_size) const; | 55 const gfx::Size& framebuffer_size) const; |
| 56 | 56 |
| 57 // Returns the scaling factor for the touch radius such that it scales the | 57 // Returns the scaling factor for the touch radius such that it scales the |
| 58 // radius from |touch_device|'s coordinate system to the |touch_display|'s | 58 // radius from |touch_device|'s coordinate system to the |touch_display|'s |
| 59 // coordinate system. | 59 // coordinate system. |
| 60 double GetTouchResolutionScale( | 60 double GetTouchResolutionScale( |
| 61 const DisplayInfo& touch_display, | 61 const DisplayInfo& touch_display, |
| 62 const ui::TouchscreenDevice& touch_device) const; | 62 const ui::TouchscreenDevice& touch_device) const; |
| 63 | 63 |
| 64 // For the provided |display| update the touch touch radius mapping. | |
|
Daniel Erat
2015/05/13 15:41:23
you have an extra "touch" in this comment
| |
| 65 void UpdateTouchRadius(const DisplayInfo& display) const; | |
| 66 | |
| 67 // For a given |target_display| and |target_display_id| (which will be | |
| 68 // different in the case of non-software mirroring) update the touch | |
| 69 // transformation based on the touch device associated with |touch_display|. | |
| 70 void UpdateTouchTransform(int64_t target_display_id, | |
|
dnicoara
2015/05/13 16:04:16
nit: Would you mind adding a description on what e
| |
| 71 const DisplayInfo& touch_display, | |
| 72 const DisplayInfo& target_display) const; | |
| 73 | |
| 64 DISALLOW_COPY_AND_ASSIGN(TouchTransformerController); | 74 DISALLOW_COPY_AND_ASSIGN(TouchTransformerController); |
| 65 }; | 75 }; |
| 66 | 76 |
| 67 } // namespace ash | 77 } // namespace ash |
| 68 | 78 |
| 69 #endif // ASH_TOUCH_TOUCH_TRANSFORMER_CONTROLLER_H_ | 79 #endif // ASH_TOUCH_TOUCH_TRANSFORMER_CONTROLLER_H_ |
| OLD | NEW |