| 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_strings.h" | |
| 9 #include "ui/aura/client/cursor_client.h" | 8 #include "ui/aura/client/cursor_client.h" |
| 10 #include "ui/aura/env.h" | 9 #include "ui/aura/env.h" |
| 11 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
| 12 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
| 13 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
| 14 #include "ui/gfx/image/image.h" | 13 #include "ui/gfx/image/image.h" |
| 15 #include "ui/gfx/path.h" | 14 #include "ui/gfx/path.h" |
| 16 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
| 17 #include "ui/gfx/screen.h" | 16 #include "ui/gfx/screen.h" |
| 18 #include "ui/gfx/size.h" | 17 #include "ui/gfx/size.h" |
| 19 #include "ui/resources/grit/ui_resources.h" | 18 #include "ui/resources/grit/ui_resources.h" |
| 19 #include "ui/strings/grit/ui_strings.h" |
| 20 #include "ui/views/widget/widget.h" | 20 #include "ui/views/widget/widget.h" |
| 21 #include "ui/wm/core/masked_window_targeter.h" | 21 #include "ui/wm/core/masked_window_targeter.h" |
| 22 #include "ui/wm/core/window_animations.h" | 22 #include "ui/wm/core/window_animations.h" |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 // Constants defining the visual attributes of selection handles | 26 // Constants defining the visual attributes of selection handles |
| 27 const int kSelectionHandleLineWidth = 1; | 27 const int kSelectionHandleLineWidth = 1; |
| 28 const SkColor kSelectionHandleLineColor = | 28 const SkColor kSelectionHandleLineColor = |
| 29 SkColorSetRGB(0x42, 0x81, 0xf4); | 29 SkColorSetRGB(0x42, 0x81, 0xf4); |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 | 621 |
| 622 bool TouchSelectionControllerImpl::IsSelectionHandle2Visible() { | 622 bool TouchSelectionControllerImpl::IsSelectionHandle2Visible() { |
| 623 return selection_handle_2_->IsWidgetVisible(); | 623 return selection_handle_2_->IsWidgetVisible(); |
| 624 } | 624 } |
| 625 | 625 |
| 626 bool TouchSelectionControllerImpl::IsCursorHandleVisible() { | 626 bool TouchSelectionControllerImpl::IsCursorHandleVisible() { |
| 627 return cursor_handle_->IsWidgetVisible(); | 627 return cursor_handle_->IsWidgetVisible(); |
| 628 } | 628 } |
| 629 | 629 |
| 630 } // namespace views | 630 } // namespace views |
| OLD | NEW |