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

Side by Side Diff: chrome/common/render_messages.h

Issue 100023: Should handle the events when no printer is detected on local machine... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 7 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_COMMON_RENDER_MESSAGES_H_ 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
6 #define CHROME_COMMON_RENDER_MESSAGES_H_ 6 #define CHROME_COMMON_RENDER_MESSAGES_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include <map> 10 #include <map>
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 int document_cookie; 301 int document_cookie;
302 302
303 // Warning: do not compare document_cookie. 303 // Warning: do not compare document_cookie.
304 bool Equals(const ViewMsg_Print_Params& rhs) const { 304 bool Equals(const ViewMsg_Print_Params& rhs) const {
305 return printable_size == rhs.printable_size && 305 return printable_size == rhs.printable_size &&
306 dpi == rhs.dpi && 306 dpi == rhs.dpi &&
307 min_shrink == rhs.min_shrink && 307 min_shrink == rhs.min_shrink &&
308 max_shrink == rhs.max_shrink && 308 max_shrink == rhs.max_shrink &&
309 desired_dpi == rhs.desired_dpi; 309 desired_dpi == rhs.desired_dpi;
310 } 310 }
311
312 // Checking if the current params is empty. Just initialized after a memset.
313 bool IsEmpty() const {
314 return !document_cookie && !desired_dpi && !max_shrink && !min_shrink &&
315 !dpi && printable_size.IsEmpty();
316 }
311 }; 317 };
312 318
313 struct ViewMsg_PrintPage_Params { 319 struct ViewMsg_PrintPage_Params {
314 // Parameters to render the page as a printed page. It must always be the same 320 // Parameters to render the page as a printed page. It must always be the same
315 // value for all the document. 321 // value for all the document.
316 ViewMsg_Print_Params params; 322 ViewMsg_Print_Params params;
317 323
318 // The page number is the indicator of the square that should be rendered 324 // The page number is the indicator of the square that should be rendered
319 // according to the layout specified in ViewMsg_Print_Params. 325 // according to the layout specified in ViewMsg_Print_Params.
320 int page_number; 326 int page_number;
(...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 } 1837 }
1832 }; 1838 };
1833 1839
1834 } // namespace IPC 1840 } // namespace IPC
1835 1841
1836 1842
1837 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 1843 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
1838 #include "chrome/common/ipc_message_macros.h" 1844 #include "chrome/common/ipc_message_macros.h"
1839 1845
1840 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 1846 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698