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

Side by Side Diff: third_party/WebKit/Source/bindings/modules/v8/custom/V8DeviceMotionEventCustom.cpp

Issue 2272613003: binding: Retires ExceptionState::throwIfNeeded(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Synced. Created 4 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * * Redistributions of source code must retain the above copyright 7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright 9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 V8_CALL(bubbles, info[1], BooleanValue(context), return); 122 V8_CALL(bubbles, info[1], BooleanValue(context), return);
123 bool cancelable = false; 123 bool cancelable = false;
124 V8_CALL(cancelable, info[2], BooleanValue(context), return); 124 V8_CALL(cancelable, info[2], BooleanValue(context), return);
125 DeviceMotionData::Acceleration* acceleration = readAccelerationArgument(info [3], isolate); 125 DeviceMotionData::Acceleration* acceleration = readAccelerationArgument(info [3], isolate);
126 DeviceMotionData::Acceleration* accelerationIncludingGravity = readAccelerat ionArgument(info[4], isolate); 126 DeviceMotionData::Acceleration* accelerationIncludingGravity = readAccelerat ionArgument(info[4], isolate);
127 DeviceMotionData::RotationRate* rotationRate = readRotationRateArgument(info [5], isolate); 127 DeviceMotionData::RotationRate* rotationRate = readRotationRateArgument(info [5], isolate);
128 bool intervalProvided = !isUndefinedOrNull(info[6]); 128 bool intervalProvided = !isUndefinedOrNull(info[6]);
129 double interval = 0; 129 double interval = 0;
130 if (intervalProvided) { 130 if (intervalProvided) {
131 interval = toRestrictedDouble(isolate, info[6], exceptionState); 131 interval = toRestrictedDouble(isolate, info[6], exceptionState);
132 if (exceptionState.throwIfNeeded()) 132 if (exceptionState.hadException())
133 return; 133 return;
134 } 134 }
135 DeviceMotionData* deviceMotionData = DeviceMotionData::create(acceleration, accelerationIncludingGravity, rotationRate, intervalProvided, interval); 135 DeviceMotionData* deviceMotionData = DeviceMotionData::create(acceleration, accelerationIncludingGravity, rotationRate, intervalProvided, interval);
136 impl->initDeviceMotionEvent(type, bubbles, cancelable, deviceMotionData); 136 impl->initDeviceMotionEvent(type, bubbles, cancelable, deviceMotionData);
137 } 137 }
138 138
139 } // namespace blink 139 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698