OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_browser_window.h" | 5 #include "chrome/browser/ui/panels/panel_browser_window.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/browser_commands.h" | 9 #include "chrome/browser/ui/browser_commands.h" |
10 #include "chrome/browser/ui/browser_finder.h" | 10 #include "chrome/browser/ui/browser_finder.h" |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 | 424 |
425 void PanelBrowserWindow::HideInstant() { | 425 void PanelBrowserWindow::HideInstant() { |
426 NOTIMPLEMENTED(); | 426 NOTIMPLEMENTED(); |
427 } | 427 } |
428 | 428 |
429 gfx::Rect PanelBrowserWindow::GetInstantBounds() { | 429 gfx::Rect PanelBrowserWindow::GetInstantBounds() { |
430 NOTIMPLEMENTED(); | 430 NOTIMPLEMENTED(); |
431 return gfx::Rect(); | 431 return gfx::Rect(); |
432 } | 432 } |
433 | 433 |
| 434 bool PanelBrowserWindow::GetIsShowingInstant() { |
| 435 NOTIMPLEMENTED(); |
| 436 return false; |
| 437 } |
| 438 |
434 WindowOpenDisposition PanelBrowserWindow::GetDispositionForPopupBounds( | 439 WindowOpenDisposition PanelBrowserWindow::GetDispositionForPopupBounds( |
435 const gfx::Rect& bounds) { | 440 const gfx::Rect& bounds) { |
436 #if defined(USE_AURA) | 441 #if defined(USE_AURA) |
437 // TODO(stevenjb): Remove this when Aura panels are implemented post R18. | 442 // TODO(stevenjb): Remove this when Aura panels are implemented post R18. |
438 PanelBrowserView* panel_view = static_cast<PanelBrowserView*>(native_panel_); | 443 PanelBrowserView* panel_view = static_cast<PanelBrowserView*>(native_panel_); |
439 return panel_view->GetDispositionForPopupBounds(bounds); | 444 return panel_view->GetDispositionForPopupBounds(bounds); |
440 #else | 445 #else |
441 return NEW_POPUP; | 446 return NEW_POPUP; |
442 #endif | 447 #endif |
443 } | 448 } |
(...skipping 24 matching lines...) Expand all Loading... |
468 } | 473 } |
469 | 474 |
470 void PanelBrowserWindow::TabInsertedAt(TabContents* contents, | 475 void PanelBrowserWindow::TabInsertedAt(TabContents* contents, |
471 int index, | 476 int index, |
472 bool foreground) { | 477 bool foreground) { |
473 if (panel_->auto_resizable()) { | 478 if (panel_->auto_resizable()) { |
474 DCHECK_EQ(0, index); | 479 DCHECK_EQ(0, index); |
475 panel_->EnableWebContentsAutoResize(contents->web_contents()); | 480 panel_->EnableWebContentsAutoResize(contents->web_contents()); |
476 } | 481 } |
477 } | 482 } |
OLD | NEW |