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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 // Loads are now complete, update the state if a task was scheduled. | 679 // Loads are now complete, update the state if a task was scheduled. |
680 LoadingAnimationCallback(); | 680 LoadingAnimationCallback(); |
681 } | 681 } |
682 } | 682 } |
683 } | 683 } |
684 | 684 |
685 void BrowserView::SetStarredState(bool is_starred) { | 685 void BrowserView::SetStarredState(bool is_starred) { |
686 GetLocationBarView()->SetStarToggled(is_starred); | 686 GetLocationBarView()->SetStarToggled(is_starred); |
687 } | 687 } |
688 | 688 |
689 void BrowserView::ZoomChangedForActiveTab(bool can_show_bubble) { | 689 void BrowserView::SetZoomIconState( |
690 GetLocationBarView()->ZoomChangedForActiveTab(can_show_bubble); | 690 ZoomController::ZoomIconState zoom_icon_state) { |
| 691 GetLocationBarView()->SetZoomIconState(zoom_icon_state); |
| 692 } |
| 693 |
| 694 void BrowserView::SetZoomIconTooltipPercent(int zoom_percent) { |
| 695 GetLocationBarView()->SetZoomIconTooltipPercent(zoom_percent); |
| 696 } |
| 697 |
| 698 void BrowserView::ShowZoomBubble(int zoom_percent) { |
| 699 GetLocationBarView()->ShowZoomBubble(zoom_percent); |
691 } | 700 } |
692 | 701 |
693 gfx::Rect BrowserView::GetRestoredBounds() const { | 702 gfx::Rect BrowserView::GetRestoredBounds() const { |
694 return frame_->GetRestoredBounds(); | 703 return frame_->GetRestoredBounds(); |
695 } | 704 } |
696 | 705 |
697 gfx::Rect BrowserView::GetBounds() const { | 706 gfx::Rect BrowserView::GetBounds() const { |
698 return frame_->GetWindowBoundsInScreen(); | 707 return frame_->GetWindowBoundsInScreen(); |
699 } | 708 } |
700 | 709 |
(...skipping 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2597 | 2606 |
2598 Browser* modal_browser = | 2607 Browser* modal_browser = |
2599 browser::FindBrowserWithWebContents(active_dialog->web_contents()); | 2608 browser::FindBrowserWithWebContents(active_dialog->web_contents()); |
2600 if (modal_browser && (browser_ != modal_browser)) { | 2609 if (modal_browser && (browser_ != modal_browser)) { |
2601 modal_browser->window()->FlashFrame(true); | 2610 modal_browser->window()->FlashFrame(true); |
2602 modal_browser->window()->Activate(); | 2611 modal_browser->window()->Activate(); |
2603 } | 2612 } |
2604 | 2613 |
2605 AppModalDialogQueue::GetInstance()->ActivateModalDialog(); | 2614 AppModalDialogQueue::GetInstance()->ActivateModalDialog(); |
2606 } | 2615 } |
OLD | NEW |