OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "ash/touch/touch_hud_debug.h" | 5 #include "ash/touch/touch_hud_debug.h" |
6 | 6 |
| 7 #include <algorithm> |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
7 #include "ash/display/display_manager.h" | 11 #include "ash/display/display_manager.h" |
8 #include "ash/root_window_controller.h" | 12 #include "ash/root_window_controller.h" |
9 #include "ash/shell.h" | 13 #include "ash/shell.h" |
10 #include "base/json/json_string_value_serializer.h" | 14 #include "base/json/json_string_value_serializer.h" |
11 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
13 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
14 #include "third_party/skia/include/core/SkPath.h" | 18 #include "third_party/skia/include/core/SkPath.h" |
15 #include "ui/aura/window_event_dispatcher.h" | 19 #include "ui/aura/window_event_dispatcher.h" |
16 #include "ui/events/event.h" | 20 #include "ui/events/event.h" |
17 #include "ui/gfx/animation/animation_delegate.h" | 21 #include "ui/gfx/animation/animation_delegate.h" |
18 #include "ui/gfx/canvas.h" | 22 #include "ui/gfx/canvas.h" |
19 #include "ui/gfx/display.h" | 23 #include "ui/gfx/display.h" |
20 #include "ui/gfx/geometry/size.h" | 24 #include "ui/gfx/geometry/size.h" |
21 #include "ui/gfx/geometry/vector2d.h" | 25 #include "ui/gfx/geometry/vector2d.h" |
22 #include "ui/gfx/transform.h" | 26 #include "ui/gfx/transform.h" |
23 #include "ui/views/controls/label.h" | 27 #include "ui/views/controls/label.h" |
24 #include "ui/views/layout/box_layout.h" | 28 #include "ui/views/layout/box_layout.h" |
25 #include "ui/views/widget/widget.h" | 29 #include "ui/views/widget/widget.h" |
26 | 30 |
27 #if defined(USE_X11) | 31 #if defined(USE_X11) |
28 #include <X11/extensions/XInput2.h> | 32 #include <X11/extensions/XInput2.h> |
29 #include <X11/Xlib.h> | 33 #include <X11/Xlib.h> |
30 | 34 |
31 #include "ui/events/devices/x11/device_data_manager_x11.h" | 35 #include "ui/events/devices/x11/device_data_manager_x11.h" // nogncheck |
32 #endif | 36 #endif |
33 | 37 |
34 namespace ash { | 38 namespace ash { |
35 | 39 |
36 const int kPointRadius = 20; | 40 const int kPointRadius = 20; |
37 const SkColor kColors[] = { | 41 const SkColor kColors[] = { |
38 SK_ColorYELLOW, | 42 SK_ColorYELLOW, |
39 SK_ColorGREEN, | 43 SK_ColorGREEN, |
40 SK_ColorRED, | 44 SK_ColorRED, |
41 SK_ColorBLUE, | 45 SK_ColorBLUE, |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 RootWindowController* controller) { | 473 RootWindowController* controller) { |
470 controller->set_touch_hud_debug(this); | 474 controller->set_touch_hud_debug(this); |
471 } | 475 } |
472 | 476 |
473 void TouchHudDebug::UnsetHudForRootWindowController( | 477 void TouchHudDebug::UnsetHudForRootWindowController( |
474 RootWindowController* controller) { | 478 RootWindowController* controller) { |
475 controller->set_touch_hud_debug(NULL); | 479 controller->set_touch_hud_debug(NULL); |
476 } | 480 } |
477 | 481 |
478 } // namespace ash | 482 } // namespace ash |
OLD | NEW |