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::SetFullscreen(bool fullscreen, const GURL& url, |
Peter Kasting
2011/10/11 23:08:32
Nit: One arg per line, aligned
koz (OOO until 15th September)
2011/10/12 05:38:23
Done.
| |
250 bool ask_permission) { | |
250 NOTIMPLEMENTED(); | 251 NOTIMPLEMENTED(); |
251 } | 252 } |
252 | 253 |
253 bool Panel::IsFullscreen() const { | 254 bool Panel::IsFullscreen() const { |
254 return false; | 255 return false; |
255 } | 256 } |
256 | 257 |
257 bool Panel::IsFullscreenBubbleVisible() const { | 258 bool Panel::IsFullscreenBubbleVisible() const { |
258 NOTIMPLEMENTED(); | 259 NOTIMPLEMENTED(); |
259 return false; | 260 return false; |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
454 | 455 |
455 void Panel::Paste() { | 456 void Panel::Paste() { |
456 native_panel_->PanelPaste(); | 457 native_panel_->PanelPaste(); |
457 } | 458 } |
458 | 459 |
459 #if defined(OS_MACOSX) | 460 #if defined(OS_MACOSX) |
460 void Panel::OpenTabpose() { | 461 void Panel::OpenTabpose() { |
461 NOTIMPLEMENTED(); | 462 NOTIMPLEMENTED(); |
462 } | 463 } |
463 | 464 |
464 void Panel::SetPresentationMode(bool presentation_mode) { | 465 void Panel::SetPresentationMode(bool presentation_mode, |
466 const GURL& url, | |
467 bool ask_permission) { | |
465 NOTIMPLEMENTED(); | 468 NOTIMPLEMENTED(); |
466 } | 469 } |
467 | 470 |
468 bool Panel::InPresentationMode() { | 471 bool Panel::InPresentationMode() { |
469 NOTIMPLEMENTED(); | 472 NOTIMPLEMENTED(); |
470 return false; | 473 return false; |
471 } | 474 } |
472 #endif | 475 #endif |
473 | 476 |
474 void Panel::PrepareForInstant() { | 477 void Panel::PrepareForInstant() { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
562 RequestRenderViewHostToDisableScrollbars(GetRenderViewHost()); | 565 RequestRenderViewHostToDisableScrollbars(GetRenderViewHost()); |
563 } | 566 } |
564 | 567 |
565 Browser* Panel::browser() const { | 568 Browser* Panel::browser() const { |
566 return native_panel_->GetPanelBrowser(); | 569 return native_panel_->GetPanelBrowser(); |
567 } | 570 } |
568 | 571 |
569 void Panel::DestroyBrowser() { | 572 void Panel::DestroyBrowser() { |
570 native_panel_->DestroyPanelBrowser(); | 573 native_panel_->DestroyPanelBrowser(); |
571 } | 574 } |
OLD | NEW |