| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 gfx::Rect Panel::GetBounds() const { | 236 gfx::Rect Panel::GetBounds() const { |
| 237 return native_panel_->GetPanelBounds(); | 237 return native_panel_->GetPanelBounds(); |
| 238 } | 238 } |
| 239 | 239 |
| 240 bool Panel::IsMaximized() const { | 240 bool Panel::IsMaximized() const { |
| 241 // TODO(jennb): Figure out how this applies to Panels. Means isZoomed. | 241 // TODO(jennb): Figure out how this applies to Panels. Means isZoomed. |
| 242 return false; | 242 return false; |
| 243 } | 243 } |
| 244 | 244 |
| 245 bool Panel::IsMinimized() const { | 245 bool Panel::IsMinimized() const { |
| 246 NOTIMPLEMENTED(); | 246 return expansion_state_ != EXPANDED; |
| 247 return false; | |
| 248 } | 247 } |
| 249 | 248 |
| 250 void Panel::SetFullscreen(bool fullscreen) { | 249 void Panel::SetFullscreen(bool fullscreen) { |
| 251 NOTIMPLEMENTED(); | 250 NOTIMPLEMENTED(); |
| 252 } | 251 } |
| 253 | 252 |
| 254 bool Panel::IsFullscreen() const { | 253 bool Panel::IsFullscreen() const { |
| 255 return false; | 254 return false; |
| 256 } | 255 } |
| 257 | 256 |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 RequestRenderViewHostToDisableScrollbars(GetRenderViewHost()); | 562 RequestRenderViewHostToDisableScrollbars(GetRenderViewHost()); |
| 564 } | 563 } |
| 565 | 564 |
| 566 Browser* Panel::browser() const { | 565 Browser* Panel::browser() const { |
| 567 return native_panel_->GetPanelBrowser(); | 566 return native_panel_->GetPanelBrowser(); |
| 568 } | 567 } |
| 569 | 568 |
| 570 void Panel::DestroyBrowser() { | 569 void Panel::DestroyBrowser() { |
| 571 native_panel_->DestroyPanelBrowser(); | 570 native_panel_->DestroyPanelBrowser(); |
| 572 } | 571 } |
| OLD | NEW |