| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 void SetStarToggled(bool on); | 170 void SetStarToggled(bool on); |
| 171 | 171 |
| 172 // The star. It may not be visible. | 172 // The star. It may not be visible. |
| 173 StarView* star_view() { return star_view_; } | 173 StarView* star_view() { return star_view_; } |
| 174 | 174 |
| 175 // The save credit card icon. It may not be visible. | 175 // The save credit card icon. It may not be visible. |
| 176 autofill::SaveCardIconView* save_credit_card_icon_view() { | 176 autofill::SaveCardIconView* save_credit_card_icon_view() { |
| 177 return save_credit_card_icon_view_; | 177 return save_credit_card_icon_view_; |
| 178 } | 178 } |
| 179 | 179 |
| 180 // Toggles the translate icon on or off. | |
| 181 void SetTranslateIconToggled(bool on); | |
| 182 | |
| 183 // The translate icon. It may not be visible. | 180 // The translate icon. It may not be visible. |
| 184 TranslateIconView* translate_icon_view() { return translate_icon_view_; } | 181 TranslateIconView* translate_icon_view() { return translate_icon_view_; } |
| 185 | 182 |
| 186 // Returns the screen coordinates of the omnibox (where the URL text appears, | 183 // Returns the screen coordinates of the omnibox (where the URL text appears, |
| 187 // not where the icons are shown). | 184 // not where the icons are shown). |
| 188 gfx::Point GetOmniboxViewOrigin() const; | 185 gfx::Point GetOmniboxViewOrigin() const; |
| 189 | 186 |
| 190 // Shows |text| as an inline autocompletion. This is useful for IMEs, where | 187 // Shows |text| as an inline autocompletion. This is useful for IMEs, where |
| 191 // we can't show the autocompletion inside the actual OmniboxView. See | 188 // we can't show the autocompletion inside the actual OmniboxView. See |
| 192 // comments on |ime_inline_autocomplete_view_|. | 189 // comments on |ime_inline_autocomplete_view_|. |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 int dropdown_animation_offset_; | 479 int dropdown_animation_offset_; |
| 483 | 480 |
| 484 // This is a debug state variable that stores if the WebContents was null | 481 // This is a debug state variable that stores if the WebContents was null |
| 485 // during the last RefreshPageAction. | 482 // during the last RefreshPageAction. |
| 486 bool web_contents_null_at_last_refresh_; | 483 bool web_contents_null_at_last_refresh_; |
| 487 | 484 |
| 488 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 485 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 489 }; | 486 }; |
| 490 | 487 |
| 491 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 488 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |