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/common/wm/overview/window_selector.h" | 5 #include "ash/common/wm/overview/window_selector.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "base/metrics/histogram.h" | 34 #include "base/metrics/histogram.h" |
35 #include "third_party/skia/include/core/SkPaint.h" | 35 #include "third_party/skia/include/core/SkPaint.h" |
36 #include "third_party/skia/include/core/SkPath.h" | 36 #include "third_party/skia/include/core/SkPath.h" |
37 #include "ui/base/resource/resource_bundle.h" | 37 #include "ui/base/resource/resource_bundle.h" |
38 #include "ui/compositor/scoped_layer_animation_settings.h" | 38 #include "ui/compositor/scoped_layer_animation_settings.h" |
39 #include "ui/display/screen.h" | 39 #include "ui/display/screen.h" |
40 #include "ui/events/event.h" | 40 #include "ui/events/event.h" |
41 #include "ui/gfx/canvas.h" | 41 #include "ui/gfx/canvas.h" |
42 #include "ui/gfx/paint_vector_icon.h" | 42 #include "ui/gfx/paint_vector_icon.h" |
43 #include "ui/gfx/skia_util.h" | 43 #include "ui/gfx/skia_util.h" |
44 #include "ui/gfx/vector_icons.h" | 44 #include "ui/gfx/vector_icons_public.h" |
45 #include "ui/views/border.h" | 45 #include "ui/views/border.h" |
46 #include "ui/views/controls/image_view.h" | 46 #include "ui/views/controls/image_view.h" |
47 #include "ui/views/controls/textfield/textfield.h" | 47 #include "ui/views/controls/textfield/textfield.h" |
48 #include "ui/views/layout/box_layout.h" | 48 #include "ui/views/layout/box_layout.h" |
49 | 49 |
50 namespace ash { | 50 namespace ash { |
51 | 51 |
52 namespace { | 52 namespace { |
53 | 53 |
54 // The proportion of screen width that the text filter takes. | 54 // The proportion of screen width that the text filter takes. |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 for (size_t i = 0; i <= grid_list_.size() && | 719 for (size_t i = 0; i <= grid_list_.size() && |
720 grid_list_[selected_grid_index_]->Move(direction, animate); | 720 grid_list_[selected_grid_index_]->Move(direction, animate); |
721 i++) { | 721 i++) { |
722 selected_grid_index_ = | 722 selected_grid_index_ = |
723 (selected_grid_index_ + display_direction + grid_list_.size()) % | 723 (selected_grid_index_ + display_direction + grid_list_.size()) % |
724 grid_list_.size(); | 724 grid_list_.size(); |
725 } | 725 } |
726 } | 726 } |
727 | 727 |
728 } // namespace ash | 728 } // namespace ash |
OLD | NEW |