Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: ash/system/tray/tray_utils.h

Issue 2036353002: mash: Move ash/common/wm/shelf to ash/common/shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/system/tray/tray_item_view.cc ('k') | ash/system/tray/tray_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef ASH_SYSTEM_TRAY_TRAY_UTILS_H_ 5 #ifndef ASH_SYSTEM_TRAY_TRAY_UTILS_H_
6 #define ASH_SYSTEM_TRAY_TRAY_UTILS_H_ 6 #define ASH_SYSTEM_TRAY_TRAY_UTILS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/shelf/shelf_types.h" 10 #include "ash/common/shelf/shelf_types.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 12
13 namespace views { 13 namespace views {
14 class Label; 14 class Label;
15 class View; 15 class View;
16 } 16 }
17 17
18 namespace ash { 18 namespace ash {
19 19
20 class TrayItemView; 20 class TrayItemView;
21 21
22 // Sets up a Label properly for the tray (sets color, font etc.). 22 // Sets up a Label properly for the tray (sets color, font etc.).
23 void SetupLabelForTray(views::Label* label); 23 void SetupLabelForTray(views::Label* label);
24 24
25 // TODO(jennyz): refactor these two functions to SystemTrayItem. 25 // TODO(jennyz): refactor these two functions to SystemTrayItem.
26 // Sets the empty border of an image tray item for adjusting the space 26 // Sets the empty border of an image tray item for adjusting the space
27 // around it. 27 // around it.
28 void SetTrayImageItemBorder(views::View* tray_view, 28 void SetTrayImageItemBorder(views::View* tray_view, ShelfAlignment alignment);
29 wm::ShelfAlignment alignment);
30 // Sets the empty border around a label tray item for adjusting the space 29 // Sets the empty border around a label tray item for adjusting the space
31 // around it. 30 // around it.
32 void SetTrayLabelItemBorder(TrayItemView* tray_view, 31 void SetTrayLabelItemBorder(TrayItemView* tray_view, ShelfAlignment alignment);
33 wm::ShelfAlignment alignment);
34 32
35 // Computes an accessible label for this button based on all descendant view 33 // Computes an accessible label for this button based on all descendant view
36 // labels by concatenating them in depth-first order. 34 // labels by concatenating them in depth-first order.
37 void GetAccessibleLabelFromDescendantViews( 35 void GetAccessibleLabelFromDescendantViews(
38 views::View* view, 36 views::View* view,
39 std::vector<base::string16>& out_labels); 37 std::vector<base::string16>& out_labels);
40 38
41 } // namespace ash 39 } // namespace ash
42 40
43 #endif // ASH_SYSTEM_TRAY_TRAY_UTILS_H_ 41 #endif // ASH_SYSTEM_TRAY_TRAY_UTILS_H_
OLDNEW
« no previous file with comments | « ash/system/tray/tray_item_view.cc ('k') | ash/system/tray/tray_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698