| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 return expansion_state_ != EXPANDED; | 246 return expansion_state_ != EXPANDED; |
| 247 } | 247 } |
| 248 | 248 |
| 249 void Panel::SetFullscreen(bool fullscreen) { | 249 void Panel::EnterFullscreen(const GURL& url, bool ask_permission) { |
| 250 NOTIMPLEMENTED(); | 250 NOTIMPLEMENTED(); |
| 251 } | 251 } |
| 252 | 252 |
| 253 void Panel::ExitFullscreen() { |
| 254 NOTIMPLEMENTED(); |
| 255 } |
| 256 |
| 253 bool Panel::IsFullscreen() const { | 257 bool Panel::IsFullscreen() const { |
| 254 return false; | 258 return false; |
| 255 } | 259 } |
| 256 | 260 |
| 257 bool Panel::IsFullscreenBubbleVisible() const { | 261 bool Panel::IsFullscreenBubbleVisible() const { |
| 258 NOTIMPLEMENTED(); | 262 NOTIMPLEMENTED(); |
| 259 return false; | 263 return false; |
| 260 } | 264 } |
| 261 | 265 |
| 262 LocationBar* Panel::GetLocationBar() const { | 266 LocationBar* Panel::GetLocationBar() const { |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 | 457 |
| 454 void Panel::Paste() { | 458 void Panel::Paste() { |
| 455 native_panel_->PanelPaste(); | 459 native_panel_->PanelPaste(); |
| 456 } | 460 } |
| 457 | 461 |
| 458 #if defined(OS_MACOSX) | 462 #if defined(OS_MACOSX) |
| 459 void Panel::OpenTabpose() { | 463 void Panel::OpenTabpose() { |
| 460 NOTIMPLEMENTED(); | 464 NOTIMPLEMENTED(); |
| 461 } | 465 } |
| 462 | 466 |
| 463 void Panel::SetPresentationMode(bool presentation_mode) { | 467 void Panel::SetPresentationMode(bool presentation_mode, |
| 468 const GURL& url, |
| 469 bool ask_permission) { |
| 464 NOTIMPLEMENTED(); | 470 NOTIMPLEMENTED(); |
| 465 } | 471 } |
| 466 | 472 |
| 467 bool Panel::InPresentationMode() { | 473 bool Panel::InPresentationMode() { |
| 468 NOTIMPLEMENTED(); | 474 NOTIMPLEMENTED(); |
| 469 return false; | 475 return false; |
| 470 } | 476 } |
| 471 #endif | 477 #endif |
| 472 | 478 |
| 473 void Panel::ShowInstant(TabContentsWrapper* preview) { | 479 void Panel::ShowInstant(TabContentsWrapper* preview) { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 RequestRenderViewHostToDisableScrollbars(GetRenderViewHost()); | 563 RequestRenderViewHostToDisableScrollbars(GetRenderViewHost()); |
| 558 } | 564 } |
| 559 | 565 |
| 560 Browser* Panel::browser() const { | 566 Browser* Panel::browser() const { |
| 561 return native_panel_->GetPanelBrowser(); | 567 return native_panel_->GetPanelBrowser(); |
| 562 } | 568 } |
| 563 | 569 |
| 564 void Panel::DestroyBrowser() { | 570 void Panel::DestroyBrowser() { |
| 565 native_panel_->DestroyPanelBrowser(); | 571 native_panel_->DestroyPanelBrowser(); |
| 566 } | 572 } |
| OLD | NEW |