Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: chrome/browser/ui/panels/panel.cc

Issue 8851007: WIP / Do not commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/tab_modal_dialog_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 Browser::CreateParams params(Browser::TYPE_TABBED, profile); 441 Browser::CreateParams params(Browser::TYPE_TABBED, profile);
442 params.initial_bounds = window_bounds; 442 params.initial_bounds = window_bounds;
443 tabbed_browser = Browser::CreateWithParams(params); 443 tabbed_browser = Browser::CreateWithParams(params);
444 tabbed_browser->NewTab(); 444 tabbed_browser->NewTab();
445 } 445 }
446 446
447 tabbed_browser->window()->Show(); // Ensure download shelf is visible. 447 tabbed_browser->window()->Show(); // Ensure download shelf is visible.
448 return tabbed_browser->window()->GetDownloadShelf(); 448 return tabbed_browser->window()->GetDownloadShelf();
449 } 449 }
450 450
451 void Panel::ShowRepostFormWarningDialog(TabContents* tab_contents) { 451 void Panel::ShowTabModalDialog(TabModalDialogDelegate* delegate,
452 TabContents* tab_contents) {
452 NOTIMPLEMENTED(); 453 NOTIMPLEMENTED();
453 } 454 }
454 455
455 void Panel::ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) { 456 void Panel::ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) {
456 NOTIMPLEMENTED(); 457 NOTIMPLEMENTED();
457 } 458 }
458 459
459 void Panel::ConfirmBrowserCloseWithPendingDownloads() { 460 void Panel::ConfirmBrowserCloseWithPendingDownloads() {
460 NOTIMPLEMENTED(); 461 NOTIMPLEMENTED();
461 } 462 }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 native_panel_->ContentSizeFromWindowSize(max_size_)); 633 native_panel_->ContentSizeFromWindowSize(max_size_));
633 } 634 }
634 635
635 void Panel::OnWindowSizeAvailable() { 636 void Panel::OnWindowSizeAvailable() {
636 ConfigureAutoResize(browser()->GetSelectedTabContents()); 637 ConfigureAutoResize(browser()->GetSelectedTabContents());
637 } 638 }
638 639
639 void Panel::DestroyBrowser() { 640 void Panel::DestroyBrowser() {
640 native_panel_->DestroyPanelBrowser(); 641 native_panel_->DestroyPanelBrowser();
641 } 642 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/tab_modal_dialog_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698