| 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/palette_tray.h" | 5 #include "ash/system/palette/palette_tray.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/root_window_controller.h" | 8 #include "ash/root_window_controller.h" |
| 10 #include "ash/session/session_controller.h" | 9 #include "ash/session/session_controller.h" |
| 11 #include "ash/shelf/shelf.h" | 10 #include "ash/shelf/shelf.h" |
| 12 #include "ash/shelf/shelf_constants.h" | 11 #include "ash/shelf/shelf_constants.h" |
| 13 #include "ash/shell.h" | 12 #include "ash/shell.h" |
| 14 #include "ash/strings/grit/ash_strings.h" | 13 #include "ash/strings/grit/ash_strings.h" |
| 15 #include "ash/system/palette/palette_tool_manager.h" | 14 #include "ash/system/palette/palette_tool_manager.h" |
| 16 #include "ash/system/palette/palette_utils.h" | 15 #include "ash/system/palette/palette_utils.h" |
| 17 #include "ash/system/tray/system_menu_button.h" | 16 #include "ash/system/tray/system_menu_button.h" |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 UpdateIconVisibility(); | 385 UpdateIconVisibility(); |
| 387 } | 386 } |
| 388 } | 387 } |
| 389 | 388 |
| 390 void PaletteTray::UpdateIconVisibility() { | 389 void PaletteTray::UpdateIconVisibility() { |
| 391 SetVisible(is_palette_enabled_ && palette_utils::HasStylusInput() && | 390 SetVisible(is_palette_enabled_ && palette_utils::HasStylusInput() && |
| 392 ShouldShowOnDisplay(this) && IsInUserSession()); | 391 ShouldShowOnDisplay(this) && IsInUserSession()); |
| 393 } | 392 } |
| 394 | 393 |
| 395 } // namespace ash | 394 } // namespace ash |
| OLD | NEW |