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

Side by Side Diff: webkit/plugins/npapi/webplugin_print_delegate.h

Issue 6012002: Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi and put... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 WEBKIT_GLUE_PLUGINS_WEBPLUGIN_PRINT_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PRINT_DELEGATE_H_
6 #define WEBKIT_GLUE_PLUGINS_WEBPLUGIN_PRINT_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PRINT_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "third_party/npapi/bindings/npapi_extensions.h" 9 #include "third_party/npapi/bindings/npapi_extensions.h"
10 #include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Rect; 13 class Rect;
14 } 14 }
15 15
16 namespace webkit_glue { 16 namespace webkit {
17 namespace npapi {
17 18
18 // Interface for the NPAPI print extension. This class implements "NOP" 19 // Interface for the NPAPI print extension. This class implements "NOP"
19 // versions of all these functions so it can be used seamlessly by the 20 // versions of all these functions so it can be used seamlessly by the
20 // "regular" plugin delegate while being overridden by the "pepper" one. 21 // "regular" plugin delegate while being overridden by the "pepper" one.
21 class WebPluginPrintDelegate { 22 class WebPluginPrintDelegate {
22 public: 23 public:
23 // If a plugin supports print extensions, then it gets to participate fully 24 // If a plugin supports print extensions, then it gets to participate fully
24 // in the browser's print workflow by specifying the number of pages to be 25 // in the browser's print workflow by specifying the number of pages to be
25 // printed and providing a print output for specified pages. 26 // printed and providing a print output for specified pages.
26 virtual bool PrintSupportsPrintExtension(); 27 virtual bool PrintSupportsPrintExtension();
27 28
28 // Note: printable_area is in points (a point is 1/72 of an inch). 29 // Note: printable_area is in points (a point is 1/72 of an inch).
29 virtual int PrintBegin(const gfx::Rect& printable_area, int printer_dpi); 30 virtual int PrintBegin(const gfx::Rect& printable_area, int printer_dpi);
30 31
31 virtual bool PrintPage(int page_number, WebKit::WebCanvas* canvas); 32 virtual bool PrintPage(int page_number, WebKit::WebCanvas* canvas);
32 33
33 virtual void PrintEnd(); 34 virtual void PrintEnd();
34 35
35 protected: 36 protected:
36 WebPluginPrintDelegate() {} 37 WebPluginPrintDelegate() {}
37 virtual ~WebPluginPrintDelegate() {} 38 virtual ~WebPluginPrintDelegate() {}
38 }; 39 };
39 40
40 } // namespace webkit_glue 41 } // namespace npapi
42 } // namespace webkit
41 43
42 #endif // WEBKIT_GLUE_PLUGINS_WEBPLUGIN_PRINT_DELEGATE_H_ 44 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PRINT_DELEGATE_H_
43 45
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/webplugin_page_delegate.h ('k') | webkit/plugins/npapi/webplugin_print_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698