Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / ash / system / tray / tray_utils.h
blob09031613cc02ad4ebb53975f8390786d0c791b92
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
3 // found in the LICENSE file.
5 #ifndef ASH_SYSTEM_TRAY_TRAY_UTILS_H_
6 #define ASH_SYSTEM_TRAY_TRAY_UTILS_H_
8 #include <vector>
10 #include "ash/shelf/shelf_types.h"
11 #include "base/strings/string16.h"
13 namespace views {
14 class Label;
15 class View;
18 namespace ash {
20 class TrayItemView;
22 // Sets up a Label properly for the tray (sets color, font etc.).
23 void SetupLabelForTray(views::Label* label);
25 // TODO(jennyz): refactor these two functions to SystemTrayItem.
26 // Sets the empty border of an image tray item for adjusting the space
27 // around it.
28 void SetTrayImageItemBorder(views::View* tray_view, ShelfAlignment alignment);
29 // Sets the empty border around a label tray item for adjusting the space
30 // around it.
31 void SetTrayLabelItemBorder(TrayItemView* tray_view,
32 ShelfAlignment alignment);
34 // Computes an accessible label for this button based on all descendant view
35 // labels by concatenating them in depth-first order.
36 void GetAccessibleLabelFromDescendantViews(
37 views::View* view,
38 std::vector<base::string16>& out_labels);
40 } // namespace ash
42 #endif // ASH_SYSTEM_TRAY_TRAY_UTILS_H_