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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 } | 657 } |
658 | 658 |
659 void BrowserView::FlashFrame(bool flash) { | 659 void BrowserView::FlashFrame(bool flash) { |
660 frame_->FlashFrame(flash); | 660 frame_->FlashFrame(flash); |
661 } | 661 } |
662 | 662 |
663 bool BrowserView::IsAlwaysOnTop() const { | 663 bool BrowserView::IsAlwaysOnTop() const { |
664 return false; | 664 return false; |
665 } | 665 } |
666 | 666 |
| 667 gfx::Rect BrowserView::ContentBoundsForWindowBounds( |
| 668 const gfx::Rect& window_bounds) const { |
| 669 return window_bounds; |
| 670 } |
| 671 |
| 672 gfx::Rect BrowserView::WindowBoundsForContentBounds( |
| 673 const gfx::Rect& content_bounds) const { |
| 674 return content_bounds; |
| 675 } |
| 676 |
667 gfx::NativeWindow BrowserView::GetNativeWindow() { | 677 gfx::NativeWindow BrowserView::GetNativeWindow() { |
668 return GetWidget()->GetTopLevelWidget()->GetNativeWindow(); | 678 return GetWidget()->GetTopLevelWidget()->GetNativeWindow(); |
669 } | 679 } |
670 | 680 |
671 BrowserWindowTesting* BrowserView::GetBrowserWindowTesting() { | 681 BrowserWindowTesting* BrowserView::GetBrowserWindowTesting() { |
672 return this; | 682 return this; |
673 } | 683 } |
674 | 684 |
675 StatusBubble* BrowserView::GetStatusBubble() { | 685 StatusBubble* BrowserView::GetStatusBubble() { |
676 return status_bubble_.get(); | 686 return status_bubble_.get(); |
(...skipping 1911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2588 modal_browser->window()->Activate(); | 2598 modal_browser->window()->Activate(); |
2589 } | 2599 } |
2590 | 2600 |
2591 AppModalDialogQueue::GetInstance()->ActivateModalDialog(); | 2601 AppModalDialogQueue::GetInstance()->ActivateModalDialog(); |
2592 } | 2602 } |
2593 | 2603 |
2594 void BrowserView::MaybeStackBookmarkBarAtTop() { | 2604 void BrowserView::MaybeStackBookmarkBarAtTop() { |
2595 if (bookmark_bar_view_.get()) | 2605 if (bookmark_bar_view_.get()) |
2596 bookmark_bar_view_->MaybeStackAtTop(); | 2606 bookmark_bar_view_->MaybeStackAtTop(); |
2597 } | 2607 } |
OLD | NEW |