| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |