Chromium Code Reviews| 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 #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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 717 // Loads are now complete, update the state if a task was scheduled. | 717 // Loads are now complete, update the state if a task was scheduled. |
| 718 LoadingAnimationCallback(); | 718 LoadingAnimationCallback(); |
| 719 } | 719 } |
| 720 } | 720 } |
| 721 } | 721 } |
| 722 | 722 |
| 723 void BrowserView::SetStarredState(bool is_starred) { | 723 void BrowserView::SetStarredState(bool is_starred) { |
| 724 GetLocationBarView()->SetStarToggled(is_starred); | 724 GetLocationBarView()->SetStarToggled(is_starred); |
| 725 } | 725 } |
| 726 | 726 |
| 727 void BrowserView::SetZoomIconState(ZoomController::ZoomIconState state) { | |
| 728 // TODO(khorimoto): Implement this. | |
| 729 } | |
| 730 | |
| 731 void BrowserView::SetZoomIconTooltipPercent(int zoom_percent) { | |
| 732 // TODO(khorimoto): Implement this. | |
| 733 } | |
| 734 | |
| 735 void BrowserView::ShowZoomBubble(int zoomPercent) { | |
|
tfarina
2012/06/01 00:47:53
nit: zoom_percent
Kyle Horimoto
2012/06/01 18:04:50
Done.
| |
| 736 // TODO(khorimoto): Implement this. | |
| 737 } | |
| 738 | |
| 727 gfx::Rect BrowserView::GetRestoredBounds() const { | 739 gfx::Rect BrowserView::GetRestoredBounds() const { |
| 728 return frame_->GetRestoredBounds(); | 740 return frame_->GetRestoredBounds(); |
| 729 } | 741 } |
| 730 | 742 |
| 731 gfx::Rect BrowserView::GetBounds() const { | 743 gfx::Rect BrowserView::GetBounds() const { |
| 732 return frame_->GetWindowScreenBounds(); | 744 return frame_->GetWindowScreenBounds(); |
| 733 } | 745 } |
| 734 | 746 |
| 735 bool BrowserView::IsMaximized() const { | 747 bool BrowserView::IsMaximized() const { |
| 736 return frame_->IsMaximized(); | 748 return frame_->IsMaximized(); |
| (...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2412 form, | 2424 form, |
| 2413 this, | 2425 this, |
| 2414 web_contents->GetRenderViewHost(), | 2426 web_contents->GetRenderViewHost(), |
| 2415 browser_.get(), | 2427 browser_.get(), |
| 2416 wrapper->password_manager()); | 2428 wrapper->password_manager()); |
| 2417 | 2429 |
| 2418 views::BubbleDelegateView::CreateBubble(bubble); | 2430 views::BubbleDelegateView::CreateBubble(bubble); |
| 2419 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); | 2431 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); |
| 2420 bubble->Show(); | 2432 bubble->Show(); |
| 2421 } | 2433 } |
| OLD | NEW |