OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/launcher/launcher_view.h" | 5 #include "ash/launcher/launcher_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/ash_constants.h" | 9 #include "ash/ash_constants.h" |
10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "ui/views/border.h" | 45 #include "ui/views/border.h" |
46 #include "ui/views/controls/button/image_button.h" | 46 #include "ui/views/controls/button/image_button.h" |
47 #include "ui/views/controls/menu/menu_model_adapter.h" | 47 #include "ui/views/controls/menu/menu_model_adapter.h" |
48 #include "ui/views/controls/menu/menu_runner.h" | 48 #include "ui/views/controls/menu/menu_runner.h" |
49 #include "ui/views/focus/focus_search.h" | 49 #include "ui/views/focus/focus_search.h" |
50 #include "ui/views/focus_border.h" | 50 #include "ui/views/focus_border.h" |
51 #include "ui/views/view_model.h" | 51 #include "ui/views/view_model.h" |
52 #include "ui/views/view_model_utils.h" | 52 #include "ui/views/view_model_utils.h" |
53 #include "ui/views/widget/widget.h" | 53 #include "ui/views/widget/widget.h" |
54 | 54 |
55 using ui::Animation; | 55 using gfx::Animation; |
56 using views::View; | 56 using views::View; |
57 | 57 |
58 namespace ash { | 58 namespace ash { |
59 namespace internal { | 59 namespace internal { |
60 | 60 |
61 // Default amount content is inset on the left edge. | 61 // Default amount content is inset on the left edge. |
62 const int kDefaultLeadingInset = 8; | 62 const int kDefaultLeadingInset = 8; |
63 | 63 |
64 // Minimum distance before drag starts. | 64 // Minimum distance before drag starts. |
65 const int kMinimumDragDistance = 8; | 65 const int kMinimumDragDistance = 8; |
(...skipping 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1889 break; | 1889 break; |
1890 case ash::SHELF_ALIGNMENT_TOP: | 1890 case ash::SHELF_ALIGNMENT_TOP: |
1891 distance = coordinate.y() - bounds.bottom(); | 1891 distance = coordinate.y() - bounds.bottom(); |
1892 break; | 1892 break; |
1893 } | 1893 } |
1894 return distance > 0 ? distance : 0; | 1894 return distance > 0 ? distance : 0; |
1895 } | 1895 } |
1896 | 1896 |
1897 } // namespace internal | 1897 } // namespace internal |
1898 } // namespace ash | 1898 } // namespace ash |
OLD | NEW |