OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/shelf/app_list_button.h" | 5 #include "ash/shelf/app_list_button.h" |
6 | 6 |
7 #include "ash/common/shelf/ink_drop_button_listener.h" | |
8 #include "ash/common/shelf/shelf_constants.h" | |
9 #include "ash/common/shelf/shelf_view.h" | |
10 #include "ash/common/shelf/wm_shelf.h" | |
11 #include "ash/common/wm_shell.h" | |
12 #include "ash/public/cpp/shelf_types.h" | 7 #include "ash/public/cpp/shelf_types.h" |
| 8 #include "ash/shelf/ink_drop_button_listener.h" |
| 9 #include "ash/shelf/shelf_constants.h" |
| 10 #include "ash/shelf/shelf_view.h" |
| 11 #include "ash/shelf/wm_shelf.h" |
13 #include "ash/strings/grit/ash_strings.h" | 12 #include "ash/strings/grit/ash_strings.h" |
14 #include "ash/system/tray/tray_popup_utils.h" | 13 #include "ash/system/tray/tray_popup_utils.h" |
| 14 #include "ash/wm_shell.h" |
15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
16 #include "ui/accessibility/ax_node_data.h" | 16 #include "ui/accessibility/ax_node_data.h" |
17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
18 #include "ui/gfx/canvas.h" | 18 #include "ui/gfx/canvas.h" |
19 #include "ui/gfx/scoped_canvas.h" | 19 #include "ui/gfx/scoped_canvas.h" |
20 #include "ui/views/animation/flood_fill_ink_drop_ripple.h" | 20 #include "ui/views/animation/flood_fill_ink_drop_ripple.h" |
21 #include "ui/views/animation/ink_drop_impl.h" | 21 #include "ui/views/animation/ink_drop_impl.h" |
22 #include "ui/views/animation/ink_drop_mask.h" | 22 #include "ui/views/animation/ink_drop_mask.h" |
23 #include "ui/views/painter.h" | 23 #include "ui/views/painter.h" |
24 | 24 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 return gfx::Point(x_mid, x_mid); | 207 return gfx::Point(x_mid, x_mid); |
208 } else if (alignment == SHELF_ALIGNMENT_RIGHT) { | 208 } else if (alignment == SHELF_ALIGNMENT_RIGHT) { |
209 return gfx::Point(y_mid, y_mid); | 209 return gfx::Point(y_mid, y_mid); |
210 } else { | 210 } else { |
211 DCHECK_EQ(alignment, SHELF_ALIGNMENT_LEFT); | 211 DCHECK_EQ(alignment, SHELF_ALIGNMENT_LEFT); |
212 return gfx::Point(width() - y_mid, y_mid); | 212 return gfx::Point(width() - y_mid, y_mid); |
213 } | 213 } |
214 } | 214 } |
215 | 215 |
216 } // namespace ash | 216 } // namespace ash |
OLD | NEW |