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

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

Issue 11147037: Add a 'hidden' option to chrome.app.window.create() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ash tests Created 8 years, 1 month 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
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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 chrome::MaybeShowInvertBubbleView(browser_.get(), contents_); 611 chrome::MaybeShowInvertBubbleView(browser_.get(), contents_);
612 } 612 }
613 613
614 void BrowserView::ShowInactive() { 614 void BrowserView::ShowInactive() {
615 if (frame_->IsVisible()) 615 if (frame_->IsVisible())
616 return; 616 return;
617 CreateLauncherIcon(); 617 CreateLauncherIcon();
618 frame_->ShowInactive(); 618 frame_->ShowInactive();
619 } 619 }
620 620
621 void BrowserView::Hide() {
622 // Not implemented.
623 }
624
621 void BrowserView::SetBounds(const gfx::Rect& bounds) { 625 void BrowserView::SetBounds(const gfx::Rect& bounds) {
622 ExitFullscreen(); 626 ExitFullscreen();
623 GetWidget()->SetBounds(bounds); 627 GetWidget()->SetBounds(bounds);
624 } 628 }
625 629
626 void BrowserView::Close() { 630 void BrowserView::Close() {
627 frame_->Close(); 631 frame_->Close();
628 } 632 }
629 633
630 void BrowserView::Activate() { 634 void BrowserView::Activate() {
(...skipping 1999 matching lines...) Expand 10 before | Expand all | Expand 10 after
2630 2634
2631 Browser* modal_browser = 2635 Browser* modal_browser =
2632 browser::FindBrowserWithWebContents(active_dialog->web_contents()); 2636 browser::FindBrowserWithWebContents(active_dialog->web_contents());
2633 if (modal_browser && (browser_ != modal_browser)) { 2637 if (modal_browser && (browser_ != modal_browser)) {
2634 modal_browser->window()->FlashFrame(true); 2638 modal_browser->window()->FlashFrame(true);
2635 modal_browser->window()->Activate(); 2639 modal_browser->window()->Activate();
2636 } 2640 }
2637 2641
2638 AppModalDialogQueue::GetInstance()->ActivateModalDialog(); 2642 AppModalDialogQueue::GetInstance()->ActivateModalDialog();
2639 } 2643 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/common/extensions/api/app_current_window_internal.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698