| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // overflow container, however, is allowed to display icons in multiple rows. | 42 // overflow container, however, is allowed to display icons in multiple rows. |
| 43 // | 43 // |
| 44 // The main container is placed flush against the omnibox and hot dog menu, | 44 // The main container is placed flush against the omnibox and hot dog menu, |
| 45 // whereas the overflow container is placed within the hot dog menu. The | 45 // whereas the overflow container is placed within the hot dog menu. The |
| 46 // layout is similar to this: | 46 // layout is similar to this: |
| 47 // rI_I_Is | 47 // rI_I_Is |
| 48 // Where the letters are as follows: | 48 // Where the letters are as follows: |
| 49 // r: An invisible resize area. This is | 49 // r: An invisible resize area. This is |
| 50 // GetLayoutConstant(TOOLBAR_STANDARD_SPACING) pixels wide and directly | 50 // GetLayoutConstant(TOOLBAR_STANDARD_SPACING) pixels wide and directly |
| 51 // adjacent to the omnibox. Only shown for the main container. | 51 // adjacent to the omnibox. Only shown for the main container. |
| 52 // I: An icon. In material design this has a width of 28. Otherwise it is as | 52 // I: An icon. This has a width of 28. |
| 53 // wide as the IDR_BROWSER_ACTION image. | |
| 54 // _: ToolbarActionsBar::PlatformSettings::item_spacing pixels of empty space. | 53 // _: ToolbarActionsBar::PlatformSettings::item_spacing pixels of empty space. |
| 55 // s: GetLayoutConstant(TOOLBAR_STANDARD_SPACING) pixels of empty space | 54 // s: GetLayoutConstant(TOOLBAR_STANDARD_SPACING) pixels of empty space |
| 56 // (before the app menu). | 55 // (before the app menu). |
| 57 // The reason the container contains the trailing space "s", rather than having | 56 // The reason the container contains the trailing space "s", rather than having |
| 58 // it be handled by the parent view, is so that when the user starts | 57 // it be handled by the parent view, is so that when the user starts |
| 59 // dragging an icon around, we have the space to draw the ultimate drop | 58 // dragging an icon around, we have the space to draw the ultimate drop |
| 60 // indicator. (Otherwise, we'd be trying to draw it into the padding beyond our | 59 // indicator. (Otherwise, we'd be trying to draw it into the padding beyond our |
| 61 // right edge, and it wouldn't appear.) | 60 // right edge, and it wouldn't appear.) |
| 62 // | 61 // |
| 63 // The BrowserActionsContainer in 'main' mode follows a few rules, in terms of | 62 // The BrowserActionsContainer in 'main' mode follows a few rules, in terms of |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 // is none. | 279 // is none. |
| 281 std::unique_ptr<DropPosition> drop_position_; | 280 std::unique_ptr<DropPosition> drop_position_; |
| 282 | 281 |
| 283 // The extension bubble that is actively showing, if any. | 282 // The extension bubble that is actively showing, if any. |
| 284 views::BubbleDialogDelegateView* active_bubble_; | 283 views::BubbleDialogDelegateView* active_bubble_; |
| 285 | 284 |
| 286 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); | 285 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); |
| 287 }; | 286 }; |
| 288 | 287 |
| 289 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ | 288 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ |
| OLD | NEW |