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

Side by Side Diff: chrome/browser/printing/print_preview_tab_controller.cc

Issue 10538059: TabContentsWrapper -> TabContents, part 24. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months 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/printing/print_preview_message_handler.cc ('k') | no next file » | 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) 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/printing/print_preview_tab_controller.h" 5 #include "chrome/browser/printing/print_preview_tab_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 content::Source<content::RenderProcessHost>(source).ptr()); 270 content::Source<content::RenderProcessHost>(source).ptr());
271 break; 271 break;
272 } 272 }
273 case chrome::NOTIFICATION_TAB_CONTENTS_DESTROYED: { 273 case chrome::NOTIFICATION_TAB_CONTENTS_DESTROYED: {
274 OnTabContentsDestroyed(content::Source<TabContents>(source).ptr()); 274 OnTabContentsDestroyed(content::Source<TabContents>(source).ptr());
275 break; 275 break;
276 } 276 }
277 case content::NOTIFICATION_NAV_ENTRY_COMMITTED: { 277 case content::NOTIFICATION_NAV_ENTRY_COMMITTED: {
278 NavigationController* controller = 278 NavigationController* controller =
279 content::Source<NavigationController>(source).ptr(); 279 content::Source<NavigationController>(source).ptr();
280 TabContents* tab = TabContents::GetCurrentWrapperForContents( 280 TabContents* tab = TabContents::FromWebContents(
281 controller->GetWebContents()); 281 controller->GetWebContents());
282 content::LoadCommittedDetails* load_details = 282 content::LoadCommittedDetails* load_details =
283 content::Details<content::LoadCommittedDetails>(details).ptr(); 283 content::Details<content::LoadCommittedDetails>(details).ptr();
284 OnNavEntryCommitted(tab, load_details); 284 OnNavEntryCommitted(tab, load_details);
285 break; 285 break;
286 } 286 }
287 default: { 287 default: {
288 NOTREACHED(); 288 NOTREACHED();
289 break; 289 break;
290 } 290 }
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>( 537 PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>(
538 preview_tab->web_contents()->GetWebUI()->GetController()); 538 preview_tab->web_contents()->GetWebUI()->GetController());
539 if (print_preview_ui) 539 if (print_preview_ui)
540 print_preview_ui->OnTabDestroyed(); 540 print_preview_ui->OnTabDestroyed();
541 541
542 preview_tab_map_.erase(preview_tab); 542 preview_tab_map_.erase(preview_tab);
543 RemoveObservers(preview_tab); 543 RemoveObservers(preview_tab);
544 } 544 }
545 545
546 } // namespace printing 546 } // namespace printing
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_preview_message_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698