Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: chrome/browser/ui/location_bar/location_bar.h

Issue 2845593002: Updates Zoom bubble layout and adds +/- buttons (Closed)
Patch Set: Fix ZoomController to never show the bubble when zoom level is not changed from default Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
61 // Updates the visibility of the location bar. Animates the transition if 64 // Updates the visibility of the location bar. Animates the transition if
62 // |animate| is true. 65 // |animate| is true.
63 virtual void UpdateLocationBarVisibility(bool visible, bool animate) = 0; 66 virtual void UpdateLocationBarVisibility(bool visible, bool animate) = 0;
64 67
65 // Saves the state of the location bar to the specified WebContents, so that 68 // Saves the state of the location bar to the specified WebContents, so that
66 // it can be restored later. (Done when switching tabs). 69 // it can be restored later. (Done when switching tabs).
67 virtual void SaveStateToContents(content::WebContents* contents) = 0; 70 virtual void SaveStateToContents(content::WebContents* contents) = 0;
68 71
69 // Reverts the location bar. The bar's permanent text will be shown. 72 // Reverts the location bar. The bar's permanent text will be shown.
70 virtual void Revert() = 0; 73 virtual void Revert() = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 109
107 // Invokes the content setting image at |index|, displaying the bubble. 110 // Invokes the content setting image at |index|, displaying the bubble.
108 // Returns false if there is none. 111 // Returns false if there is none.
109 virtual bool TestContentSettingImagePressed(size_t index) = 0; 112 virtual bool TestContentSettingImagePressed(size_t index) = 0;
110 113
111 protected: 114 protected:
112 virtual ~LocationBarTesting() {} 115 virtual ~LocationBarTesting() {}
113 }; 116 };
114 117
115 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ 118 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698