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

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

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (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/policy_ui.cc ('k') | chrome/browser/ui/webui/print_preview_handler.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 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsCustom); 73 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsCustom);
74 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsDefault); 74 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsDefault);
75 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, 75 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest,
76 StickyMarginsCustomThenDefault); 76 StickyMarginsCustomThenDefault);
77 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, 77 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest,
78 GetLastUsedMarginSettingsCustom); 78 GetLastUsedMarginSettingsCustom);
79 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, 79 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest,
80 GetLastUsedMarginSettingsDefault); 80 GetLastUsedMarginSettingsDefault);
81 81
82 TabContentsWrapper* preview_tab_wrapper() const; 82 TabContentsWrapper* preview_tab_wrapper() const;
83 TabContents* preview_tab() const; 83 content::WebContents* preview_tab() const;
84 84
85 // Gets the list of printers. |args| is unused. 85 // Gets the list of printers. |args| is unused.
86 void HandleGetPrinters(const base::ListValue* args); 86 void HandleGetPrinters(const base::ListValue* args);
87 87
88 // Asks the initiator renderer to generate a preview. First element of |args| 88 // Asks the initiator renderer to generate a preview. First element of |args|
89 // is a job settings JSON string. 89 // is a job settings JSON string.
90 void HandleGetPreview(const base::ListValue* args); 90 void HandleGetPreview(const base::ListValue* args);
91 91
92 // Gets the job settings from Web UI and initiate printing. First element of 92 // Gets the job settings from Web UI and initiate printing. First element of
93 // |args| is a job settings JSON string. 93 // |args| is a job settings JSON string.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 bool has_logged_printers_count_; 207 bool has_logged_printers_count_;
208 208
209 // Holds the path to the print to pdf request. It is empty if no such request 209 // Holds the path to the print to pdf request. It is empty if no such request
210 // exists. 210 // exists.
211 scoped_ptr<FilePath> print_to_pdf_path_; 211 scoped_ptr<FilePath> print_to_pdf_path_;
212 212
213 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 213 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
214 }; 214 };
215 215
216 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 216 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/policy_ui.cc ('k') | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698