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

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

Issue 9353013: Add GetUsbKeyCode dev interface for Pepper key events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Auto-set PP_INPUTEVENT_CLASS_KEYBOARD 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/shared_impl/ppb_instance_shared.h" 5 #include "ppapi/shared_impl/ppb_instance_shared.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/ppb_input_event.h" 10 #include "ppapi/c/ppb_input_event.h"
(...skipping 27 matching lines...) Expand all
38 38
39 int32_t PPB_Instance_Shared::ValidateRequestInputEvents( 39 int32_t PPB_Instance_Shared::ValidateRequestInputEvents(
40 bool is_filtering, 40 bool is_filtering,
41 uint32_t event_classes) { 41 uint32_t event_classes) {
42 // See if any bits are set we don't know about. 42 // See if any bits are set we don't know about.
43 if (event_classes & 43 if (event_classes &
44 ~static_cast<uint32_t>(PP_INPUTEVENT_CLASS_MOUSE | 44 ~static_cast<uint32_t>(PP_INPUTEVENT_CLASS_MOUSE |
45 PP_INPUTEVENT_CLASS_KEYBOARD | 45 PP_INPUTEVENT_CLASS_KEYBOARD |
46 PP_INPUTEVENT_CLASS_WHEEL | 46 PP_INPUTEVENT_CLASS_WHEEL |
47 PP_INPUTEVENT_CLASS_TOUCH | 47 PP_INPUTEVENT_CLASS_TOUCH |
48 PP_INPUTEVENT_CLASS_IME)) 48 PP_INPUTEVENT_CLASS_IME |
49 PP_INPUTEVENT_CLASS_LOWLEVEL_KEYBOARD_Dev))
49 return PP_ERROR_NOTSUPPORTED; 50 return PP_ERROR_NOTSUPPORTED;
50 51
51 // Everything else is valid. 52 // Everything else is valid.
52 return PP_OK; 53 return PP_OK;
53 } 54 }
54 55
55 } // namespace ppapi 56 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698