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

Side by Side Diff: chrome/renderer/print_web_view_helper.h

Issue 6775013: PrintPreview: While printing the preview data, set the initiator tab title as print job name. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated the CL. Created 9 years, 8 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
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_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 5 #ifndef CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 WebKit::WebFrame* script_initiated_preview_frame_; 234 WebKit::WebFrame* script_initiated_preview_frame_;
235 235
236 // The node under the context menu to print preview. 236 // The node under the context menu to print preview.
237 scoped_ptr<WebKit::WebNode> context_menu_preview_node_; 237 scoped_ptr<WebKit::WebNode> context_menu_preview_node_;
238 238
239 scoped_ptr<PrintMsg_PrintPages_Params> print_pages_params_; 239 scoped_ptr<PrintMsg_PrintPages_Params> print_pages_params_;
240 base::Time last_cancelled_script_print_; 240 base::Time last_cancelled_script_print_;
241 int user_cancelled_scripted_print_count_; 241 int user_cancelled_scripted_print_count_;
242 bool is_preview_; 242 bool is_preview_;
243 243
244 // For preview printing, |job_title_| is initiator tab title. Print view
245 // manager will use this value to set the print job name.
246 // For normal printing, |job_title_| is empty. Print view manager will use
247 // the current tab title as print job name.
stuartmorgan 2011/03/30 22:59:17 Again, too much detail for a header.
248 string16 job_title_;
249
244 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); 250 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
245 }; 251 };
246 252
247 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 253 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698