| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/system/tray/tray_popup_item_container.h" | 5 #include "ash/system/tray/tray_popup_item_container.h" |
| 6 | 6 |
| 7 #include "ash/system/tray/tray_constants.h" | 7 #include "ash/common/system/tray/tray_constants.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "ui/base/ui_base_switches_util.h" | 9 #include "ui/base/ui_base_switches_util.h" |
| 10 #include "ui/gfx/canvas.h" | 10 #include "ui/gfx/canvas.h" |
| 11 #include "ui/views/border.h" | 11 #include "ui/views/border.h" |
| 12 #include "ui/views/layout/box_layout.h" | 12 #include "ui/views/layout/box_layout.h" |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 | 15 |
| 16 TrayPopupItemContainer::TrayPopupItemContainer(views::View* view, | 16 TrayPopupItemContainer::TrayPopupItemContainer(views::View* view, |
| 17 bool change_background, | 17 bool change_background, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 return; | 80 return; |
| 81 | 81 |
| 82 views::View* view = child_at(0); | 82 views::View* view = child_at(0); |
| 83 if (!view->background()) { | 83 if (!view->background()) { |
| 84 canvas->FillRect(gfx::Rect(size()), (active_) ? kHoverBackgroundColor | 84 canvas->FillRect(gfx::Rect(size()), (active_) ? kHoverBackgroundColor |
| 85 : kBackgroundColor); | 85 : kBackgroundColor); |
| 86 } | 86 } |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // namespace ash | 89 } // namespace ash |
| OLD | NEW |