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

Side by Side Diff: ppapi/proxy/printing_resource.h

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: PPB_Printing_Dev changes Created 6 years, 3 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 PPAPI_PROXY_PRINTING_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_PRINTING_RESOURCE_H_
6 #define PPAPI_PROXY_PRINTING_RESOURCE_H_ 6 #define PPAPI_PROXY_PRINTING_RESOURCE_H_
7 7
8 #include "ppapi/proxy/connection.h" 8 #include "ppapi/proxy/connection.h"
9 #include "ppapi/proxy/plugin_resource.h" 9 #include "ppapi/proxy/plugin_resource.h"
10 #include "ppapi/proxy/ppapi_proxy_export.h" 10 #include "ppapi/proxy/ppapi_proxy_export.h"
(...skipping 12 matching lines...) Expand all
23 virtual ~PrintingResource(); 23 virtual ~PrintingResource();
24 24
25 // Resource overrides. 25 // Resource overrides.
26 virtual thunk::PPB_Printing_API* AsPPB_Printing_API() OVERRIDE; 26 virtual thunk::PPB_Printing_API* AsPPB_Printing_API() OVERRIDE;
27 27
28 // PPB_Printing_API. 28 // PPB_Printing_API.
29 virtual int32_t GetDefaultPrintSettings( 29 virtual int32_t GetDefaultPrintSettings(
30 PP_PrintSettings_Dev* print_settings, 30 PP_PrintSettings_Dev* print_settings,
31 scoped_refptr<TrackedCallback> callback) OVERRIDE; 31 scoped_refptr<TrackedCallback> callback) OVERRIDE;
32 32
33 virtual void SetPrintPresetOptionsFromDocument(
34 PP_PrintPresetOptions_Dev* print_options) OVERRIDE;
35
33 private: 36 private:
34 void OnPluginMsgGetDefaultPrintSettingsReply( 37 void OnPluginMsgGetDefaultPrintSettingsReply(
35 PP_PrintSettings_Dev* settings_out, 38 PP_PrintSettings_Dev* settings_out,
36 scoped_refptr<TrackedCallback> callback, 39 scoped_refptr<TrackedCallback> callback,
37 const ResourceMessageReplyParams& params, 40 const ResourceMessageReplyParams& params,
38 const PP_PrintSettings_Dev& settings); 41 const PP_PrintSettings_Dev& settings);
39 42
40 DISALLOW_COPY_AND_ASSIGN(PrintingResource); 43 DISALLOW_COPY_AND_ASSIGN(PrintingResource);
41 }; 44 };
42 45
43 } // namespace proxy 46 } // namespace proxy
44 } // namespace ppapi 47 } // namespace ppapi
45 48
46 #endif // PPAPI_PROXY_PRINTING_RESOURCE_H_ 49 #endif // PPAPI_PROXY_PRINTING_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698