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

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

Issue 12803011: Add BaseWindow::GetContentBounds() and use in WindowController::CreateWindowValue() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix osx build Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/test/base/test_browser_window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/test/base/test_browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698