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

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

Issue 10384178: ash: Make sure all the sub-popups retain the same height as the main popup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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/system/tray/system_tray_unittest.cc ('k') | ash/system/tray/tray_details_view.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) 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.
4
5 #ifndef ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_
6 #define ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_
7
8 #include "ui/views/view.h"
9
10 namespace views {
11 class ScrollView;
12 }
13
14 namespace ash {
15 namespace internal {
16
17 class FixedSizedScrollView;
18 class SpecialPopupRow;
19 class ViewClickListener;
20
21 class TrayDetailsView : public views::View {
22 public:
23 TrayDetailsView();
24 virtual ~TrayDetailsView();
25
26 // Creates a row with special highlighting etc. This is typically the
27 // bottom-most row in the popup.
28 void CreateSpecialRow(int string_id, ViewClickListener* listener);
29
30 // Creates a scrollable list.
31 void CreateScrollableList();
32
33 // Removes (and destroys) all child views.
34 void Reset();
35
36 SpecialPopupRow* footer() const { return footer_; }
37 FixedSizedScrollView* scroller() const { return scroller_; }
38 views::View* scroll_content() const { return scroll_content_; }
39
40 protected:
41 // Overridden from views::View.
42 virtual void Layout() OVERRIDE;
43
44 private:
45 SpecialPopupRow* footer_;
46 FixedSizedScrollView* scroller_;
47 views::View* scroll_content_;
48
49 DISALLOW_COPY_AND_ASSIGN(TrayDetailsView);
50 };
51
52 } // namespace internal
53 } // namespace ash
54
55 #endif // ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_unittest.cc ('k') | ash/system/tray/tray_details_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698