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

Side by Side Diff: ppapi/shared_impl/ppb_instance_shared.cc

Issue 8790004: Rename the shared impl files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged Created 9 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
« no previous file with comments | « ppapi/shared_impl/ppb_instance_shared.h ('k') | ppapi/shared_impl/ppb_memory_shared.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) 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/shared_impl/instance_impl.h" 5 #include "ppapi/shared_impl/ppb_instance_shared.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/ppb_input_event.h" 8 #include "ppapi/c/ppb_input_event.h"
9 9
10 namespace ppapi { 10 namespace ppapi {
11 11
12 InstanceImpl::~InstanceImpl() { 12 PPB_Instance_Shared::~PPB_Instance_Shared() {
13 } 13 }
14 14
15 int32_t InstanceImpl::ValidateRequestInputEvents(bool is_filtering, 15 int32_t PPB_Instance_Shared::ValidateRequestInputEvents(
16 uint32_t event_classes) { 16 bool is_filtering,
17 uint32_t event_classes) {
17 // See if any bits are set we don't know about. 18 // See if any bits are set we don't know about.
18 if (event_classes & 19 if (event_classes &
19 ~static_cast<uint32_t>(PP_INPUTEVENT_CLASS_MOUSE | 20 ~static_cast<uint32_t>(PP_INPUTEVENT_CLASS_MOUSE |
20 PP_INPUTEVENT_CLASS_KEYBOARD | 21 PP_INPUTEVENT_CLASS_KEYBOARD |
21 PP_INPUTEVENT_CLASS_WHEEL | 22 PP_INPUTEVENT_CLASS_WHEEL |
22 PP_INPUTEVENT_CLASS_TOUCH | 23 PP_INPUTEVENT_CLASS_TOUCH |
23 PP_INPUTEVENT_CLASS_IME)) 24 PP_INPUTEVENT_CLASS_IME))
24 return PP_ERROR_NOTSUPPORTED; 25 return PP_ERROR_NOTSUPPORTED;
25 26
26 // Everything else is valid. 27 // Everything else is valid.
27 return PP_OK; 28 return PP_OK;
28 } 29 }
29 30
30 } // namespace ppapi 31 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_instance_shared.h ('k') | ppapi/shared_impl/ppb_memory_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698