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

Side by Side Diff: ash/common/system/tray/tray_popup_utils.h

Issue 2557333003: [ash-md] Stacks child layers properly for sticky header rows (Closed)
Patch Set: [ash-md] Stacks child layers properly for sticky header rows (no shill changes) Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_
7 7
8 #include "ash/common/login_status.h" 8 #include "ash/common/login_status.h"
9 #include "ash/common/system/tray/tray_constants.h" 9 #include "ash/common/system/tray/tray_constants.h"
10 #include "ash/common/system/tray/tray_popup_ink_drop_style.h" 10 #include "ash/common/system/tray/tray_popup_ink_drop_style.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 static views::ToggleButton* CreateToggleButton( 107 static views::ToggleButton* CreateToggleButton(
108 views::ButtonListener* listener, 108 views::ButtonListener* listener,
109 int accessible_name_id); 109 int accessible_name_id);
110 110
111 // Creates a default focus painter used for most things in tray popups. 111 // Creates a default focus painter used for most things in tray popups.
112 static std::unique_ptr<views::Painter> CreateFocusPainter(); 112 static std::unique_ptr<views::Painter> CreateFocusPainter();
113 113
114 // Sets up |view| to be a sticky header in a tray detail scroll view. 114 // Sets up |view| to be a sticky header in a tray detail scroll view.
115 static void ConfigureAsStickyHeader(views::View* view); 115 static void ConfigureAsStickyHeader(views::View* view);
116 116
117 // Configures a |view| to have a visible separator below.
118 static void ShowStickyHeaderSeparator(views::View* view, bool show_separator);
119
117 // Configures |container_view| just like CreateDefaultRowView() would 120 // Configures |container_view| just like CreateDefaultRowView() would
118 // configure |container| on its returned TriView. To be used when mutliple 121 // configure |container| on its returned TriView. To be used when mutliple
119 // targetable areas are required within a single row. 122 // targetable areas are required within a single row.
120 static void ConfigureContainer(TriView::Container container, 123 static void ConfigureContainer(TriView::Container container,
121 views::View* container_view); 124 views::View* container_view);
122 125
123 // Creates a button for use in the system menu that only has a visible border 126 // Creates a button for use in the system menu that only has a visible border
124 // when being hovered/clicked. Caller assumes ownership. 127 // when being hovered/clicked. Caller assumes ownership.
125 static views::LabelButton* CreateTrayPopupBorderlessButton( 128 static views::LabelButton* CreateTrayPopupBorderlessButton(
126 views::ButtonListener* listener, 129 views::ButtonListener* listener,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // |ink_drop_style|. 206 // |ink_drop_style|.
204 static gfx::Rect GetInkDropBounds(TrayPopupInkDropStyle ink_drop_style, 207 static gfx::Rect GetInkDropBounds(TrayPopupInkDropStyle ink_drop_style,
205 const views::View* host); 208 const views::View* host);
206 209
207 DISALLOW_IMPLICIT_CONSTRUCTORS(TrayPopupUtils); 210 DISALLOW_IMPLICIT_CONSTRUCTORS(TrayPopupUtils);
208 }; 211 };
209 212
210 } // namespace ash 213 } // namespace ash
211 214
212 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ 215 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray/tray_details_view_unittest.cc ('k') | ash/common/system/tray/tray_popup_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698