| 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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |