| 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/system/user/tray_user.h" | 5 #include "ash/system/user/tray_user.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <climits> | 8 #include <climits> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 #include "ui/gfx/text_elider.h" | 53 #include "ui/gfx/text_elider.h" |
| 54 #include "ui/gfx/text_utils.h" | 54 #include "ui/gfx/text_utils.h" |
| 55 #include "ui/views/border.h" | 55 #include "ui/views/border.h" |
| 56 #include "ui/views/bubble/tray_bubble_view.h" | 56 #include "ui/views/bubble/tray_bubble_view.h" |
| 57 #include "ui/views/controls/button/button.h" | 57 #include "ui/views/controls/button/button.h" |
| 58 #include "ui/views/controls/button/custom_button.h" | 58 #include "ui/views/controls/button/custom_button.h" |
| 59 #include "ui/views/controls/image_view.h" | 59 #include "ui/views/controls/image_view.h" |
| 60 #include "ui/views/controls/label.h" | 60 #include "ui/views/controls/label.h" |
| 61 #include "ui/views/controls/link.h" | 61 #include "ui/views/controls/link.h" |
| 62 #include "ui/views/controls/link_listener.h" | 62 #include "ui/views/controls/link_listener.h" |
| 63 #include "ui/views/corewm/shadow_types.h" | |
| 64 #include "ui/views/layout/box_layout.h" | 63 #include "ui/views/layout/box_layout.h" |
| 65 #include "ui/views/layout/fill_layout.h" | 64 #include "ui/views/layout/fill_layout.h" |
| 66 #include "ui/views/mouse_watcher.h" | 65 #include "ui/views/mouse_watcher.h" |
| 67 #include "ui/views/painter.h" | 66 #include "ui/views/painter.h" |
| 68 #include "ui/views/view.h" | 67 #include "ui/views/view.h" |
| 69 #include "ui/views/widget/widget.h" | 68 #include "ui/views/widget/widget.h" |
| 69 #include "ui/wm/core/shadow_types.h" |
| 70 | 70 |
| 71 namespace { | 71 namespace { |
| 72 | 72 |
| 73 const int kUserDetailsVerticalPadding = 5; | 73 const int kUserDetailsVerticalPadding = 5; |
| 74 const int kUserCardVerticalPadding = 10; | 74 const int kUserCardVerticalPadding = 10; |
| 75 const int kProfileRoundedCornerRadius = 2; | 75 const int kProfileRoundedCornerRadius = 2; |
| 76 const int kUserIconSize = 27; | 76 const int kUserIconSize = 27; |
| 77 const int kUserIconLargeSize = 32; | 77 const int kUserIconLargeSize = 32; |
| 78 const int kUserIconLargeCornerRadius = 2; | 78 const int kUserIconLargeCornerRadius = 2; |
| 79 const int kUserLabelToIconPadding = 5; | 79 const int kUserLabelToIconPadding = 5; |
| (...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1340 internal::GetRootWindowController( | 1340 internal::GetRootWindowController( |
| 1341 system_tray()->GetWidget()->GetNativeWindow()->GetRootWindow()); | 1341 system_tray()->GetWidget()->GetNativeWindow()->GetRootWindow()); |
| 1342 if (controller && controller->shelf()) { | 1342 if (controller && controller->shelf()) { |
| 1343 UpdateAfterShelfAlignmentChange( | 1343 UpdateAfterShelfAlignmentChange( |
| 1344 controller->GetShelfLayoutManager()->GetAlignment()); | 1344 controller->GetShelfLayoutManager()->GetAlignment()); |
| 1345 } | 1345 } |
| 1346 } | 1346 } |
| 1347 | 1347 |
| 1348 } // namespace internal | 1348 } // namespace internal |
| 1349 } // namespace ash | 1349 } // namespace ash |
| OLD | NEW |