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

Side by Side Diff: ash/system/chromeos/label_tray_view.h

Issue 800983006: Update {virtual,override,final} to follow C++11 style in ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Workaround Created 5 years, 11 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
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_CHROMEOS_LABEL_TRAY_VIEW_H_ 5 #ifndef ASH_SYSTEM_CHROMEOS_LABEL_TRAY_VIEW_H_
6 #define ASH_SYSTEM_CHROMEOS_LABEL_TRAY_VIEW_H_ 6 #define ASH_SYSTEM_CHROMEOS_LABEL_TRAY_VIEW_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "ui/views/view.h" 9 #include "ui/views/view.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 class ViewClickListener; 13 class ViewClickListener;
14 14
15 // View for simple information in tray. Automatically hides when message is 15 // View for simple information in tray. Automatically hides when message is
16 // empty. Supports multiline messages. 16 // empty. Supports multiline messages.
17 17
18 class LabelTrayView : public views::View { 18 class LabelTrayView : public views::View {
19 public: 19 public:
20 LabelTrayView(ViewClickListener* click_listener, int icon_resource_id); 20 LabelTrayView(ViewClickListener* click_listener, int icon_resource_id);
21 virtual ~LabelTrayView(); 21 ~LabelTrayView() override;
22 void SetMessage(const base::string16& message); 22 void SetMessage(const base::string16& message);
23 private: 23 private:
24 views::View* CreateChildView(const base::string16& message) const; 24 views::View* CreateChildView(const base::string16& message) const;
25 25
26 ViewClickListener* click_listener_; 26 ViewClickListener* click_listener_;
27 int icon_resource_id_; 27 int icon_resource_id_;
28 base::string16 message_; 28 base::string16 message_;
29 29
30 DISALLOW_COPY_AND_ASSIGN(LabelTrayView); 30 DISALLOW_COPY_AND_ASSIGN(LabelTrayView);
31 }; 31 };
32 32
33 } // namespace ash 33 } // namespace ash
34 34
35 #endif // ASH_SYSTEM_CHROMEOS_LABEL_TRAY_VIEW_H_ 35 #endif // ASH_SYSTEM_CHROMEOS_LABEL_TRAY_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/chromeos/keyboard_brightness_controller.h ('k') | ash/system/chromeos/multi_user/user_switch_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698