| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 // Updates the view for the zoom icon based on the current tab's zoom. Returns | 314 // Updates the view for the zoom icon based on the current tab's zoom. Returns |
| 315 // true if the visibility of the view changed. | 315 // true if the visibility of the view changed. |
| 316 bool RefreshZoomView(); | 316 bool RefreshZoomView(); |
| 317 | 317 |
| 318 // Updates the Translate icon based on the current tab's Translate status. | 318 // Updates the Translate icon based on the current tab's Translate status. |
| 319 void RefreshTranslateIcon(); | 319 void RefreshTranslateIcon(); |
| 320 | 320 |
| 321 // Updates |manage_passwords_icon_view_|. Returns true if visibility changed. | 321 // Updates |manage_passwords_icon_view_|. Returns true if visibility changed. |
| 322 bool RefreshManagePasswordsIconView(); | 322 bool RefreshManagePasswordsIconView(); |
| 323 | 323 |
| 324 // Shows the manage passwords bubble if there is a savable password. | |
| 325 void ShowManagePasswordsBubbleIfNeeded(); | |
| 326 | |
| 327 // Helper to show the first run info bubble. | 324 // Helper to show the first run info bubble. |
| 328 void ShowFirstRunBubbleInternal(); | 325 void ShowFirstRunBubbleInternal(); |
| 329 | 326 |
| 330 // Handles a request to change the value of this text field from software | 327 // Handles a request to change the value of this text field from software |
| 331 // using an accessibility API (typically automation software, screen readers | 328 // using an accessibility API (typically automation software, screen readers |
| 332 // don't normally use this). Sets the value and clears the selection. | 329 // don't normally use this). Sets the value and clears the selection. |
| 333 void AccessibilitySetValue(const base::string16& new_value); | 330 void AccessibilitySetValue(const base::string16& new_value); |
| 334 | 331 |
| 335 // Returns true if the suggest text is valid. | 332 // Returns true if the suggest text is valid. |
| 336 bool HasValidSuggestText() const; | 333 bool HasValidSuggestText() const; |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 // Used to register for notifications received by NotificationObserver. | 566 // Used to register for notifications received by NotificationObserver. |
| 570 content::NotificationRegistrar registrar_; | 567 content::NotificationRegistrar registrar_; |
| 571 | 568 |
| 572 // Used to bind callback functions to this object. | 569 // Used to bind callback functions to this object. |
| 573 base::WeakPtrFactory<LocationBarView> weak_ptr_factory_; | 570 base::WeakPtrFactory<LocationBarView> weak_ptr_factory_; |
| 574 | 571 |
| 575 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 572 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 576 }; | 573 }; |
| 577 | 574 |
| 578 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 575 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |