OLD | NEW |
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 WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "ppapi/thunk/ppb_flash_api.h" | 12 #include "ppapi/thunk/ppb_flash_api.h" |
13 | 13 |
14 namespace webkit { | 14 namespace webkit { |
15 namespace ppapi { | 15 namespace ppapi { |
16 | 16 |
17 class PluginInstance; | 17 class PluginInstance; |
18 | 18 |
19 class PPB_Flash_Impl : public ::ppapi::thunk::PPB_Flash_API { | 19 class PPB_Flash_Impl : public ::ppapi::thunk::PPB_Flash_API { |
20 public: | 20 public: |
21 explicit PPB_Flash_Impl(PluginInstance* instance); | 21 explicit PPB_Flash_Impl(PluginInstance* instance); |
22 virtual ~PPB_Flash_Impl(); | 22 virtual ~PPB_Flash_Impl(); |
23 | 23 |
24 // PPB_Flash_API. | 24 // PPB_Flash_API. |
| 25 virtual void SetInstanceAlwaysOnTop(PP_Instance instance, |
| 26 PP_Bool on_top) OVERRIDE; |
| 27 virtual PP_Bool DrawGlyphs( |
| 28 PP_Instance instance, |
| 29 PP_Resource pp_image_data, |
| 30 const PP_BrowserFont_Trusted_Description* font_desc, |
| 31 uint32_t color, |
| 32 const PP_Point* position, |
| 33 const PP_Rect* clip, |
| 34 const float transformation[3][3], |
| 35 PP_Bool allow_subpixel_aa, |
| 36 uint32_t glyph_count, |
| 37 const uint16_t glyph_indices[], |
| 38 const PP_Point glyph_advances[]) OVERRIDE; |
| 39 virtual int32_t Navigate(PP_Instance instance, |
| 40 PP_Resource request_info, |
| 41 const char* target, |
| 42 PP_Bool from_user_action) OVERRIDE; |
| 43 virtual int32_t Navigate(PP_Instance instance, |
| 44 const ::ppapi::URLRequestInfoData& data, |
| 45 const char* target, |
| 46 PP_Bool from_user_action) OVERRIDE; |
25 virtual double GetLocalTimeZoneOffset(PP_Instance instance, | 47 virtual double GetLocalTimeZoneOffset(PP_Instance instance, |
26 PP_Time t) OVERRIDE; | 48 PP_Time t) OVERRIDE; |
| 49 virtual PP_Bool IsRectTopmost(PP_Instance instance, |
| 50 const PP_Rect* rect) OVERRIDE; |
27 virtual PP_Var GetSetting(PP_Instance instance, | 51 virtual PP_Var GetSetting(PP_Instance instance, |
28 PP_FlashSetting setting) OVERRIDE; | 52 PP_FlashSetting setting) OVERRIDE; |
29 | 53 |
30 private: | 54 private: |
31 PluginInstance* instance_; | 55 PluginInstance* instance_; |
32 | 56 |
33 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl); | 57 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl); |
34 }; | 58 }; |
35 | 59 |
36 } // namespace ppapi | 60 } // namespace ppapi |
37 } // namespace webkit | 61 } // namespace webkit |
38 | 62 |
39 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ | 63 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ |
OLD | NEW |