OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LOCATION_BAR_LOCATION_BAR_H_ | 5 #ifndef CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ |
6 #define CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ | 6 #define CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 // Updates the password icon and pops up a bubble from the icon if needed. | 52 // Updates the password icon and pops up a bubble from the icon if needed. |
53 virtual void UpdateManagePasswordsIconAndBubble() = 0; | 53 virtual void UpdateManagePasswordsIconAndBubble() = 0; |
54 | 54 |
55 // Updates the visibility and toggled state of the save credit card icon. | 55 // Updates the visibility and toggled state of the save credit card icon. |
56 virtual void UpdateSaveCreditCardIcon() = 0; | 56 virtual void UpdateSaveCreditCardIcon() = 0; |
57 | 57 |
58 // Updates the visibility of the bookmark star. | 58 // Updates the visibility of the bookmark star. |
59 virtual void UpdateBookmarkStarVisibility() = 0; | 59 virtual void UpdateBookmarkStarVisibility() = 0; |
60 | 60 |
61 // Updates the visibility of the zoom icon. | |
62 virtual void UpdateZoomViewVisibility() = 0; | |
63 | |
64 // Updates the visibility of the location bar. Animates the transition if | 61 // Updates the visibility of the location bar. Animates the transition if |
65 // |animate| is true. | 62 // |animate| is true. |
66 virtual void UpdateLocationBarVisibility(bool visible, bool animate) = 0; | 63 virtual void UpdateLocationBarVisibility(bool visible, bool animate) = 0; |
67 | 64 |
68 // Saves the state of the location bar to the specified WebContents, so that | 65 // Saves the state of the location bar to the specified WebContents, so that |
69 // it can be restored later. (Done when switching tabs). | 66 // it can be restored later. (Done when switching tabs). |
70 virtual void SaveStateToContents(content::WebContents* contents) = 0; | 67 virtual void SaveStateToContents(content::WebContents* contents) = 0; |
71 | 68 |
72 // Reverts the location bar. The bar's permanent text will be shown. | 69 // Reverts the location bar. The bar's permanent text will be shown. |
73 virtual void Revert() = 0; | 70 virtual void Revert() = 0; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 106 |
110 // Invokes the content setting image at |index|, displaying the bubble. | 107 // Invokes the content setting image at |index|, displaying the bubble. |
111 // Returns false if there is none. | 108 // Returns false if there is none. |
112 virtual bool TestContentSettingImagePressed(size_t index) = 0; | 109 virtual bool TestContentSettingImagePressed(size_t index) = 0; |
113 | 110 |
114 protected: | 111 protected: |
115 virtual ~LocationBarTesting() {} | 112 virtual ~LocationBarTesting() {} |
116 }; | 113 }; |
117 | 114 |
118 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ | 115 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ |
OLD | NEW |