OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #if defined(TOOLKIT_USES_GTK) | 7 #if defined(TOOLKIT_USES_GTK) |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 } | 767 } |
768 | 768 |
769 bool BrowserView::IsMaximized() const { | 769 bool BrowserView::IsMaximized() const { |
770 return frame_->IsMaximized(); | 770 return frame_->IsMaximized(); |
771 } | 771 } |
772 | 772 |
773 bool BrowserView::IsMinimized() const { | 773 bool BrowserView::IsMinimized() const { |
774 return frame_->IsMinimized(); | 774 return frame_->IsMinimized(); |
775 } | 775 } |
776 | 776 |
| 777 void BrowserView::Maximize() { |
| 778 frame_->Maximize(); |
| 779 } |
| 780 |
| 781 void BrowserView::Minimize() { |
| 782 frame_->Minimize(); |
| 783 } |
| 784 |
| 785 void BrowserView::Restore() { |
| 786 frame_->Restore(); |
| 787 } |
| 788 |
777 void BrowserView::EnterFullscreen( | 789 void BrowserView::EnterFullscreen( |
778 const GURL& url, FullscreenExitBubbleType bubble_type) { | 790 const GURL& url, FullscreenExitBubbleType bubble_type) { |
779 if (IsFullscreen()) | 791 if (IsFullscreen()) |
780 return; // Nothing to do. | 792 return; // Nothing to do. |
781 | 793 |
782 #if defined(OS_WIN) || defined(USE_AURA) | 794 #if defined(OS_WIN) || defined(USE_AURA) |
783 ProcessFullscreen(true, url, bubble_type); | 795 ProcessFullscreen(true, url, bubble_type); |
784 #else | 796 #else |
785 // On Linux/gtk changing fullscreen is async. Ask the window to change it's | 797 // On Linux/gtk changing fullscreen is async. Ask the window to change it's |
786 // fullscreen state, and when done invoke ProcessFullscreen. | 798 // fullscreen state, and when done invoke ProcessFullscreen. |
(...skipping 1833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2620 Bubble::Show(this->GetWidget(), bounds, views::BubbleBorder::TOP_RIGHT, | 2632 Bubble::Show(this->GetWidget(), bounds, views::BubbleBorder::TOP_RIGHT, |
2621 views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE, | 2633 views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE, |
2622 bubble_view, bubble_view); | 2634 bubble_view, bubble_view); |
2623 } | 2635 } |
2624 | 2636 |
2625 void BrowserView::ShowAvatarBubbleFromAvatarButton() { | 2637 void BrowserView::ShowAvatarBubbleFromAvatarButton() { |
2626 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); | 2638 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); |
2627 if (button) | 2639 if (button) |
2628 button->ShowAvatarBubble(); | 2640 button->ShowAvatarBubble(); |
2629 } | 2641 } |
OLD | NEW |