[Android] Implement 3-way sensor fallback for Device Orientation.
[chromium-blink-merge.git] / ppapi / cpp / private / flash_font_file.h
blob053fca25789f2e7c030fca8cb1520cfa4a3117cb
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
3 // found in the LICENSE file.
5 #ifndef PPAPI_CPP_PRIVATE_FLASH_FONT_FILE_H_
6 #define PPAPI_CPP_PRIVATE_FLASH_FONT_FILE_H_
8 #include "ppapi/c/private/pp_private_font_charset.h"
9 #include "ppapi/cpp/resource.h"
11 struct PP_BrowserFont_Trusted_Description;
13 namespace pp {
15 class InstanceHandle;
17 namespace flash {
19 class FontFile : public Resource {
20 public:
21 // Default constructor for making an is_null() FontFile resource.
22 FontFile();
23 FontFile(const InstanceHandle& instance,
24 const PP_BrowserFont_Trusted_Description* description,
25 PP_PrivateFontCharset charset);
26 virtual ~FontFile();
28 // Returns true if the required interface is available.
29 static bool IsAvailable();
31 bool GetFontTable(uint32_t table, void* output, uint32_t* output_length);
34 } // namespace flash
35 } // namespace pp
37 #endif // PPAPI_CPP_PRIVATE_FLASH_FONT_FILE_H_