| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 // Returns the screen coordinates of the omnibox (where the URL text appears, | 187 // Returns the screen coordinates of the omnibox (where the URL text appears, |
| 188 // not where the icons are shown). | 188 // not where the icons are shown). |
| 189 gfx::Point GetOmniboxViewOrigin() const; | 189 gfx::Point GetOmniboxViewOrigin() const; |
| 190 | 190 |
| 191 // Shows |text| as an inline autocompletion. This is useful for IMEs, where | 191 // Shows |text| as an inline autocompletion. This is useful for IMEs, where |
| 192 // we can't show the autocompletion inside the actual OmniboxView. See | 192 // we can't show the autocompletion inside the actual OmniboxView. See |
| 193 // comments on |ime_inline_autocomplete_view_|. | 193 // comments on |ime_inline_autocomplete_view_|. |
| 194 void SetImeInlineAutocompletion(const base::string16& text); | 194 void SetImeInlineAutocompletion(const base::string16& text); |
| 195 | 195 |
| 196 // Invoked from OmniboxViewWin to show gray text autocompletion. | |
| 197 void SetGrayTextAutocompletion(const base::string16& text); | |
| 198 | |
| 199 // Returns the current gray text autocompletion. | |
| 200 base::string16 GetGrayTextAutocompletion() const; | |
| 201 | |
| 202 // Set if we should show a focus rect while the location entry field is | 196 // Set if we should show a focus rect while the location entry field is |
| 203 // focused. Used when the toolbar is in full keyboard accessibility mode. | 197 // focused. Used when the toolbar is in full keyboard accessibility mode. |
| 204 // Repaints if necessary. | 198 // Repaints if necessary. |
| 205 virtual void SetShowFocusRect(bool show); | 199 virtual void SetShowFocusRect(bool show); |
| 206 | 200 |
| 207 // Select all of the text. Needed when the user tabs through controls | 201 // Select all of the text. Needed when the user tabs through controls |
| 208 // in the toolbar in full keyboard accessibility mode. | 202 // in the toolbar in full keyboard accessibility mode. |
| 209 virtual void SelectAll(); | 203 virtual void SelectAll(); |
| 210 | 204 |
| 211 LocationIconView* location_icon_view() { return location_icon_view_; } | 205 LocationIconView* location_icon_view() { return location_icon_view_; } |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 // These allow toggling the verbose security state behavior via flags. | 475 // These allow toggling the verbose security state behavior via flags. |
| 482 bool should_show_secure_state_; | 476 bool should_show_secure_state_; |
| 483 bool should_show_nonsecure_state_; | 477 bool should_show_nonsecure_state_; |
| 484 bool should_animate_secure_state_; | 478 bool should_animate_secure_state_; |
| 485 bool should_animate_nonsecure_state_; | 479 bool should_animate_nonsecure_state_; |
| 486 | 480 |
| 487 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 481 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 488 }; | 482 }; |
| 489 | 483 |
| 490 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 484 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |