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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 10494004: Implements a zoom icon in the Omnibox for Views. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments, improved code executed when a new bubble is opened when another already exists Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 615f495fbc005063132269b66a9afeacd9ddb053..6224335f2379d92263a82212a245be8f670ae06e 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -689,16 +689,17 @@ void BrowserView::SetStarredState(bool is_starred) {
GetLocationBarView()->SetStarToggled(is_starred);
}
-void BrowserView::SetZoomIconState(ZoomController::ZoomIconState state) {
- // TODO(khorimoto): Implement this.
+void BrowserView::SetZoomIconState(
+ ZoomController::ZoomIconState zoom_icon_state) {
+ GetLocationBarView()->SetZoomIconState(zoom_icon_state);
}
void BrowserView::SetZoomIconTooltipPercent(int zoom_percent) {
- // TODO(khorimoto): Implement this.
+ GetLocationBarView()->SetZoomIconTooltipPercent(zoom_percent);
}
void BrowserView::ShowZoomBubble(int zoom_percent) {
- // TODO(khorimoto): Implement this.
+ GetLocationBarView()->ShowZoomBubble(zoom_percent);
}
gfx::Rect BrowserView::GetRestoredBounds() const {

Powered by Google App Engine
This is Rietveld 408576698