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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 virtual void TestPageActionPressed(size_t index) OVERRIDE; | 304 virtual void TestPageActionPressed(size_t index) OVERRIDE; |
305 | 305 |
306 // Overridden from TemplateURLServiceObserver | 306 // Overridden from TemplateURLServiceObserver |
307 virtual void OnTemplateURLServiceChanged() OVERRIDE; | 307 virtual void OnTemplateURLServiceChanged() OVERRIDE; |
308 | 308 |
309 // Overridden from content::NotificationObserver | 309 // Overridden from content::NotificationObserver |
310 virtual void Observe(int type, | 310 virtual void Observe(int type, |
311 const content::NotificationSource& source, | 311 const content::NotificationSource& source, |
312 const content::NotificationDetails& details) OVERRIDE; | 312 const content::NotificationDetails& details) OVERRIDE; |
313 | 313 |
| 314 // Calculates the height of the view. |
| 315 int GetHeight(); |
| 316 |
314 // Space between items in the location bar. | 317 // Space between items in the location bar. |
315 static int GetItemPadding(); | 318 static int GetItemPadding(); |
316 | 319 |
317 // Space between the edges and the items next to them. | 320 // Space between the edges and the items next to them. |
318 static int GetEdgeItemPadding(); | 321 static int GetEdgeItemPadding(); |
319 | 322 |
320 // Thickness of the left and right edges of the omnibox, in normal mode. | 323 // Thickness of the left and right edges of the omnibox, in normal mode. |
321 static const int kNormalHorizontalEdgeThickness; | 324 static const int kNormalHorizontalEdgeThickness; |
322 // Thickness of the top and bottom edges of the omnibox. | 325 // Thickness of the top and bottom edges of the omnibox. |
323 static const int kVerticalEdgeThickness; | 326 static const int kVerticalEdgeThickness; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 // While animating, the host clips the widget and draws only the bottom | 475 // While animating, the host clips the widget and draws only the bottom |
473 // part of it. The view needs to know the pixel offset at which we are drawing | 476 // part of it. The view needs to know the pixel offset at which we are drawing |
474 // the widget so that we can draw the curved edges that attach to the toolbar | 477 // the widget so that we can draw the curved edges that attach to the toolbar |
475 // in the right location. | 478 // in the right location. |
476 int animation_offset_; | 479 int animation_offset_; |
477 | 480 |
478 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 481 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
479 }; | 482 }; |
480 | 483 |
481 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 484 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
OLD | NEW |