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

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

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | Annotate | Revision Log
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_H_ 5 #ifndef PPAPI_CPP_PRIVATE_FLASH_H_
6 #define PPAPI_CPP_PRIVATE_FLASH_H_ 6 #define PPAPI_CPP_PRIVATE_FLASH_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/c/pp_stdint.h" 10 #include "ppapi/c/pp_stdint.h"
11 #include "ppapi/c/pp_time.h" 11 #include "ppapi/c/pp_time.h"
12 12
13 struct PP_Point; 13 struct PP_Point;
14 14
15 namespace pp { 15 namespace pp {
16 16
17 class FontDescription_Dev; 17 class FontDescription_Dev;
18 class ImageData; 18 class ImageData;
19 class Instance; 19 class InstanceHandle;
20 class Module; 20 class Module;
21 class Point; 21 class Point;
22 class Rect; 22 class Rect;
23 class URLRequestInfo; 23 class URLRequestInfo;
24 class Var; 24 class Var;
25 25
26 namespace flash { 26 namespace flash {
27 27
28 class Flash { 28 class Flash {
29 public: 29 public:
30 // Returns true if the required interface is available. 30 // Returns true if the required interface is available.
31 static bool IsAvailable(); 31 static bool IsAvailable();
32 32
33 static void SetInstanceAlwaysOnTop(Instance* instance, bool on_top); 33 static void SetInstanceAlwaysOnTop(const InstanceHandle& instance, bool on_top );
dmichael (off chromium) 2012/02/21 23:38:02 >80 characters
34 static bool DrawGlyphs(Instance* instance, 34 static bool DrawGlyphs(const InstanceHandle& instance,
35 ImageData* image, 35 ImageData* image,
36 const FontDescription_Dev& font_desc, 36 const FontDescription_Dev& font_desc,
37 uint32_t color, 37 uint32_t color,
38 const Point& position, 38 const Point& position,
39 const Rect& clip, 39 const Rect& clip,
40 const float transformation[3][3], 40 const float transformation[3][3],
41 bool allow_subpixel_aa, 41 bool allow_subpixel_aa,
42 uint32_t glyph_count, 42 uint32_t glyph_count,
43 const uint16_t glyph_indices[], 43 const uint16_t glyph_indices[],
44 const PP_Point glyph_advances[]); 44 const PP_Point glyph_advances[]);
45 static Var GetProxyForURL(Instance* instance, const std::string& url); 45 static Var GetProxyForURL(const InstanceHandle& instance,
46 const std::string& url);
46 static int32_t Navigate(const URLRequestInfo& request_info, 47 static int32_t Navigate(const URLRequestInfo& request_info,
47 const std::string& target, 48 const std::string& target,
48 bool from_user_action); 49 bool from_user_action);
49 static void RunMessageLoop(Instance* instance); 50 static void RunMessageLoop(const InstanceHandle& instance);
50 static void QuitMessageLoop(Instance* instance); 51 static void QuitMessageLoop(const InstanceHandle& instance);
51 static double GetLocalTimeZoneOffset(Instance* instance, PP_Time t); 52 static double GetLocalTimeZoneOffset(const InstanceHandle& instance, PP_Time t );
52 static Var GetCommandLineArgs(Module* module); 53 static Var GetCommandLineArgs(Module* module);
53 static void PreloadFontWin(const void* logfontw); 54 static void PreloadFontWin(const void* logfontw);
54 static bool IsRectTopmost(Instance* instance, const Rect& rect); 55 static bool IsRectTopmost(const InstanceHandle& instance, const Rect& rect);
55 static int32_t InvokePrinting(Instance* instance); 56 static int32_t InvokePrinting(const InstanceHandle& instance);
56 static void UpdateActivity(Instance* instance); 57 static void UpdateActivity(const InstanceHandle& instance);
57 58
58 }; 59 };
59 60
60 } // namespace flash 61 } // namespace flash
61 } // namespace pp 62 } // namespace pp
62 63
63 #endif // PPAPI_CPP_PRIVATE_FLASH_H_ 64 #endif // PPAPI_CPP_PRIVATE_FLASH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698