| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 return save_credit_card_icon_view_; | 179 return save_credit_card_icon_view_; |
| 180 } | 180 } |
| 181 | 181 |
| 182 // The translate icon. It may not be visible. | 182 // The translate icon. It may not be visible. |
| 183 TranslateIconView* translate_icon_view() { return translate_icon_view_; } | 183 TranslateIconView* translate_icon_view() { return translate_icon_view_; } |
| 184 | 184 |
| 185 // Returns the screen coordinates of the omnibox (where the URL text appears, | 185 // Returns the screen coordinates of the omnibox (where the URL text appears, |
| 186 // not where the icons are shown). | 186 // not where the icons are shown). |
| 187 gfx::Point GetOmniboxViewOrigin() const; | 187 gfx::Point GetOmniboxViewOrigin() const; |
| 188 | 188 |
| 189 // Returns the width of the location icon. |
| 190 int GetLocationIconWidth() const; |
| 191 |
| 189 // Shows |text| as an inline autocompletion. This is useful for IMEs, where | 192 // Shows |text| as an inline autocompletion. This is useful for IMEs, where |
| 190 // we can't show the autocompletion inside the actual OmniboxView. See | 193 // we can't show the autocompletion inside the actual OmniboxView. See |
| 191 // comments on |ime_inline_autocomplete_view_|. | 194 // comments on |ime_inline_autocomplete_view_|. |
| 192 void SetImeInlineAutocompletion(const base::string16& text); | 195 void SetImeInlineAutocompletion(const base::string16& text); |
| 193 | 196 |
| 194 // Invoked from OmniboxViewWin to show gray text autocompletion. | 197 // Invoked from OmniboxViewWin to show gray text autocompletion. |
| 195 void SetGrayTextAutocompletion(const base::string16& text); | 198 void SetGrayTextAutocompletion(const base::string16& text); |
| 196 | 199 |
| 197 // Returns the current gray text autocompletion. | 200 // Returns the current gray text autocompletion. |
| 198 base::string16 GetGrayTextAutocompletion() const; | 201 base::string16 GetGrayTextAutocompletion() const; |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 BooleanPrefMember edit_bookmarks_enabled_; | 471 BooleanPrefMember edit_bookmarks_enabled_; |
| 469 | 472 |
| 470 // This is a debug state variable that stores if the WebContents was null | 473 // This is a debug state variable that stores if the WebContents was null |
| 471 // during the last RefreshPageAction. | 474 // during the last RefreshPageAction. |
| 472 bool web_contents_null_at_last_refresh_; | 475 bool web_contents_null_at_last_refresh_; |
| 473 | 476 |
| 474 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 477 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 475 }; | 478 }; |
| 476 | 479 |
| 477 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 480 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |