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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/render_messages.h
===================================================================
--- chrome/common/render_messages.h (revision 14282)
+++ chrome/common/render_messages.h (working copy)
@@ -308,6 +308,12 @@
max_shrink == rhs.max_shrink &&
desired_dpi == rhs.desired_dpi;
}
+
+ // Checking if the current params is empty. Just initialized after a memset.
+ bool IsEmpty() const {
+ return !document_cookie && !desired_dpi && !max_shrink && !min_shrink &&
+ !dpi && printable_size.IsEmpty();
+ }
};
struct ViewMsg_PrintPage_Params {

Powered by Google App Engine
This is Rietveld 408576698