| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 virtual void Observe(int type, | 313 virtual void Observe(int type, |
| 314 const content::NotificationSource& source, | 314 const content::NotificationSource& source, |
| 315 const content::NotificationDetails& details) OVERRIDE; | 315 const content::NotificationDetails& details) OVERRIDE; |
| 316 | 316 |
| 317 // Returns the height of the control without the top and bottom | 317 // Returns the height of the control without the top and bottom |
| 318 // edges(i.e. the height of the edit control inside). If | 318 // edges(i.e. the height of the edit control inside). If |
| 319 // |use_preferred_size| is true this will be the preferred height, | 319 // |use_preferred_size| is true this will be the preferred height, |
| 320 // otherwise it will be the current height. | 320 // otherwise it will be the current height. |
| 321 int GetInternalHeight(bool use_preferred_size); | 321 int GetInternalHeight(bool use_preferred_size); |
| 322 | 322 |
| 323 // Returns the position and width that the popup should be, and also the left |
| 324 // edge that the results should align themselves to (which will leave some |
| 325 // border on the left of the popup). |
| 326 void GetOmniboxPopupPositioningInfo( |
| 327 gfx::Point* top_left_screen_coord, |
| 328 int* popup_width, |
| 329 int* left_margin, |
| 330 int* right_margin); |
| 331 |
| 323 // Space between items in the location bar, as well as between items and the | 332 // Space between items in the location bar, as well as between items and the |
| 324 // edges. | 333 // edges. |
| 325 static int GetItemPadding(); | 334 static int GetItemPadding(); |
| 326 | 335 |
| 327 // Thickness of the edges of the omnibox background images, in normal mode. | 336 // Thickness of the edges of the omnibox background images, in normal mode. |
| 328 static const int kNormalEdgeThickness; | 337 static const int kNormalEdgeThickness; |
| 329 // The same, but for popup mode. | 338 // The same, but for popup mode. |
| 330 static const int kPopupEdgeThickness; | 339 static const int kPopupEdgeThickness; |
| 331 // Amount of padding built into the standard omnibox icons. | 340 // Amount of padding built into the standard omnibox icons. |
| 332 static const int kIconInternalPadding; | 341 static const int kIconInternalPadding; |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 // in the right location. | 514 // in the right location. |
| 506 int animation_offset_; | 515 int animation_offset_; |
| 507 | 516 |
| 508 // Used to register for notifications received by NotificationObserver. | 517 // Used to register for notifications received by NotificationObserver. |
| 509 content::NotificationRegistrar registrar_; | 518 content::NotificationRegistrar registrar_; |
| 510 | 519 |
| 511 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 520 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 512 }; | 521 }; |
| 513 | 522 |
| 514 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 523 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |