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

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

Issue 11359097: Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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 CHROME_RENDERER_PEPPER_PEPPER_FLASH_MENU_HOST_H_ 5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_FLASH_MENU_HOST_H_
6 #define CHROME_RENDERER_PEPPER_PEPPER_FLASH_MENU_HOST_H_ 6 #define CHROME_RENDERER_PEPPER_PEPPER_FLASH_MENU_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 30 matching lines...) Expand all
41 ppapi::host::HostMessageContext* context) OVERRIDE; 41 ppapi::host::HostMessageContext* context) OVERRIDE;
42 42
43 private: 43 private:
44 int32_t OnHostMsgShow(ppapi::host::HostMessageContext* context, 44 int32_t OnHostMsgShow(ppapi::host::HostMessageContext* context,
45 const PP_Point& location); 45 const PP_Point& location);
46 46
47 // ContextMenuClient implementation. 47 // ContextMenuClient implementation.
48 virtual void OnMenuAction(int request_id, unsigned action) OVERRIDE; 48 virtual void OnMenuAction(int request_id, unsigned action) OVERRIDE;
49 virtual void OnMenuClosed(int request_id) OVERRIDE; 49 virtual void OnMenuClosed(int request_id) OVERRIDE;
50 50
51 void SendReply(int32_t result, int action); 51 void SendMenuReply(int32_t result, int action);
52 52
53 content::RendererPpapiHost* renderer_ppapi_host_; 53 content::RendererPpapiHost* renderer_ppapi_host_;
54 54
55 bool showing_context_menu_; 55 bool showing_context_menu_;
56 int context_menu_request_id_; 56 int context_menu_request_id_;
57 57
58 std::vector<WebMenuItem> menu_data_; 58 std::vector<WebMenuItem> menu_data_;
59 59
60 // We send |WebMenuItem|s, which have an |unsigned| "action" field instead of 60 // We send |WebMenuItem|s, which have an |unsigned| "action" field instead of
61 // an |int32_t| ID. (CONTENT also limits the range of valid values for 61 // an |int32_t| ID. (CONTENT also limits the range of valid values for
62 // actions.) This maps actions to IDs. 62 // actions.) This maps actions to IDs.
63 std::vector<int32_t> menu_id_map_; 63 std::vector<int32_t> menu_id_map_;
64 64
65 // Used to send a single context menu "completion" upon menu close. 65 // Used to send a single context menu "completion" upon menu close.
66 bool has_saved_context_menu_action_; 66 bool has_saved_context_menu_action_;
67 unsigned saved_context_menu_action_; 67 unsigned saved_context_menu_action_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(PepperFlashMenuHost); 69 DISALLOW_COPY_AND_ASSIGN(PepperFlashMenuHost);
70 }; 70 };
71 71
72 } // namespace chrome 72 } // namespace chrome
73 73
74 #endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_MENU_HOST_H_ 74 #endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_MENU_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698