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

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

Issue 7621087: Print Preview: Go from event driven print preview back to print preview with sync messages. The s... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: change print preview id, address comments, fix tests Created 9 years, 4 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 #include "chrome/browser/printing/print_dialog_cloud.h" 5 #include "chrome/browser/printing/print_dialog_cloud.h"
6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" 6 #include "chrome/browser/printing/print_dialog_cloud_internal.h"
7 7
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 const double kMaxPageShrink = 2.0; 370 const double kMaxPageShrink = 2.0;
371 371
372 PrintMsg_Print_Params default_settings; 372 PrintMsg_Print_Params default_settings;
373 default_settings.printable_size = gfx::Size(kWidth, kHeight); 373 default_settings.printable_size = gfx::Size(kWidth, kHeight);
374 default_settings.dpi = kDPI; 374 default_settings.dpi = kDPI;
375 default_settings.min_shrink = kMinPageShrink; 375 default_settings.min_shrink = kMinPageShrink;
376 default_settings.max_shrink = kMaxPageShrink; 376 default_settings.max_shrink = kMaxPageShrink;
377 default_settings.desired_dpi = kDPI; 377 default_settings.desired_dpi = kDPI;
378 default_settings.document_cookie = 0; 378 default_settings.document_cookie = 0;
379 default_settings.selection_only = false; 379 default_settings.selection_only = false;
380 default_settings.preview_ui_id = 0;
380 default_settings.preview_request_id = 0; 381 default_settings.preview_request_id = 0;
381 default_settings.is_first_request = true; 382 default_settings.is_first_request = true;
382 383
383 if (!GetPageSetupParameters(json, default_settings)) { 384 if (!GetPageSetupParameters(json, default_settings)) {
384 NOTREACHED(); 385 NOTREACHED();
385 return; 386 return;
386 } 387 }
387 388
388 // TODO(scottbyer) - Here is where we would kick the originating 389 // TODO(scottbyer) - Here is where we would kick the originating
389 // renderer thread with these new parameters in order to get it to 390 // renderer thread with these new parameters in order to get it to
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 print_job_title, 636 print_job_title,
636 file_type, 637 file_type,
637 false); 638 false);
638 return true; 639 return true;
639 } 640 }
640 } 641 }
641 return false; 642 return false;
642 } 643 }
643 644
644 } // end namespace 645 } // end namespace
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/print_preview_message_handler.h » ('j') | printing/print_job_constants.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698