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

Side by Side Diff: chrome/browser/dom_ui/print_preview_handler.h

Issue 6479004: Print Preview: Hook up the print button to initiate a normal print operation.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add a comment Created 9 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/dom_ui/print_preview_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_DOM_UI_PRINT_PREVIEW_HANDLER_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_PRINT_PREVIEW_HANDLER_H_
6 #define CHROME_BROWSER_DOM_UI_PRINT_PREVIEW_HANDLER_H_ 6 #define CHROME_BROWSER_DOM_UI_PRINT_PREVIEW_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/weak_ptr.h" 10 #include "base/weak_ptr.h"
(...skipping 10 matching lines...) Expand all
21 PrintPreviewHandler(); 21 PrintPreviewHandler();
22 virtual ~PrintPreviewHandler(); 22 virtual ~PrintPreviewHandler();
23 23
24 // WebUIMessageHandler implementation. 24 // WebUIMessageHandler implementation.
25 virtual void RegisterMessages(); 25 virtual void RegisterMessages();
26 26
27 private: 27 private:
28 // Get the list of printers and send it to the Web UI. |args| is unused. 28 // Get the list of printers and send it to the Web UI. |args| is unused.
29 void HandleGetPrinters(const ListValue* args); 29 void HandleGetPrinters(const ListValue* args);
30 30
31 // Print the preview PDF. |args| is unused.
32 void HandlePrint(const ListValue* args);
33
31 // Pointer to current print system. 34 // Pointer to current print system.
32 scoped_refptr<printing::PrintBackend> print_backend_; 35 scoped_refptr<printing::PrintBackend> print_backend_;
33 36
34 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 37 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
35 }; 38 };
36 39
37 #endif // CHROME_BROWSER_DOM_UI_PRINT_PREVIEW_HANDLER_H_ 40 #endif // CHROME_BROWSER_DOM_UI_PRINT_PREVIEW_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/dom_ui/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698