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

Unified Diff: headless/lib/browser/headless_print_manager.h

Issue 2762593002: Add --headless flag to Windows (Closed)
Patch Set: added TODO Created 3 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 side-by-side diff with in-line comments
Download patch
Index: headless/lib/browser/headless_print_manager.h
diff --git a/headless/lib/browser/headless_print_manager.h b/headless/lib/browser/headless_print_manager.h
index 0b2636b497e12be4a7b57c25b7fc9b95a9b908d9..89a1815b62ad702039a69d64349fa189afe60ac2 100644
--- a/headless/lib/browser/headless_print_manager.h
+++ b/headless/lib/browser/headless_print_manager.h
@@ -12,6 +12,7 @@
#include "components/printing/browser/print_manager.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents_user_data.h"
+#include "headless/public/headless_export.h"
#include "printing/print_settings.h"
#include "printing/printing_export.h"
@@ -59,7 +60,7 @@ class HeadlessPrintManager
};
enum PageRangeStatus {
- NO_ERROR,
+ PRINT_NO_ERROR,
SYNTAX_ERROR,
LIMIT_ERROR,
};
@@ -71,9 +72,11 @@ class HeadlessPrintManager
static std::string PrintResultToString(PrintResult result);
static std::unique_ptr<base::DictionaryValue> PDFContentsToDictionaryValue(
const std::string& data);
- static PageRangeStatus PageRangeTextToPages(base::StringPiece page_range_text,
- int pages_count,
- std::vector<int>* pages);
+ // Exported for tests.
+ HEADLESS_EXPORT static PageRangeStatus PageRangeTextToPages(
+ base::StringPiece page_range_text,
+ int pages_count,
+ std::vector<int>* pages);
// Prints the current document immediately. Since the rendering is
// asynchronous, the actual printing will not be completed on the return of
« no previous file with comments | « headless/lib/browser/headless_devtools_manager_delegate.h ('k') | headless/lib/browser/headless_print_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698