OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 } | 813 } |
814 | 814 |
815 gfx::Rect BrowserView::GetRestoredBounds() const { | 815 gfx::Rect BrowserView::GetRestoredBounds() const { |
816 return frame_->GetRestoredBounds(); | 816 return frame_->GetRestoredBounds(); |
817 } | 817 } |
818 | 818 |
819 gfx::Rect BrowserView::GetBounds() const { | 819 gfx::Rect BrowserView::GetBounds() const { |
820 return frame_->GetWindowBoundsInScreen(); | 820 return frame_->GetWindowBoundsInScreen(); |
821 } | 821 } |
822 | 822 |
| 823 gfx::Rect BrowserView::GetContentBounds() const { |
| 824 return contents_->bounds(); |
| 825 } |
| 826 |
823 bool BrowserView::IsMaximized() const { | 827 bool BrowserView::IsMaximized() const { |
824 return frame_->IsMaximized(); | 828 return frame_->IsMaximized(); |
825 } | 829 } |
826 | 830 |
827 bool BrowserView::IsMinimized() const { | 831 bool BrowserView::IsMinimized() const { |
828 return frame_->IsMinimized(); | 832 return frame_->IsMinimized(); |
829 } | 833 } |
830 | 834 |
831 void BrowserView::Maximize() { | 835 void BrowserView::Maximize() { |
832 frame_->Maximize(); | 836 frame_->Maximize(); |
(...skipping 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2717 | 2721 |
2718 Browser* modal_browser = | 2722 Browser* modal_browser = |
2719 chrome::FindBrowserWithWebContents(active_dialog->web_contents()); | 2723 chrome::FindBrowserWithWebContents(active_dialog->web_contents()); |
2720 if (modal_browser && (browser_ != modal_browser)) { | 2724 if (modal_browser && (browser_ != modal_browser)) { |
2721 modal_browser->window()->FlashFrame(true); | 2725 modal_browser->window()->FlashFrame(true); |
2722 modal_browser->window()->Activate(); | 2726 modal_browser->window()->Activate(); |
2723 } | 2727 } |
2724 | 2728 |
2725 AppModalDialogQueue::GetInstance()->ActivateModalDialog(); | 2729 AppModalDialogQueue::GetInstance()->ActivateModalDialog(); |
2726 } | 2730 } |
OLD | NEW |