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

Side by Side Diff: chrome/browser/ui/webui/print_preview/hidden_print_preview.h

Issue 1125343004: Add a "Simplify Page" option to the print preview dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update AUTHORS file to reflect the correct HP name used in the CLA Created 5 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
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HIDDEN_PRINT_PREVIEW_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HIDDEN_PRINT_PREVIEW_H_
7
8 #include "base/memory/shared_memory.h"
9 #include "base/values.h"
10 #include "chrome/browser/ui/webui/print_preview/hidden_web_contents.h"
11
12 class PrintPreviewUI;
13 struct PrintHostMsg_DidPreviewPage_Params;
14 struct PrintHostMsg_DidGetPreviewPageCount_Params;
15
16 namespace content {
17 class WebContents;
18 }
19
20 class HiddenPrintPreview
21 : public HiddenWebContents::Observer {
22 public:
23 HiddenPrintPreview(
24 content::WebContents* target_web_contents,
25 PrintPreviewUI* print_preview_ui);
26 ~HiddenPrintPreview() override;
27
28 void OnFail(HiddenWebContents* contents) override;
29 void OnFinishedLoad(HiddenWebContents* contents) override;
30
31 void SetSettings(scoped_ptr<base::DictionaryValue> settings);
32
33 void SendPrintPreviewMessageIfNecessary();
34
35 private:
36 void StartRendering(const GURL& url);
37
38 scoped_ptr<HiddenWebContents> hidden_web_contents_;
39 scoped_ptr<base::DictionaryValue> settings_;
40 content::WebContents* target_web_contents_;
41 PrintPreviewUI* print_preview_ui_;
42 };
43
44 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HIDDEN_PRINT_PREVIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698