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

Side by Side Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 10444040: Tracks changes to zoom icon and zoom percentage. Notifies browser window if the icon should be chan… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
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 #include "chrome/browser/ui/views/frame/browser_view.h" 5 #include "chrome/browser/ui/views/frame/browser_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 // Loads are now complete, update the state if a task was scheduled. 715 // Loads are now complete, update the state if a task was scheduled.
716 LoadingAnimationCallback(); 716 LoadingAnimationCallback();
717 } 717 }
718 } 718 }
719 } 719 }
720 720
721 void BrowserView::SetStarredState(bool is_starred) { 721 void BrowserView::SetStarredState(bool is_starred) {
722 GetLocationBarView()->SetStarToggled(is_starred); 722 GetLocationBarView()->SetStarToggled(is_starred);
723 } 723 }
724 724
725 void BrowserView::SetZoomIconState(ZoomTabHelper::ZoomIconState state,
726 int zoomPercent) {
727 // TODO(khorimoto): Implement this.
728 }
729
730 void BrowserView::ShowZoomBubble(int zoomPercent) {
731 // TODO(khorimoto): Implement this.
732 }
733
725 gfx::Rect BrowserView::GetRestoredBounds() const { 734 gfx::Rect BrowserView::GetRestoredBounds() const {
726 return frame_->GetRestoredBounds(); 735 return frame_->GetRestoredBounds();
727 } 736 }
728 737
729 gfx::Rect BrowserView::GetBounds() const { 738 gfx::Rect BrowserView::GetBounds() const {
730 return frame_->GetWindowScreenBounds(); 739 return frame_->GetWindowScreenBounds();
731 } 740 }
732 741
733 bool BrowserView::IsMaximized() const { 742 bool BrowserView::IsMaximized() const {
734 return frame_->IsMaximized(); 743 return frame_->IsMaximized();
(...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after
2415 return; 2424 return;
2416 2425
2417 PasswordGenerationBubbleView* bubble = 2426 PasswordGenerationBubbleView* bubble =
2418 new PasswordGenerationBubbleView(bounds, 2427 new PasswordGenerationBubbleView(bounds,
2419 this, 2428 this,
2420 web_contents->GetRenderViewHost()); 2429 web_contents->GetRenderViewHost());
2421 views::BubbleDelegateView::CreateBubble(bubble); 2430 views::BubbleDelegateView::CreateBubble(bubble);
2422 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); 2431 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE);
2423 bubble->Show(); 2432 bubble->Show();
2424 } 2433 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698