OLD | NEW |
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 #include "ui/views/touchui/touch_selection_controller_impl.h" | 5 #include "ui/views/touchui/touch_selection_controller_impl.h" |
6 | 6 |
7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
8 #include "grit/ui_resources.h" | 8 #include "grit/ui_resources.h" |
9 #include "grit/ui_strings.h" | 9 #include "grit/ui_strings.h" |
10 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
11 #include "ui/base/ui_base_switches_util.h" | 11 #include "ui/base/ui_base_switches_util.h" |
12 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
13 #include "ui/gfx/image/image.h" | 13 #include "ui/gfx/image/image.h" |
14 #include "ui/gfx/path.h" | 14 #include "ui/gfx/path.h" |
15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
16 #include "ui/gfx/screen.h" | 16 #include "ui/gfx/screen.h" |
17 #include "ui/gfx/size.h" | 17 #include "ui/gfx/size.h" |
18 #include "ui/views/corewm/shadow_types.h" | |
19 #include "ui/views/corewm/window_animations.h" | |
20 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
| 19 #include "ui/wm/core/shadow_types.h" |
| 20 #include "ui/wm/core/window_animations.h" |
21 #include "ui/wm/public/masked_window_targeter.h" | 21 #include "ui/wm/public/masked_window_targeter.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 // Constants defining the visual attributes of selection handles | 25 // Constants defining the visual attributes of selection handles |
26 const int kSelectionHandleLineWidth = 1; | 26 const int kSelectionHandleLineWidth = 1; |
27 const SkColor kSelectionHandleLineColor = | 27 const SkColor kSelectionHandleLineColor = |
28 SkColorSetRGB(0x42, 0x81, 0xf4); | 28 SkColorSetRGB(0x42, 0x81, 0xf4); |
29 | 29 |
30 // When a handle is dragged, the drag position reported to the client view is | 30 // When a handle is dragged, the drag position reported to the client view is |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 } | 582 } |
583 | 583 |
584 ui::TouchSelectionController* ViewsTouchSelectionControllerFactory::create( | 584 ui::TouchSelectionController* ViewsTouchSelectionControllerFactory::create( |
585 ui::TouchEditable* client_view) { | 585 ui::TouchEditable* client_view) { |
586 if (switches::IsTouchEditingEnabled()) | 586 if (switches::IsTouchEditingEnabled()) |
587 return new views::TouchSelectionControllerImpl(client_view); | 587 return new views::TouchSelectionControllerImpl(client_view); |
588 return NULL; | 588 return NULL; |
589 } | 589 } |
590 | 590 |
591 } // namespace views | 591 } // namespace views |
OLD | NEW |