| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 void SetStarToggled(bool on); | 176 void SetStarToggled(bool on); |
| 177 | 177 |
| 178 // The star. It may not be visible. | 178 // The star. It may not be visible. |
| 179 StarView* star_view() { return star_view_; } | 179 StarView* star_view() { return star_view_; } |
| 180 | 180 |
| 181 // The save credit card icon. It may not be visible. | 181 // The save credit card icon. It may not be visible. |
| 182 autofill::SaveCardIconView* save_credit_card_icon_view() { | 182 autofill::SaveCardIconView* save_credit_card_icon_view() { |
| 183 return save_credit_card_icon_view_; | 183 return save_credit_card_icon_view_; |
| 184 } | 184 } |
| 185 | 185 |
| 186 // Toggles the translate icon on or off. | |
| 187 void SetTranslateIconToggled(bool on); | |
| 188 | |
| 189 // The translate icon. It may not be visible. | 186 // The translate icon. It may not be visible. |
| 190 TranslateIconView* translate_icon_view() { return translate_icon_view_; } | 187 TranslateIconView* translate_icon_view() { return translate_icon_view_; } |
| 191 | 188 |
| 192 // Returns the screen coordinates of the omnibox (where the URL text appears, | 189 // Returns the screen coordinates of the omnibox (where the URL text appears, |
| 193 // not where the icons are shown). | 190 // not where the icons are shown). |
| 194 gfx::Point GetOmniboxViewOrigin() const; | 191 gfx::Point GetOmniboxViewOrigin() const; |
| 195 | 192 |
| 196 // Shows |text| as an inline autocompletion. This is useful for IMEs, where | 193 // Shows |text| as an inline autocompletion. This is useful for IMEs, where |
| 197 // we can't show the autocompletion inside the actual OmniboxView. See | 194 // we can't show the autocompletion inside the actual OmniboxView. See |
| 198 // comments on |ime_inline_autocomplete_view_|. | 195 // comments on |ime_inline_autocomplete_view_|. |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 int dropdown_animation_offset_; | 495 int dropdown_animation_offset_; |
| 499 | 496 |
| 500 // This is a debug state variable that stores if the WebContents was null | 497 // This is a debug state variable that stores if the WebContents was null |
| 501 // during the last RefreshPageAction. | 498 // during the last RefreshPageAction. |
| 502 bool web_contents_null_at_last_refresh_; | 499 bool web_contents_null_at_last_refresh_; |
| 503 | 500 |
| 504 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 501 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 505 }; | 502 }; |
| 506 | 503 |
| 507 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 504 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |