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

Side by Side Diff: ppapi/c/private/ppb_flash.h

Issue 6745021: Rename PPB_Flash::NavigateToURL() (to Navigate()) and make it take an URLRequestInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: doh Created 9 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 | « no previous file | ppapi/proxy/ppapi_messages.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_C_PRIVATE_PPB_FLASH_H_ 5 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_H_
6 #define PPAPI_C_PRIVATE_PPB_FLASH_H_ 6 #define PPAPI_C_PRIVATE_PPB_FLASH_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_point.h" 10 #include "ppapi/c/pp_point.h"
11 #include "ppapi/c/pp_rect.h" 11 #include "ppapi/c/pp_rect.h"
12 #include "ppapi/c/pp_resource.h" 12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/c/pp_var.h" 13 #include "ppapi/c/pp_var.h"
14 14
15 #define PPB_FLASH_INTERFACE "PPB_Flash;7" 15 #define PPB_FLASH_INTERFACE "PPB_Flash;8"
16 16
17 struct PPB_Flash { 17 struct PPB_Flash {
18 // Sets or clears the rendering hint that the given plugin instance is always 18 // Sets or clears the rendering hint that the given plugin instance is always
19 // on top of page content. Somewhat more optimized painting can be used in 19 // on top of page content. Somewhat more optimized painting can be used in
20 // this case. 20 // this case.
21 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); 21 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top);
22 22
23 PP_Bool (*DrawGlyphs)(PP_Instance instance, 23 PP_Bool (*DrawGlyphs)(PP_Instance instance,
24 PP_Resource pp_image_data, 24 PP_Resource pp_image_data,
25 const struct PP_FontDescription_Dev* font_desc, 25 const struct PP_FontDescription_Dev* font_desc,
26 uint32_t color, 26 uint32_t color,
27 struct PP_Point position, 27 struct PP_Point position,
28 struct PP_Rect clip, 28 struct PP_Rect clip,
29 const float transformation[3][3], 29 const float transformation[3][3],
30 uint32_t glyph_count, 30 uint32_t glyph_count,
31 const uint16_t glyph_indices[], 31 const uint16_t glyph_indices[],
32 const struct PP_Point glyph_advances[]); 32 const struct PP_Point glyph_advances[]);
33 33
34 // Retrieves the proxy that will be used for the given URL. The result will 34 // Retrieves the proxy that will be used for the given URL. The result will
35 // be a string in PAC format, or an undefined var on error. 35 // be a string in PAC format, or an undefined var on error.
36 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); 36 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url);
37 37
38 // Navigate to URL. May open a new tab if target is not "_self". Return true 38 // Navigate to the URL given by the given URLRequestInfo. (This supports GETs,
39 // if success. This differs from javascript:window.open() in that it bypasses 39 // POSTs, and javascript: URLs.) May open a new tab if target is not "_self".
40 // the popup blocker, even when this is not called from an event handler. 40 int32_t (*Navigate)(PP_Resource request_info,
41 PP_Bool (*NavigateToURL)(PP_Instance instance, 41 const char* target,
42 const char* url, 42 bool from_user_action);
43 const char* target);
44 43
45 // Runs a nested message loop. The plugin will be reentered from this call. 44 // Runs a nested message loop. The plugin will be reentered from this call.
46 // This function is used in places where Flash would normally enter a nested 45 // This function is used in places where Flash would normally enter a nested
47 // message loop (e.g., when displaying context menus), but Pepper provides 46 // message loop (e.g., when displaying context menus), but Pepper provides
48 // only an asynchronous call. After performing that asynchronous call, call 47 // only an asynchronous call. After performing that asynchronous call, call
49 // |RunMessageLoop()|. In the callback, call |QuitMessageLoop()|. 48 // |RunMessageLoop()|. In the callback, call |QuitMessageLoop()|.
50 void (*RunMessageLoop)(PP_Instance instance); 49 void (*RunMessageLoop)(PP_Instance instance);
51 50
52 // Posts a quit message for the outermost nested message loop. Use this to 51 // Posts a quit message for the outermost nested message loop. Use this to
53 // exit and return back to the caller after you call RunMessageLoop. 52 // exit and return back to the caller after you call RunMessageLoop.
54 void (*QuitMessageLoop)(PP_Instance instance); 53 void (*QuitMessageLoop)(PP_Instance instance);
55 }; 54 };
56 55
57 #endif // PPAPI_C_PRIVATE_PPB_FLASH_H_ 56 #endif // PPAPI_C_PRIVATE_PPB_FLASH_H_
OLDNEW
« no previous file with comments | « no previous file | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698