diff options
Diffstat (limited to 'chromium/ash/system/tray/tray_utils.h')
-rw-r--r-- | chromium/ash/system/tray/tray_utils.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/chromium/ash/system/tray/tray_utils.h b/chromium/ash/system/tray/tray_utils.h new file mode 100644 index 00000000000..412fb97d8da --- /dev/null +++ b/chromium/ash/system/tray/tray_utils.h @@ -0,0 +1,35 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef ASH_SYSTEM_TRAY_TRAY_UTILS_H_ +#define ASH_SYSTEM_TRAY_TRAY_UTILS_H_ + +#include "ash/shelf/shelf_types.h" + +namespace views { +class Label; +class View; +} + +namespace ash { +namespace internal { + +class TrayItemView; + +// Sets up a Label properly for the tray (sets color, font etc.). +void SetupLabelForTray(views::Label* label); + +// TODO(jennyz): refactor these two functions to SystemTrayItem. +// Sets the empty border of an image tray item for adjusting the space +// around it. +void SetTrayImageItemBorder(views::View* tray_view, ShelfAlignment alignment); +// Sets the empty border around a label tray item for adjusting the space +// around it. +void SetTrayLabelItemBorder(TrayItemView* tray_view, + ShelfAlignment alignment); + +} // namespace internal +} // namespace ash + +#endif // ASH_SYSTEM_TRAY_TRAY_UTILS_H_ |