| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 BACKGROUND = 0, | 104 BACKGROUND = 0, |
| 105 TEXT, | 105 TEXT, |
| 106 SELECTED_TEXT, | 106 SELECTED_TEXT, |
| 107 DEEMPHASIZED_TEXT, | 107 DEEMPHASIZED_TEXT, |
| 108 SECURITY_CHIP_TEXT, | 108 SECURITY_CHIP_TEXT, |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 // Width (and height) of icons in location bar. | 111 // Width (and height) of icons in location bar. |
| 112 static constexpr int kIconWidth = 16; | 112 static constexpr int kIconWidth = 16; |
| 113 | 113 |
| 114 // Space between items in the location bar, as well as between items and the |
| 115 // edges. |
| 116 static constexpr int kHorizontalPadding = 6; |
| 117 |
| 118 // The additional vertical padding of a bubble. |
| 119 static constexpr int kBubbleVerticalPadding = 3; |
| 120 |
| 114 // The location bar view's class name. | 121 // The location bar view's class name. |
| 115 static const char kViewClassName[]; | 122 static const char kViewClassName[]; |
| 116 | 123 |
| 117 LocationBarView(Browser* browser, | 124 LocationBarView(Browser* browser, |
| 118 Profile* profile, | 125 Profile* profile, |
| 119 CommandUpdater* command_updater, | 126 CommandUpdater* command_updater, |
| 120 Delegate* delegate, | 127 Delegate* delegate, |
| 121 bool is_popup_mode); | 128 bool is_popup_mode); |
| 122 | 129 |
| 123 ~LocationBarView() override; | 130 ~LocationBarView() override; |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 // These allow toggling the verbose security state behavior via flags. | 472 // These allow toggling the verbose security state behavior via flags. |
| 466 bool should_show_secure_state_; | 473 bool should_show_secure_state_; |
| 467 bool should_show_nonsecure_state_; | 474 bool should_show_nonsecure_state_; |
| 468 bool should_animate_secure_state_; | 475 bool should_animate_secure_state_; |
| 469 bool should_animate_nonsecure_state_; | 476 bool should_animate_nonsecure_state_; |
| 470 | 477 |
| 471 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 478 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 472 }; | 479 }; |
| 473 | 480 |
| 474 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 481 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |