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

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

Issue 1270623002: Replace 'Scanning' text in Network Status Area with throbber (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tooltips Created 5 years, 4 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) 2013 The Chromium Authors. All rights reserved. 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 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_SPECIAL_POPUP_ROW_H_ 5 #ifndef ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_
6 #define ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_ 6 #define ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ui/gfx/geometry/size.h" 9 #include "ui/gfx/geometry/size.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
(...skipping 11 matching lines...) Expand all
22 // The 'special' looking row in the uber-tray popups. This is usually the bottom 22 // The 'special' looking row in the uber-tray popups. This is usually the bottom
23 // row in the popups, and has a fixed height. 23 // row in the popups, and has a fixed height.
24 class ASH_EXPORT SpecialPopupRow : public views::View { 24 class ASH_EXPORT SpecialPopupRow : public views::View {
25 public: 25 public:
26 SpecialPopupRow(); 26 SpecialPopupRow();
27 ~SpecialPopupRow() override; 27 ~SpecialPopupRow() override;
28 28
29 void SetTextLabel(int string_id, ViewClickListener* listener); 29 void SetTextLabel(int string_id, ViewClickListener* listener);
30 void SetContent(views::View* view); 30 void SetContent(views::View* view);
31 31
32 void AddView(views::View* view, bool add_separator);
32 void AddButton(TrayPopupHeaderButton* button); 33 void AddButton(TrayPopupHeaderButton* button);
33 void AddThrobber(ThrobberView* throbber);
34 34
35 views::View* content() const { return content_; } 35 views::View* content() const { return content_; }
36 36
37 private: 37 private:
38 // Overridden from views::View. 38 // Overridden from views::View.
39 gfx::Size GetPreferredSize() const override; 39 gfx::Size GetPreferredSize() const override;
40 int GetHeightForWidth(int width) const override; 40 int GetHeightForWidth(int width) const override;
41 void Layout() override; 41 void Layout() override;
42 42
43 views::View* content_; 43 views::View* content_;
44 views::View* button_container_; 44 views::View* button_container_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(SpecialPopupRow); 46 DISALLOW_COPY_AND_ASSIGN(SpecialPopupRow);
47 }; 47 };
48 48
49 } // namespace ash 49 } // namespace ash
50 50
51 #endif // ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_ 51 #endif // ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_
OLDNEW
« no previous file with comments | « ash/system/chromeos/network/network_state_list_detailed_view.cc ('k') | ash/system/tray/special_popup_row.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698