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

Side by Side Diff: chrome/renderer/pepper/pepper_flash_menu_host.cc

Issue 19744007: Create a public API around webkit::ppapi::PluginInstance and use it in chrome. After this, webkit/p… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments and undo checkdeps change Created 7 years, 5 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 | chrome/renderer/pepper/pepper_flash_renderer_host.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 #include "chrome/renderer/pepper/pepper_flash_menu_host.h" 5 #include "chrome/renderer/pepper/pepper_flash_menu_host.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "content/public/common/context_menu_params.h" 8 #include "content/public/common/context_menu_params.h"
9 #include "content/public/renderer/render_view.h" 9 #include "content/public/renderer/render_view.h"
10 #include "content/public/renderer/renderer_ppapi_host.h" 10 #include "content/public/renderer/renderer_ppapi_host.h"
11 #include "ppapi/c/private/ppb_flash_menu.h" 11 #include "ppapi/c/private/ppb_flash_menu.h"
12 #include "ppapi/host/dispatch_host_message.h" 12 #include "ppapi/host/dispatch_host_message.h"
13 #include "ppapi/host/ppapi_host.h" 13 #include "ppapi/host/ppapi_host.h"
14 #include "ppapi/proxy/ppapi_messages.h" 14 #include "ppapi/proxy/ppapi_messages.h"
15 #include "ppapi/proxy/serialized_flash_menu.h" 15 #include "ppapi/proxy/serialized_flash_menu.h"
16 #include "ui/gfx/point.h" 16 #include "ui/gfx/point.h"
17 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
18 17
19 namespace chrome { 18 namespace chrome {
20 19
21 namespace { 20 namespace {
22 21
23 // Maximum depth of submenus allowed (e.g., 1 indicates that submenus are 22 // Maximum depth of submenus allowed (e.g., 1 indicates that submenus are
24 // allowed, but not sub-submenus). 23 // allowed, but not sub-submenus).
25 const size_t kMaxMenuDepth = 2; 24 const size_t kMaxMenuDepth = 2;
26 25
27 // Maximum number of entries in any single menu (including separators). 26 // Maximum number of entries in any single menu (including separators).
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 ppapi::host::ReplyMessageContext reply_context( 197 ppapi::host::ReplyMessageContext reply_context(
199 ppapi::proxy::ResourceMessageReplyParams(pp_resource(), 0), 198 ppapi::proxy::ResourceMessageReplyParams(pp_resource(), 0),
200 NULL); 199 NULL);
201 reply_context.params.set_result(result); 200 reply_context.params.set_result(result);
202 host()->SendReply(reply_context, 201 host()->SendReply(reply_context,
203 PpapiPluginMsg_FlashMenu_ShowReply(action)); 202 PpapiPluginMsg_FlashMenu_ShowReply(action));
204 203
205 } 204 }
206 205
207 } // namespace chrome 206 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/pepper/pepper_flash_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698