| 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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 Browser::CreateParams params(Browser::TYPE_TABBED, profile); | 420 Browser::CreateParams params(Browser::TYPE_TABBED, profile); |
| 421 params.initial_bounds = window_bounds; | 421 params.initial_bounds = window_bounds; |
| 422 tabbed_browser = Browser::CreateWithParams(params); | 422 tabbed_browser = Browser::CreateWithParams(params); |
| 423 tabbed_browser->NewTab(); | 423 tabbed_browser->NewTab(); |
| 424 } | 424 } |
| 425 | 425 |
| 426 tabbed_browser->window()->Show(); // Ensure download shelf is visible. | 426 tabbed_browser->window()->Show(); // Ensure download shelf is visible. |
| 427 return tabbed_browser->window()->GetDownloadShelf(); | 427 return tabbed_browser->window()->GetDownloadShelf(); |
| 428 } | 428 } |
| 429 | 429 |
| 430 void Panel::ShowRepostFormWarningDialog(TabContents* tab_contents) { | |
| 431 NOTIMPLEMENTED(); | |
| 432 } | |
| 433 | |
| 434 void Panel::ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) { | 430 void Panel::ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) { |
| 435 NOTIMPLEMENTED(); | 431 NOTIMPLEMENTED(); |
| 436 } | 432 } |
| 437 | 433 |
| 438 void Panel::ConfirmBrowserCloseWithPendingDownloads() { | 434 void Panel::ConfirmBrowserCloseWithPendingDownloads() { |
| 439 NOTIMPLEMENTED(); | 435 NOTIMPLEMENTED(); |
| 440 } | 436 } |
| 441 | 437 |
| 442 void Panel::UserChangedTheme() { | 438 void Panel::UserChangedTheme() { |
| 443 native_panel_->NotifyPanelOnUserChangedTheme(); | 439 native_panel_->NotifyPanelOnUserChangedTheme(); |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 native_panel_->ContentSizeFromWindowSize(max_size_)); | 607 native_panel_->ContentSizeFromWindowSize(max_size_)); |
| 612 } | 608 } |
| 613 | 609 |
| 614 void Panel::OnWindowSizeAvailable() { | 610 void Panel::OnWindowSizeAvailable() { |
| 615 ConfigureAutoResize(browser()->GetSelectedTabContents()); | 611 ConfigureAutoResize(browser()->GetSelectedTabContents()); |
| 616 } | 612 } |
| 617 | 613 |
| 618 void Panel::DestroyBrowser() { | 614 void Panel::DestroyBrowser() { |
| 619 native_panel_->DestroyPanelBrowser(); | 615 native_panel_->DestroyPanelBrowser(); |
| 620 } | 616 } |
| OLD | NEW |