| OLD | NEW |
| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 static views::Slider* CreateSlider(views::SliderListener* listener); | 103 static views::Slider* CreateSlider(views::SliderListener* listener); |
| 104 | 104 |
| 105 // Returns a ToggleButton that has been configured for system menu layout. | 105 // Returns a ToggleButton that has been configured for system menu layout. |
| 106 static views::ToggleButton* CreateToggleButton( | 106 static views::ToggleButton* CreateToggleButton( |
| 107 views::ButtonListener* listener, | 107 views::ButtonListener* listener, |
| 108 int accessible_name_id); | 108 int accessible_name_id); |
| 109 | 109 |
| 110 // Sets up |view| to be a sticky header in a tray detail scroll view. | 110 // Sets up |view| to be a sticky header in a tray detail scroll view. |
| 111 static void ConfigureAsStickyHeader(views::View* view); | 111 static void ConfigureAsStickyHeader(views::View* view); |
| 112 | 112 |
| 113 // Configures a |view| to have a visible separator below. |
| 114 static void ShowStickyHeaderSeparator(views::View* view, bool show_separator); |
| 115 |
| 113 // Configures |container_view| just like CreateDefaultRowView() would | 116 // Configures |container_view| just like CreateDefaultRowView() would |
| 114 // configure |container| on its returned TriView. To be used when mutliple | 117 // configure |container| on its returned TriView. To be used when mutliple |
| 115 // targetable areas are required within a single row. | 118 // targetable areas are required within a single row. |
| 116 static void ConfigureContainer(TriView::Container container, | 119 static void ConfigureContainer(TriView::Container container, |
| 117 views::View* container_view); | 120 views::View* container_view); |
| 118 | 121 |
| 119 // Creates a button for use in the system menu that only has a visible border | 122 // Creates a button for use in the system menu that only has a visible border |
| 120 // when being hovered/clicked. Caller assumes ownership. | 123 // when being hovered/clicked. Caller assumes ownership. |
| 121 static views::LabelButton* CreateTrayPopupBorderlessButton( | 124 static views::LabelButton* CreateTrayPopupBorderlessButton( |
| 122 views::ButtonListener* listener, | 125 views::ButtonListener* listener, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // |ink_drop_style|. | 202 // |ink_drop_style|. |
| 200 static gfx::Rect GetInkDropBounds(TrayPopupInkDropStyle ink_drop_style, | 203 static gfx::Rect GetInkDropBounds(TrayPopupInkDropStyle ink_drop_style, |
| 201 const views::View* host); | 204 const views::View* host); |
| 202 | 205 |
| 203 DISALLOW_IMPLICIT_CONSTRUCTORS(TrayPopupUtils); | 206 DISALLOW_IMPLICIT_CONSTRUCTORS(TrayPopupUtils); |
| 204 }; | 207 }; |
| 205 | 208 |
| 206 } // namespace ash | 209 } // namespace ash |
| 207 | 210 |
| 208 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ | 211 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ |
| OLD | NEW |