| 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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 } | 764 } |
| 765 | 765 |
| 766 bool BrowserView::IsMaximized() const { | 766 bool BrowserView::IsMaximized() const { |
| 767 return frame_->IsMaximized(); | 767 return frame_->IsMaximized(); |
| 768 } | 768 } |
| 769 | 769 |
| 770 bool BrowserView::IsMinimized() const { | 770 bool BrowserView::IsMinimized() const { |
| 771 return frame_->IsMinimized(); | 771 return frame_->IsMinimized(); |
| 772 } | 772 } |
| 773 | 773 |
| 774 void BrowserView::Maximize() { |
| 775 frame_->Maximize(); |
| 776 } |
| 777 |
| 778 void BrowserView::Minimize() { |
| 779 frame_->Minimize(); |
| 780 } |
| 781 |
| 782 void BrowserView::Restore() { |
| 783 frame_->Restore(); |
| 784 } |
| 785 |
| 774 void BrowserView::EnterFullscreen( | 786 void BrowserView::EnterFullscreen( |
| 775 const GURL& url, FullscreenExitBubbleType bubble_type) { | 787 const GURL& url, FullscreenExitBubbleType bubble_type) { |
| 776 if (IsFullscreen()) | 788 if (IsFullscreen()) |
| 777 return; // Nothing to do. | 789 return; // Nothing to do. |
| 778 | 790 |
| 779 #if defined(OS_WIN) || defined(USE_AURA) | 791 #if defined(OS_WIN) || defined(USE_AURA) |
| 780 ProcessFullscreen(true, url, bubble_type); | 792 ProcessFullscreen(true, url, bubble_type); |
| 781 #else | 793 #else |
| 782 // On Linux/gtk changing fullscreen is async. Ask the window to change it's | 794 // On Linux/gtk changing fullscreen is async. Ask the window to change it's |
| 783 // fullscreen state, and when done invoke ProcessFullscreen. | 795 // fullscreen state, and when done invoke ProcessFullscreen. |
| (...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2604 Bubble::Show(this->GetWidget(), bounds, views::BubbleBorder::TOP_RIGHT, | 2616 Bubble::Show(this->GetWidget(), bounds, views::BubbleBorder::TOP_RIGHT, |
| 2605 views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE, | 2617 views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE, |
| 2606 bubble_view, bubble_view); | 2618 bubble_view, bubble_view); |
| 2607 } | 2619 } |
| 2608 | 2620 |
| 2609 void BrowserView::ShowAvatarBubbleFromAvatarButton() { | 2621 void BrowserView::ShowAvatarBubbleFromAvatarButton() { |
| 2610 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); | 2622 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); |
| 2611 if (button) | 2623 if (button) |
| 2612 button->ShowAvatarBubble(); | 2624 button->ShowAvatarBubble(); |
| 2613 } | 2625 } |
| OLD | NEW |