Chromium Code Reviews| Index: printing/printing_context.h |
| diff --git a/printing/printing_context.h b/printing/printing_context.h |
| index 46e9f57b0ffefe58c058c644bcd3a240df684a94..d89a970cbd03818bbb2f190421a22ad4ea7b31c8 100644 |
| --- a/printing/printing_context.h |
| +++ b/printing/printing_context.h |
| @@ -9,6 +9,7 @@ |
| #include "base/basictypes.h" |
| #include "base/callback_old.h" |
| +#include "base/logging.h" |
| #include "base/string16.h" |
| #include "printing/print_settings.h" |
| #include "ui/gfx/native_widget_types.h" |
| @@ -98,8 +99,9 @@ class PRINTING_EXPORT PrintingContext { |
| // caller owns the returned object. |
| static PrintingContext* Create(const std::string& app_locale); |
| - void set_use_overlays(bool use_overlays) { |
| - settings_.use_overlays = use_overlays; |
| + void set_margin_type(MarginType type) { |
| + DCHECK(type != CUSTOM_MARGINS); |
|
Lei Zhang
2011/10/08 02:02:05
Clang probably won't like this. Move into .cc file
vandebo (ex-Chrome)
2011/10/15 00:42:50
Done.
|
| + settings_.margin_type = type; |
| } |
| const PrintSettings& settings() const { |