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/panels/panel.h" | 5 #include "chrome/browser/ui/panels/panel.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/extensions/extension_prefs.h" | 8 #include "chrome/browser/extensions/extension_prefs.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 249 |
250 bool Panel::IsMaximized() const { | 250 bool Panel::IsMaximized() const { |
251 // Size of panels is managed by PanelManager, they are never 'zoomed'. | 251 // Size of panels is managed by PanelManager, they are never 'zoomed'. |
252 return false; | 252 return false; |
253 } | 253 } |
254 | 254 |
255 bool Panel::IsMinimized() const { | 255 bool Panel::IsMinimized() const { |
256 return expansion_state_ != EXPANDED; | 256 return expansion_state_ != EXPANDED; |
257 } | 257 } |
258 | 258 |
| 259 void Panel::Maximize() { |
| 260 Restore(); |
| 261 } |
| 262 |
| 263 void Panel::Minimize() { |
| 264 SetExpansionState(MINIMIZED); |
| 265 } |
| 266 |
| 267 void Panel::Restore() { |
| 268 SetExpansionState(EXPANDED); |
| 269 } |
| 270 |
259 void Panel::EnterFullscreen( | 271 void Panel::EnterFullscreen( |
260 const GURL& url, FullscreenExitBubbleType type) { | 272 const GURL& url, FullscreenExitBubbleType type) { |
261 NOTIMPLEMENTED(); | 273 NOTIMPLEMENTED(); |
262 } | 274 } |
263 | 275 |
264 void Panel::ExitFullscreen() { | 276 void Panel::ExitFullscreen() { |
265 NOTIMPLEMENTED(); | 277 NOTIMPLEMENTED(); |
266 } | 278 } |
267 | 279 |
268 void Panel::UpdateFullscreenExitBubbleContent( | 280 void Panel::UpdateFullscreenExitBubbleContent( |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 RequestRenderViewHostToDisableScrollbars(render_view_host); | 606 RequestRenderViewHostToDisableScrollbars(render_view_host); |
595 } | 607 } |
596 | 608 |
597 Browser* Panel::browser() const { | 609 Browser* Panel::browser() const { |
598 return native_panel_->GetPanelBrowser(); | 610 return native_panel_->GetPanelBrowser(); |
599 } | 611 } |
600 | 612 |
601 void Panel::DestroyBrowser() { | 613 void Panel::DestroyBrowser() { |
602 native_panel_->DestroyPanelBrowser(); | 614 native_panel_->DestroyPanelBrowser(); |
603 } | 615 } |
OLD | NEW |