| 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/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "ui/aura/client/cursor_client.h" | 10 #include "ui/aura/client/cursor_client.h" |
| 11 #include "ui/aura/env.h" | 11 #include "ui/aura/env.h" |
| 12 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
| 13 #include "ui/base/resource/resource_bundle.h" | 13 #include "ui/base/resource/resource_bundle.h" |
| 14 #include "ui/gfx/canvas.h" | 14 #include "ui/gfx/canvas.h" |
| 15 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
| 16 #include "ui/gfx/geometry/size.h" | 16 #include "ui/gfx/geometry/size.h" |
| 17 #include "ui/gfx/image/image.h" | 17 #include "ui/gfx/image/image.h" |
| 18 #include "ui/gfx/path.h" | 18 #include "ui/gfx/path.h" |
| 19 #include "ui/resources/grit/ui_resources.h" | 19 #include "ui/resources/grit/ui_resources.h" |
| 20 #include "ui/strings/grit/ui_strings.h" | |
| 21 #include "ui/views/resources/grit/views_resources.h" | |
| 22 #include "ui/views/widget/widget.h" | 20 #include "ui/views/widget/widget.h" |
| 23 #include "ui/views/widget/widget_delegate.h" | 21 #include "ui/views/widget/widget_delegate.h" |
| 24 #include "ui/wm/core/coordinate_conversion.h" | 22 #include "ui/wm/core/coordinate_conversion.h" |
| 25 #include "ui/wm/core/masked_window_targeter.h" | 23 #include "ui/wm/core/masked_window_targeter.h" |
| 26 | 24 |
| 27 namespace { | 25 namespace { |
| 28 | 26 |
| 29 // Constants defining the visual attributes of selection handles | 27 // Constants defining the visual attributes of selection handles |
| 30 | 28 |
| 31 // The distance by which a handle image is offset from the bottom of the | 29 // The distance by which a handle image is offset from the bottom of the |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 | 788 |
| 791 views::WidgetDelegateView* TouchSelectionControllerImpl::GetHandle1View() { | 789 views::WidgetDelegateView* TouchSelectionControllerImpl::GetHandle1View() { |
| 792 return selection_handle_1_.get(); | 790 return selection_handle_1_.get(); |
| 793 } | 791 } |
| 794 | 792 |
| 795 views::WidgetDelegateView* TouchSelectionControllerImpl::GetHandle2View() { | 793 views::WidgetDelegateView* TouchSelectionControllerImpl::GetHandle2View() { |
| 796 return selection_handle_2_.get(); | 794 return selection_handle_2_.get(); |
| 797 } | 795 } |
| 798 | 796 |
| 799 } // namespace views | 797 } // namespace views |
| OLD | NEW |