| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 virtual int PageActionCount() OVERRIDE; | 260 virtual int PageActionCount() OVERRIDE; |
| 261 virtual int PageActionVisibleCount() OVERRIDE; | 261 virtual int PageActionVisibleCount() OVERRIDE; |
| 262 virtual ExtensionAction* GetPageAction(size_t index) OVERRIDE; | 262 virtual ExtensionAction* GetPageAction(size_t index) OVERRIDE; |
| 263 virtual ExtensionAction* GetVisiblePageAction(size_t index) OVERRIDE; | 263 virtual ExtensionAction* GetVisiblePageAction(size_t index) OVERRIDE; |
| 264 virtual void TestPageActionPressed(size_t index) OVERRIDE; | 264 virtual void TestPageActionPressed(size_t index) OVERRIDE; |
| 265 | 265 |
| 266 // Overridden from TemplateURLServiceObserver | 266 // Overridden from TemplateURLServiceObserver |
| 267 virtual void OnTemplateURLServiceChanged() OVERRIDE; | 267 virtual void OnTemplateURLServiceChanged() OVERRIDE; |
| 268 | 268 |
| 269 // Overridden from NotificationObserver | 269 // Overridden from NotificationObserver |
| 270 virtual void Observe(NotificationType type, | 270 virtual void Observe(int type, |
| 271 const NotificationSource& source, | 271 const NotificationSource& source, |
| 272 const NotificationDetails& details) OVERRIDE; | 272 const NotificationDetails& details) OVERRIDE; |
| 273 | 273 |
| 274 // Thickness of the left and right edges of the omnibox, in normal mode. | 274 // Thickness of the left and right edges of the omnibox, in normal mode. |
| 275 static const int kNormalHorizontalEdgeThickness; | 275 static const int kNormalHorizontalEdgeThickness; |
| 276 // Thickness of the top and bottom edges of the omnibox. | 276 // Thickness of the top and bottom edges of the omnibox. |
| 277 static const int kVerticalEdgeThickness; | 277 static const int kVerticalEdgeThickness; |
| 278 // Space between items in the location bar. | 278 // Space between items in the location bar. |
| 279 static const int kItemPadding; | 279 static const int kItemPadding; |
| 280 // Amount of padding built into the standard omnibox icons. | 280 // Amount of padding built into the standard omnibox icons. |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 // While animating, the host clips the widget and draws only the bottom | 426 // While animating, the host clips the widget and draws only the bottom |
| 427 // part of it. The view needs to know the pixel offset at which we are drawing | 427 // part of it. The view needs to know the pixel offset at which we are drawing |
| 428 // the widget so that we can draw the curved edges that attach to the toolbar | 428 // the widget so that we can draw the curved edges that attach to the toolbar |
| 429 // in the right location. | 429 // in the right location. |
| 430 int animation_offset_; | 430 int animation_offset_; |
| 431 | 431 |
| 432 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 432 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
| 433 }; | 433 }; |
| 434 | 434 |
| 435 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 435 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |