Video Player: Remove unnecessary script file
[chromium-blink-merge.git] / ash / system / chromeos / label_tray_view.h
blobbef5adfd3ea8af637e7e1e6aededb3f67d7a14e6
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_CHROMEOS_LABEL_TRAY_VIEW_H_
6 #define ASH_SYSTEM_CHROMEOS_LABEL_TRAY_VIEW_H_
8 #include "base/strings/string16.h"
9 #include "ui/views/view.h"
11 namespace ash {
13 class ViewClickListener;
15 // View for simple information in tray. Automatically hides when message is
16 // empty. Supports multiline messages.
18 class LabelTrayView : public views::View {
19 public:
20 LabelTrayView(ViewClickListener* click_listener, int icon_resource_id);
21 virtual ~LabelTrayView();
22 void SetMessage(const base::string16& message);
23 private:
24 views::View* CreateChildView(const base::string16& message) const;
26 ViewClickListener* click_listener_;
27 int icon_resource_id_;
28 base::string16 message_;
30 DISALLOW_COPY_AND_ASSIGN(LabelTrayView);
33 } // namespace ash
35 #endif // ASH_SYSTEM_CHROMEOS_LABEL_TRAY_VIEW_H_