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

Unified Diff: ppapi/shared_impl/ppb_instance_shared.cc

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/ppb_input_event_shared.cc ('k') | ppapi/shared_impl/ppb_memory_shared.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_instance_shared.cc
diff --git a/ppapi/shared_impl/ppb_instance_shared.cc b/ppapi/shared_impl/ppb_instance_shared.cc
index 18033fc4b11f5cd2c6df78f59d9df9fd9a6f85f1..49b865a47e50b443994cb160bc33d0350e918903 100644
--- a/ppapi/shared_impl/ppb_instance_shared.cc
+++ b/ppapi/shared_impl/ppb_instance_shared.cc
@@ -21,8 +21,7 @@ namespace ppapi {
// static
const int PPB_Instance_Shared::kExtraCharsForTextInput = 100;
-PPB_Instance_Shared::~PPB_Instance_Shared() {
-}
+PPB_Instance_Shared::~PPB_Instance_Shared() {}
void PPB_Instance_Shared::Log(PP_Instance instance,
PP_LogLevel level,
@@ -48,12 +47,11 @@ int32_t PPB_Instance_Shared::ValidateRequestInputEvents(
bool is_filtering,
uint32_t event_classes) {
// See if any bits are set we don't know about.
- if (event_classes &
- ~static_cast<uint32_t>(PP_INPUTEVENT_CLASS_MOUSE |
- PP_INPUTEVENT_CLASS_KEYBOARD |
- PP_INPUTEVENT_CLASS_WHEEL |
- PP_INPUTEVENT_CLASS_TOUCH |
- PP_INPUTEVENT_CLASS_IME))
+ if (event_classes & ~static_cast<uint32_t>(PP_INPUTEVENT_CLASS_MOUSE |
+ PP_INPUTEVENT_CLASS_KEYBOARD |
+ PP_INPUTEVENT_CLASS_WHEEL |
+ PP_INPUTEVENT_CLASS_TOUCH |
+ PP_INPUTEVENT_CLASS_IME))
return PP_ERROR_NOTSUPPORTED;
// Everything else is valid.
@@ -94,8 +92,8 @@ bool PPB_Instance_Shared::ValidateSetCursorParams(PP_MouseCursor_Type type,
return false;
// Validate the hot spot location.
- if (hot_spot->x < 0 || hot_spot->x >= desc.size.width ||
- hot_spot->y < 0 || hot_spot->y >= desc.size.height)
+ if (hot_spot->x < 0 || hot_spot->x >= desc.size.width || hot_spot->y < 0 ||
+ hot_spot->y >= desc.size.height)
return false;
return true;
}
« no previous file with comments | « ppapi/shared_impl/ppb_input_event_shared.cc ('k') | ppapi/shared_impl/ppb_memory_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698