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

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

Issue 11576016: Revert 172806 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | « content/renderer/pepper/pepper_flash_renderer_host.cc ('k') | ppapi/proxy/flash_resource.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_PROXY_FLASH_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_FLASH_RESOURCE_H_
6 #define PPAPI_PROXY_FLASH_RESOURCE_H_ 6 #define PPAPI_PROXY_FLASH_RESOURCE_H_
7 7
8 #include "ppapi/c/pp_instance.h" 8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/c/pp_var.h" 9 #include "ppapi/c/pp_var.h"
10 #include "ppapi/c/private/ppb_flash.h" 10 #include "ppapi/c/private/ppb_flash.h"
11 #include "ppapi/proxy/connection.h" 11 #include "ppapi/proxy/connection.h"
12 #include "ppapi/proxy/plugin_resource.h" 12 #include "ppapi/proxy/plugin_resource.h"
13 #include "ppapi/proxy/ppapi_proxy_export.h"
13 #include "ppapi/thunk/ppb_flash_functions_api.h" 14 #include "ppapi/thunk/ppb_flash_functions_api.h"
14 15
15 namespace ppapi { 16 namespace ppapi {
16 namespace proxy { 17 namespace proxy {
17 18
18 class FlashResource 19 class PPAPI_PROXY_EXPORT FlashResource
19 : public PluginResource, 20 : public PluginResource,
20 public thunk::PPB_Flash_Functions_API { 21 public NON_EXPORTED_BASE(thunk::PPB_Flash_Functions_API) {
21 public: 22 public:
22 FlashResource(Connection connection, PP_Instance instance); 23 FlashResource(Connection connection, PP_Instance instance);
23 virtual ~FlashResource(); 24 virtual ~FlashResource();
24 25
25 // Resource override. 26 // Resource override.
26 virtual thunk::PPB_Flash_Functions_API* AsPPB_Flash_Functions_API() OVERRIDE; 27 virtual thunk::PPB_Flash_Functions_API* AsPPB_Flash_Functions_API() OVERRIDE;
27 28
28 // PPB_Flash_Functions_API implementation. 29 // PPB_Flash_Functions_API implementation.
29 virtual PP_Var GetProxyForURL(PP_Instance instance, 30 virtual PP_Var GetProxyForURL(PP_Instance instance,
30 const std::string& url) OVERRIDE; 31 const std::string& url) OVERRIDE;
31 virtual void UpdateActivity(PP_Instance instance) OVERRIDE; 32 virtual void UpdateActivity(PP_Instance instance) OVERRIDE;
32 virtual PP_Bool SetCrashData(PP_Instance instance, 33 virtual PP_Bool SetCrashData(PP_Instance instance,
33 PP_FlashCrashKey key, 34 PP_FlashCrashKey key,
34 PP_Var value) OVERRIDE; 35 PP_Var value) OVERRIDE;
35 virtual void SetInstanceAlwaysOnTop(PP_Instance instance,
36 PP_Bool on_top) OVERRIDE;
37 virtual PP_Bool DrawGlyphs(
38 PP_Instance instance,
39 PP_Resource pp_image_data,
40 const PP_BrowserFont_Trusted_Description* font_desc,
41 uint32_t color,
42 const PP_Point* position,
43 const PP_Rect* clip,
44 const float transformation[3][3],
45 PP_Bool allow_subpixel_aa,
46 uint32_t glyph_count,
47 const uint16_t glyph_indices[],
48 const PP_Point glyph_advances[]) OVERRIDE;
49 virtual int32_t Navigate(PP_Instance instance,
50 PP_Resource request_info,
51 const char* target,
52 PP_Bool from_user_action) OVERRIDE;
53 virtual PP_Bool IsRectTopmost(PP_Instance instance,
54 const PP_Rect* rect) OVERRIDE;
55
56 private: 36 private:
57 DISALLOW_COPY_AND_ASSIGN(FlashResource); 37 DISALLOW_COPY_AND_ASSIGN(FlashResource);
58 }; 38 };
59 39
60 } // namespace proxy 40 } // namespace proxy
61 } // namespace ppapi 41 } // namespace ppapi
62 42
63 #endif // PPAPI_PROXY_FLASH_RESOURCE_H_ 43 #endif // PPAPI_PROXY_FLASH_RESOURCE_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_flash_renderer_host.cc ('k') | ppapi/proxy/flash_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698