| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/palette/common_palette_tool.h" | 5 #include "ash/system/palette/common_palette_tool.h" |
| 6 | 6 |
| 7 #include "ash/resources/grit/ash_resources.h" | |
| 8 #include "ash/resources/vector_icons/vector_icons.h" | 7 #include "ash/resources/vector_icons/vector_icons.h" |
| 9 #include "ash/shelf/shelf_constants.h" | 8 #include "ash/shelf/shelf_constants.h" |
| 10 #include "ash/system/palette/palette_ids.h" | 9 #include "ash/system/palette/palette_ids.h" |
| 11 #include "ash/system/palette/palette_tool_manager.h" | 10 #include "ash/system/palette/palette_tool_manager.h" |
| 12 #include "ash/system/tray/hover_highlight_view.h" | 11 #include "ash/system/tray/hover_highlight_view.h" |
| 13 #include "ash/system/tray/tray_constants.h" | 12 #include "ash/system/tray/tray_constants.h" |
| 14 #include "ash/system/tray/tray_popup_utils.h" | 13 #include "ash/system/tray/tray_popup_utils.h" |
| 15 #include "ash/system/tray/view_click_listener.h" | 14 #include "ash/system/tray/view_click_listener.h" |
| 16 #include "base/logging.h" | 15 #include "base/logging.h" |
| 17 #include "base/metrics/histogram_macros.h" | 16 #include "base/metrics/histogram_macros.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 views::View* CommonPaletteTool::CreateDefaultView(const base::string16& name) { | 78 views::View* CommonPaletteTool::CreateDefaultView(const base::string16& name) { |
| 80 gfx::ImageSkia icon = | 79 gfx::ImageSkia icon = |
| 81 CreateVectorIcon(GetPaletteIcon(), kMenuIconSize, gfx::kChromeIconGrey); | 80 CreateVectorIcon(GetPaletteIcon(), kMenuIconSize, gfx::kChromeIconGrey); |
| 82 highlight_view_ = new HoverHighlightView(this); | 81 highlight_view_ = new HoverHighlightView(this); |
| 83 highlight_view_->AddIconAndLabel(icon, name); | 82 highlight_view_->AddIconAndLabel(icon, name); |
| 84 TrayPopupUtils::InitializeAsCheckableRow(highlight_view_, enabled()); | 83 TrayPopupUtils::InitializeAsCheckableRow(highlight_view_, enabled()); |
| 85 return highlight_view_; | 84 return highlight_view_; |
| 86 } | 85 } |
| 87 | 86 |
| 88 } // namespace ash | 87 } // namespace ash |
| OLD | NEW |