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

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

Issue 12263021: Refactor SpecialPopupRow out of tray_views.h/cc into its own files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « ash/ash.gyp ('k') | ash/system/tray/special_popup_row.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 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.
4
5 #ifndef ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_
6 #define ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_
7
8 #include "ui/gfx/size.h"
9 #include "ui/views/view.h"
10
11 namespace views {
12 class Label;
13 }
14
15 namespace ash {
16 namespace internal {
17
18 class ThrobberView;
19 class TrayItemView;
20 class TrayPopupHeaderButton;
21 class ViewClickListener;
22
23 // The 'special' looking row in the uber-tray popups. This is usually the bottom
24 // row in the popups, and has a fixed height.
25 class SpecialPopupRow : public views::View {
26 public:
27 SpecialPopupRow();
28 virtual ~SpecialPopupRow();
29
30 void SetTextLabel(int string_id, ViewClickListener* listener);
31 void SetContent(views::View* view);
32
33 void AddButton(TrayPopupHeaderButton* button);
34 void AddThrobber(ThrobberView* throbber);
35
36 views::View* content() const { return content_; }
37
38 private:
39 // Overridden from views::View.
40 virtual gfx::Size GetPreferredSize() OVERRIDE;
41 virtual void Layout() OVERRIDE;
42
43 views::View* content_;
44 views::View* button_container_;
45 views::Label* text_label_;
46
47 DISALLOW_COPY_AND_ASSIGN(SpecialPopupRow);
48 };
49
50 } // namespace internal
51 } // namespace ash
52
53 #endif // ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/system/tray/special_popup_row.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698