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

Side by Side Diff: ppapi/proxy/ppb_flash_menu_proxy.cc

Issue 9391013: Make a global enum to differentiate impl & proxy. (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) 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 #include "ppapi/proxy/ppb_flash_menu_proxy.h" 5 #include "ppapi/proxy/ppb_flash_menu_proxy.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/private/ppb_flash_menu.h" 8 #include "ppapi/c/private/ppb_flash_menu.h"
9 #include "ppapi/proxy/enter_proxy.h" 9 #include "ppapi/proxy/enter_proxy.h"
10 #include "ppapi/proxy/ppapi_messages.h" 10 #include "ppapi/proxy/ppapi_messages.h"
(...skipping 25 matching lines...) Expand all
36 void ShowACK(int32_t selected_id, int32_t result); 36 void ShowACK(int32_t selected_id, int32_t result);
37 37
38 private: 38 private:
39 scoped_refptr<TrackedCallback> callback_; 39 scoped_refptr<TrackedCallback> callback_;
40 int32_t* selected_id_ptr_; 40 int32_t* selected_id_ptr_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(FlashMenu); 42 DISALLOW_COPY_AND_ASSIGN(FlashMenu);
43 }; 43 };
44 44
45 FlashMenu::FlashMenu(const HostResource& resource) 45 FlashMenu::FlashMenu(const HostResource& resource)
46 : Resource(resource), 46 : Resource(OBJECT_IS_PROXY, resource),
47 selected_id_ptr_(NULL) { 47 selected_id_ptr_(NULL) {
48 } 48 }
49 49
50 FlashMenu::~FlashMenu() { 50 FlashMenu::~FlashMenu() {
51 } 51 }
52 52
53 PPB_Flash_Menu_API* FlashMenu::AsPPB_Flash_Menu_API() { 53 PPB_Flash_Menu_API* FlashMenu::AsPPB_Flash_Menu_API() {
54 return this; 54 return this;
55 } 55 }
56 56
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 dispatcher()->Send(new PpapiMsg_PPBFlashMenu_ShowACK( 163 dispatcher()->Send(new PpapiMsg_PPBFlashMenu_ShowACK(
164 API_ID_PPB_FLASH_MENU, 164 API_ID_PPB_FLASH_MENU,
165 request->menu, 165 request->menu,
166 request->selected_id, 166 request->selected_id,
167 result)); 167 result));
168 delete request; 168 delete request;
169 } 169 }
170 170
171 } // namespace proxy 171 } // namespace proxy
172 } // namespace ppapi 172 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698