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

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: USELESS PATCH TITLE Created 8 years, 9 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
« no previous file with comments | « ppapi/cpp/pass_ref.h ('k') | ppapi/cpp/private/flash.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_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,
34 static bool DrawGlyphs(Instance* instance, 34 bool on_top);
35 static bool DrawGlyphs(const InstanceHandle& instance,
35 ImageData* image, 36 ImageData* image,
36 const FontDescription_Dev& font_desc, 37 const FontDescription_Dev& font_desc,
37 uint32_t color, 38 uint32_t color,
38 const Point& position, 39 const Point& position,
39 const Rect& clip, 40 const Rect& clip,
40 const float transformation[3][3], 41 const float transformation[3][3],
41 bool allow_subpixel_aa, 42 bool allow_subpixel_aa,
42 uint32_t glyph_count, 43 uint32_t glyph_count,
43 const uint16_t glyph_indices[], 44 const uint16_t glyph_indices[],
44 const PP_Point glyph_advances[]); 45 const PP_Point glyph_advances[]);
45 static Var GetProxyForURL(Instance* instance, const std::string& url); 46 static Var GetProxyForURL(const InstanceHandle& instance,
47 const std::string& url);
46 static int32_t Navigate(const URLRequestInfo& request_info, 48 static int32_t Navigate(const URLRequestInfo& request_info,
47 const std::string& target, 49 const std::string& target,
48 bool from_user_action); 50 bool from_user_action);
49 static void RunMessageLoop(Instance* instance); 51 static void RunMessageLoop(const InstanceHandle& instance);
50 static void QuitMessageLoop(Instance* instance); 52 static void QuitMessageLoop(const InstanceHandle& instance);
51 static double GetLocalTimeZoneOffset(Instance* instance, PP_Time t); 53 static double GetLocalTimeZoneOffset(const InstanceHandle& instance,
54 PP_Time t);
52 static Var GetCommandLineArgs(Module* module); 55 static Var GetCommandLineArgs(Module* module);
53 static void PreloadFontWin(const void* logfontw); 56 static void PreloadFontWin(const void* logfontw);
54 static bool IsRectTopmost(Instance* instance, const Rect& rect); 57 static bool IsRectTopmost(const InstanceHandle& instance, const Rect& rect);
55 static int32_t InvokePrinting(Instance* instance); 58 static int32_t InvokePrinting(const InstanceHandle& instance);
56 static void UpdateActivity(Instance* instance); 59 static void UpdateActivity(const InstanceHandle& instance);
57 60
58 }; 61 };
59 62
60 } // namespace flash 63 } // namespace flash
61 } // namespace pp 64 } // namespace pp
62 65
63 #endif // PPAPI_CPP_PRIVATE_FLASH_H_ 66 #endif // PPAPI_CPP_PRIVATE_FLASH_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/pass_ref.h ('k') | ppapi/cpp/private/flash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698