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

Side by Side Diff: chrome/renderer/mock_printer.cc

Issue 155905: Separates ipc code from common (http://crbug.com/16829) (Closed)
Patch Set: Fixes reference to 'common_message_traits' it's actually 'common_param_traits' Created 11 years, 5 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
« no previous file with comments | « chrome/renderer/external_host_bindings.h ('k') | chrome/renderer/mock_render_thread.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/renderer/mock_printer.h" 5 #include "chrome/renderer/mock_printer.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "chrome/common/ipc_message_utils.h"
11 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
11 #include "ipc/ipc_message_utils.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 MockPrinter::MockPrinter() 14 MockPrinter::MockPrinter()
15 : printable_width_(0), 15 : printable_width_(0),
16 printable_height_(0), 16 printable_height_(0),
17 dpi_(72), 17 dpi_(72),
18 max_shrink_(2.0), 18 max_shrink_(2.0),
19 min_shrink_(1.25), 19 min_shrink_(1.25),
20 desired_dpi_(72), 20 desired_dpi_(72),
21 selection_only_(false), 21 selection_only_(false),
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 return false; 185 return false;
186 186
187 pages_[page]->image().SaveToPng(filename); 187 pages_[page]->image().SaveToPng(filename);
188 return true; 188 return true;
189 } 189 }
190 190
191 int MockPrinter::CreateDocumentCookie() { 191 int MockPrinter::CreateDocumentCookie() {
192 return ++current_document_cookie_; 192 return ++current_document_cookie_;
193 } 193 }
194 194
OLDNEW
« no previous file with comments | « chrome/renderer/external_host_bindings.h ('k') | chrome/renderer/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698