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/shelf/overflow_button.h" | 5 #include "ash/shelf/overflow_button.h" |
6 | 6 |
7 #include "ash/ash_switches.h" | |
8 #include "ash/common/ash_constants.h" | 7 #include "ash/common/ash_constants.h" |
| 8 #include "ash/common/ash_switches.h" |
9 #include "ash/common/material_design/material_design_controller.h" | 9 #include "ash/common/material_design/material_design_controller.h" |
10 #include "ash/common/shelf/shelf_constants.h" | 10 #include "ash/common/shelf/shelf_constants.h" |
11 #include "ash/common/system/tray/tray_constants.h" | 11 #include "ash/common/system/tray/tray_constants.h" |
12 #include "ash/shelf/ink_drop_button_listener.h" | 12 #include "ash/shelf/ink_drop_button_listener.h" |
13 #include "ash/shelf/shelf.h" | 13 #include "ash/shelf/shelf.h" |
14 #include "ash/shelf/shelf_layout_manager.h" | 14 #include "ash/shelf/shelf_layout_manager.h" |
15 #include "ash/shelf/shelf_widget.h" | 15 #include "ash/shelf/shelf_widget.h" |
16 #include "grit/ash_resources.h" | 16 #include "grit/ash_resources.h" |
17 #include "grit/ash_strings.h" | 17 #include "grit/ash_strings.h" |
18 #include "third_party/skia/include/core/SkPaint.h" | 18 #include "third_party/skia/include/core/SkPaint.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 bounds = | 171 bounds = |
172 gfx::Rect(bounds.x() + (bounds.width() - background->width()) / 2, | 172 gfx::Rect(bounds.x() + (bounds.width() - background->width()) / 2, |
173 bounds.y() + kShelfItemInset, background->width(), | 173 bounds.y() + kShelfItemInset, background->width(), |
174 background->height()); | 174 background->height()); |
175 } | 175 } |
176 } | 176 } |
177 return bounds; | 177 return bounds; |
178 } | 178 } |
179 | 179 |
180 } // namespace ash | 180 } // namespace ash |
OLD | NEW |