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

Side by Side Diff: chrome/browser/ui/webui/print_preview_handler.cc

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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/ui/webui/print_preview_handler.h ('k') | chrome/browser/ui/webui/profiler_ui.cc » ('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/webui/print_preview_handler.h" 5 #include "chrome/browser/ui/webui/print_preview_handler.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 25 matching lines...) Expand all
36 #include "chrome/browser/ui/browser_list.h" 36 #include "chrome/browser/ui/browser_list.h"
37 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 37 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
38 #include "chrome/browser/ui/webui/cloud_print_signin_dialog.h" 38 #include "chrome/browser/ui/webui/cloud_print_signin_dialog.h"
39 #include "chrome/browser/ui/webui/print_preview_ui.h" 39 #include "chrome/browser/ui/webui/print_preview_ui.h"
40 #include "chrome/common/chrome_paths.h" 40 #include "chrome/common/chrome_paths.h"
41 #include "chrome/common/pref_names.h" 41 #include "chrome/common/pref_names.h"
42 #include "chrome/common/print_messages.h" 42 #include "chrome/common/print_messages.h"
43 #include "content/browser/renderer_host/render_view_host.h" 43 #include "content/browser/renderer_host/render_view_host.h"
44 #include "content/browser/renderer_host/render_view_host_delegate.h" 44 #include "content/browser/renderer_host/render_view_host_delegate.h"
45 #include "content/browser/tab_contents/navigation_controller.h" 45 #include "content/browser/tab_contents/navigation_controller.h"
46 #include "content/browser/webui/web_ui.h"
46 #include "content/public/browser/browser_thread.h" 47 #include "content/public/browser/browser_thread.h"
47 #include "content/public/browser/navigation_entry.h" 48 #include "content/public/browser/navigation_entry.h"
48 #include "content/public/browser/web_contents.h" 49 #include "content/public/browser/web_contents.h"
49 #include "printing/backend/print_backend.h" 50 #include "printing/backend/print_backend.h"
50 #include "printing/metafile.h" 51 #include "printing/metafile.h"
51 #include "printing/metafile_impl.h" 52 #include "printing/metafile_impl.h"
52 #include "printing/page_range.h" 53 #include "printing/page_range.h"
53 #include "printing/page_size_margins.h" 54 #include "printing/page_size_margins.h"
54 #include "printing/print_settings.h" 55 #include "printing/print_settings.h"
55 #include "unicode/ulocdata.h" 56 #include "unicode/ulocdata.h"
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 return; 858 return;
858 859
859 // We no longer require the initiator tab details. Remove those details 860 // We no longer require the initiator tab details. Remove those details
860 // associated with the preview tab to allow the initiator tab to create 861 // associated with the preview tab to allow the initiator tab to create
861 // another preview tab. 862 // another preview tab.
862 printing::PrintPreviewTabController* tab_controller = 863 printing::PrintPreviewTabController* tab_controller =
863 printing::PrintPreviewTabController::GetInstance(); 864 printing::PrintPreviewTabController::GetInstance();
864 if (tab_controller) 865 if (tab_controller)
865 tab_controller->EraseInitiatorTabInfo(preview_tab_wrapper()); 866 tab_controller->EraseInitiatorTabInfo(preview_tab_wrapper());
866 } 867 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview_handler.h ('k') | chrome/browser/ui/webui/profiler_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698