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

Side by Side Diff: ppapi/cpp/private/flash_drm.h

Issue 68773004: Pepper: Add MonitorIsExternal function to PPB_Flash_DRM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TODO, interface ordering.x Created 7 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
« no previous file with comments | « ppapi/c/private/ppb_flash_drm.h ('k') | ppapi/cpp/private/flash_drm.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) 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_CPP_PRIVATE_FLASH_DRM_H_ 5 #ifndef PPAPI_CPP_PRIVATE_FLASH_DRM_H_
6 #define PPAPI_CPP_PRIVATE_FLASH_DRM_H_ 6 #define PPAPI_CPP_PRIVATE_FLASH_DRM_H_
7 7
8 #include "ppapi/cpp/completion_callback.h" 8 #include "ppapi/cpp/completion_callback.h"
9 #include "ppapi/cpp/file_ref.h" 9 #include "ppapi/cpp/file_ref.h"
10 #include "ppapi/cpp/resource.h" 10 #include "ppapi/cpp/resource.h"
11 11
12 namespace pp { 12 namespace pp {
13 13
14 class FileRef; 14 class FileRef;
15 15
16 namespace flash { 16 namespace flash {
17 17
18 class DRM : public Resource { 18 class DRM : public Resource {
19 public: 19 public:
20 DRM(); 20 DRM();
21 explicit DRM(const InstanceHandle& instance); 21 explicit DRM(const InstanceHandle& instance);
22 22
23 // On success, returns a string var. 23 // On success, returns a string var.
24 int32_t GetDeviceID(const CompletionCallbackWithOutput<Var>& callback); 24 int32_t GetDeviceID(const CompletionCallbackWithOutput<Var>& callback);
25 // Outputs the HMONITOR associated with the current plugin instance in 25 // Outputs the HMONITOR associated with the current plugin instance in
26 // |hmonitor|. True is returned upon success. 26 // |hmonitor|. True is returned upon success.
27 bool GetHmonitor(int64_t* hmonitor); 27 bool GetHmonitor(int64_t* hmonitor);
28 // Returns the voucher file as a FileRef or an invalid resource on failure. 28 // Returns the voucher file as a FileRef or an invalid resource on failure.
29 int32_t GetVoucherFile(const CompletionCallbackWithOutput<FileRef>& callback); 29 int32_t GetVoucherFile(const CompletionCallbackWithOutput<FileRef>& callback);
30 // On success, returns a value indicating if the monitor associated with the
31 // current plugin instance is external.
32 int32_t MonitorIsExternal(
33 const CompletionCallbackWithOutput<PP_Bool>& callback);
30 }; 34 };
31 35
32 } // namespace flash 36 } // namespace flash
33 } // namespace pp 37 } // namespace pp
34 38
35 #endif // PPAPI_CPP_PRIVATE_FLASH_DRM_H_ 39 #endif // PPAPI_CPP_PRIVATE_FLASH_DRM_H_
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_flash_drm.h ('k') | ppapi/cpp/private/flash_drm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698