| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 // Retrieves the PageAction View which is associated with |page_action|. | 143 // Retrieves the PageAction View which is associated with |page_action|. |
| 144 views::View* GetPageActionView(ExtensionAction* page_action); | 144 views::View* GetPageActionView(ExtensionAction* page_action); |
| 145 | 145 |
| 146 // Toggles the star on or off. | 146 // Toggles the star on or off. |
| 147 void SetStarToggled(bool on); | 147 void SetStarToggled(bool on); |
| 148 | 148 |
| 149 // Shows the bookmark bubble. | 149 // Shows the bookmark bubble. |
| 150 void ShowStarBubble(const GURL& url, bool newly_bookmarked); | 150 void ShowStarBubble(const GURL& url, bool newly_bookmarked); |
| 151 | 151 |
| 152 // Returns the screen coordinates of the location entry (where the URL text |
| 153 // appears, not where the icons are shown). |
| 154 gfx::Point GetLocationEntryOrigin() const; |
| 155 |
| 152 // Invoked from SuggestedTextView when the suggested text should be committed. | 156 // Invoked from SuggestedTextView when the suggested text should be committed. |
| 153 void OnCommitSuggestedText(); | 157 void OnCommitSuggestedText(); |
| 154 | 158 |
| 155 // Sizing functions | 159 // Sizing functions |
| 156 virtual gfx::Size GetPreferredSize(); | 160 virtual gfx::Size GetPreferredSize(); |
| 157 | 161 |
| 158 // Layout and Painting functions | 162 // Layout and Painting functions |
| 159 virtual void Layout(); | 163 virtual void Layout(); |
| 160 virtual void Paint(gfx::Canvas* canvas); | 164 virtual void Paint(gfx::Canvas* canvas); |
| 161 | 165 |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 // Should instant be updated? This is set to false in OnAutocompleteWillAccept | 404 // Should instant be updated? This is set to false in OnAutocompleteWillAccept |
| 401 // and true in OnAutocompleteAccept. This is needed as prior to accepting an | 405 // and true in OnAutocompleteAccept. This is needed as prior to accepting an |
| 402 // autocomplete suggestion the model is reverted which triggers resetting | 406 // autocomplete suggestion the model is reverted which triggers resetting |
| 403 // instant. | 407 // instant. |
| 404 bool update_instant_; | 408 bool update_instant_; |
| 405 | 409 |
| 406 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 410 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
| 407 }; | 411 }; |
| 408 | 412 |
| 409 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 413 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |