| 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_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ | 5 #ifndef ASH_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ |
| 6 #define ASH_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ | 6 #define ASH_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/login_status.h" | 10 #include "ash/login_status.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // The caller takes over ownership of the created view. | 55 // The caller takes over ownership of the created view. |
| 56 // | 56 // |
| 57 // The returned view consists of 2 regions: CENTER, and END having the same | 57 // The returned view consists of 2 regions: CENTER, and END having the same |
| 58 // properties as when using |CreateMultiTargetRowView|. The START container is | 58 // properties as when using |CreateMultiTargetRowView|. The START container is |
| 59 // hidden. | 59 // hidden. |
| 60 // The END container has a fixed minimum width but can grow into the CENTER | 60 // The END container has a fixed minimum width but can grow into the CENTER |
| 61 // container if space is required and available. The CENTER container has a | 61 // container if space is required and available. The CENTER container has a |
| 62 // flexible width. | 62 // flexible width. |
| 63 static TriView* CreateSubHeaderRowView(); | 63 static TriView* CreateSubHeaderRowView(); |
| 64 | 64 |
| 65 // Creates a view containing only a label (corresponding to |message_id|), |
| 66 // which is to be inserted as a non-targetable row within a system menu |
| 67 // detailed view (e.g., the "Scanning for devices..." message that can appear |
| 68 // at the top of the Bluetooth detailed view). The caller takes over ownership |
| 69 // of the created view. |
| 70 static views::View* CreateInfoLabelRowView(int message_id); |
| 71 |
| 65 // Creates a container view to be used by system menu rows that want to embed | 72 // Creates a container view to be used by system menu rows that want to embed |
| 66 // a targetable area within one (or more) of the containers OR by any row | 73 // a targetable area within one (or more) of the containers OR by any row |
| 67 // that requires a non-default layout within the container views. The returned | 74 // that requires a non-default layout within the container views. The returned |
| 68 // view will have the following configurations: | 75 // view will have the following configurations: |
| 69 // - default minimum row height | 76 // - default minimum row height |
| 70 // - default minimum width for the START and END containers | 77 // - default minimum width for the START and END containers |
| 71 // - default left and right insets | 78 // - default left and right insets |
| 72 // - default container flex values | 79 // - default container flex values |
| 73 // - Each container view will have a FillLayout installed on it | 80 // - Each container view will have a FillLayout installed on it |
| 74 // | 81 // |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // |ink_drop_style|. | 229 // |ink_drop_style|. |
| 223 static gfx::Rect GetInkDropBounds(TrayPopupInkDropStyle ink_drop_style, | 230 static gfx::Rect GetInkDropBounds(TrayPopupInkDropStyle ink_drop_style, |
| 224 const views::View* host); | 231 const views::View* host); |
| 225 | 232 |
| 226 DISALLOW_IMPLICIT_CONSTRUCTORS(TrayPopupUtils); | 233 DISALLOW_IMPLICIT_CONSTRUCTORS(TrayPopupUtils); |
| 227 }; | 234 }; |
| 228 | 235 |
| 229 } // namespace ash | 236 } // namespace ash |
| 230 | 237 |
| 231 #endif // ASH_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ | 238 #endif // ASH_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ |
| OLD | NEW |