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

Side by Side Diff: ppapi/shared_impl/api_id.h

Issue 11359063: Refactor the way singleton-style resources are exposed via PPB_Instance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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 PPAPI_SHARED_IMPL_API_ID_H_ 5 #ifndef PPAPI_SHARED_IMPL_API_ID_H_
6 #define PPAPI_SHARED_IMPL_API_ID_H_ 6 #define PPAPI_SHARED_IMPL_API_ID_H_
7 7
8 namespace ppapi { 8 namespace ppapi {
9 9
10 // These numbers must be all small integers. They are used in a lookup table 10 // These numbers must be all small integers. They are used in a lookup table
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 API_ID_PPP_TEXT_INPUT, 68 API_ID_PPP_TEXT_INPUT,
69 API_ID_PPP_VIDEO_CAPTURE_DEV, 69 API_ID_PPP_VIDEO_CAPTURE_DEV,
70 API_ID_PPP_VIDEO_DECODER_DEV, 70 API_ID_PPP_VIDEO_DECODER_DEV,
71 71
72 API_ID_RESOURCE_CREATION, 72 API_ID_RESOURCE_CREATION,
73 73
74 // Must be last to indicate the number of interface IDs. 74 // Must be last to indicate the number of interface IDs.
75 API_ID_COUNT 75 API_ID_COUNT
76 }; 76 };
77 77
78 // These IDs are used to access singleton resource objects using
79 // PPB_Instance_API.GetSingletonResource.
80 enum SingletonResourceID {
brettw 2012/11/27 05:55:10 Can you put this in a separate header? As we conve
raymes 2012/11/27 17:48:45 Done.
81 FLASH_SINGLETON_ID,
82 FLASH_CLIPBOARD_SINGLETON_ID,
83 GAMEPAD_SINGLETON_ID,
84 };
85
78 } // namespace ppapi 86 } // namespace ppapi
79 87
80 #endif // PPAPI_SHARED_IMPL_API_ID_H_ 88 #endif // PPAPI_SHARED_IMPL_API_ID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698