| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 // Retrieves the PageAction View which is associated with |page_action|. | 142 // Retrieves the PageAction View which is associated with |page_action|. |
| 143 views::View* GetPageActionView(ExtensionAction* page_action); | 143 views::View* GetPageActionView(ExtensionAction* page_action); |
| 144 | 144 |
| 145 // Toggles the star on or off. | 145 // Toggles the star on or off. |
| 146 void SetStarToggled(bool on); | 146 void SetStarToggled(bool on); |
| 147 | 147 |
| 148 // Shows the bookmark bubble. | 148 // Shows the bookmark bubble. |
| 149 void ShowStarBubble(const GURL& url, bool newly_bookmarked); | 149 void ShowStarBubble(const GURL& url, bool newly_bookmarked); |
| 150 | 150 |
| 151 // Returns the screen coordinates of the location entry (where the URL text |
| 152 // appears, not where the icons are shown). |
| 153 gfx::Point GetLocationEntryOrigin() const; |
| 154 |
| 151 // Sizing functions | 155 // Sizing functions |
| 152 virtual gfx::Size GetPreferredSize(); | 156 virtual gfx::Size GetPreferredSize(); |
| 153 | 157 |
| 154 // Layout and Painting functions | 158 // Layout and Painting functions |
| 155 virtual void Layout(); | 159 virtual void Layout(); |
| 156 virtual void Paint(gfx::Canvas* canvas); | 160 virtual void Paint(gfx::Canvas* canvas); |
| 157 | 161 |
| 158 // No focus border for the location bar, the caret is enough. | 162 // No focus border for the location bar, the caret is enough. |
| 159 virtual void PaintFocusBorder(gfx::Canvas* canvas) { } | 163 virtual void PaintFocusBorder(gfx::Canvas* canvas) { } |
| 160 | 164 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 // Should instant be updated? This is set to false in OnAutocompleteWillAccept | 399 // Should instant be updated? This is set to false in OnAutocompleteWillAccept |
| 396 // and true in OnAutocompleteAccept. This is needed as prior to accepting an | 400 // and true in OnAutocompleteAccept. This is needed as prior to accepting an |
| 397 // autocomplete suggestion the model is reverted which triggers resetting | 401 // autocomplete suggestion the model is reverted which triggers resetting |
| 398 // instant. | 402 // instant. |
| 399 bool update_instant_; | 403 bool update_instant_; |
| 400 | 404 |
| 401 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 405 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
| 402 }; | 406 }; |
| 403 | 407 |
| 404 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 408 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |