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

Unified Diff: chrome/renderer/mock_printer.h

Issue 7693017: Removed use of memset with PrintMsg_Print_Params struct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes as per Kausalya's comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/print_messages.cc ('k') | chrome/renderer/mock_printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/mock_printer.h
diff --git a/chrome/renderer/mock_printer.h b/chrome/renderer/mock_printer.h
index 326a50de90e88dc77a69fe67b660e09f0406a7a3..0a857807c84c8d2712589838eb7cd1ef694e60b2 100644
--- a/chrome/renderer/mock_printer.h
+++ b/chrome/renderer/mock_printer.h
@@ -146,55 +146,4 @@ class MockPrinter {
DISALLOW_COPY_AND_ASSIGN(MockPrinter);
};
-// A clone of PrintMsg_Print_Params struct.
-class PrintMsg_Print_Params_Clone {
- public:
- PrintMsg_Print_Params_Clone();
- ~PrintMsg_Print_Params_Clone();
-
- // Resets the members of |params| to 0. Checks to see if
- // PrintMsg_Print_Params and PrintMsg_Print_Params_Clone have identical
- // member variables.
- void ResetParams(PrintMsg_Print_Params* params);
-
- private:
- gfx::Size page_size_;
- gfx::Size printable_size_;
- int margin_top_;
- int margin_left_;
- double dpi_;
- double min_shrink_;
- double max_shrink_;
- int desired_dpi_;
- int document_cookie_;
- bool selection_only_;
- bool supports_alpha_blend_;
- int preview_request_id_;
- bool is_first_request_;
- bool display_header_footer_;
- string16 date_;
- string16 title_;
- string16 url_;
-
- DISALLOW_COPY_AND_ASSIGN(PrintMsg_Print_Params_Clone);
-};
-
-// A clone of PrintMsg_PrintPages_Params struct.
-class PrintMsg_PrintPages_Params_Clone {
- public:
- PrintMsg_PrintPages_Params_Clone();
- ~PrintMsg_PrintPages_Params_Clone();
-
- // Resets the members of |params| to 0. Checks to see if
- // PrintMsg_PrintPages_Params and PrintMsg_PrintPages_Params_Clone have
- // identical member variables.
- void ResetParams(PrintMsg_PrintPages_Params* params);
-
- private:
- PrintMsg_Print_Params_Clone params_;
- std::vector<int> pages_;
-
- DISALLOW_COPY_AND_ASSIGN(PrintMsg_PrintPages_Params_Clone);
-};
-
#endif // CHROME_RENDERER_MOCK_PRINTER_H_
« no previous file with comments | « chrome/common/print_messages.cc ('k') | chrome/renderer/mock_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698