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

Unified Diff: sky/engine/bindings-dart/common/ExceptionStatePlaceholder.cpp

Issue 875013003: Import Dart bindings as of Blink r188698. This merely copies the files over and does not attach any… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
Index: sky/engine/bindings-dart/common/ExceptionStatePlaceholder.cpp
diff --git a/sky/engine/bindings/core/v8/ExceptionStatePlaceholder.cpp b/sky/engine/bindings-dart/common/ExceptionStatePlaceholder.cpp
similarity index 86%
copy from sky/engine/bindings/core/v8/ExceptionStatePlaceholder.cpp
copy to sky/engine/bindings-dart/common/ExceptionStatePlaceholder.cpp
index cad268893d11ad5decf93d8a352554d891bbe20d..1e8c8059ec827b84c9fa550c54a125efa2a42aab 100644
--- a/sky/engine/bindings/core/v8/ExceptionStatePlaceholder.cpp
+++ b/sky/engine/bindings-dart/common/ExceptionStatePlaceholder.cpp
@@ -28,15 +28,15 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "sky/engine/config.h"
-#include "sky/engine/bindings/core/v8/ExceptionStatePlaceholder.h"
+#include "config.h"
+#include "bindings/common/ExceptionStatePlaceholder.h"
namespace blink {
#if ENABLE(ASSERT)
NoExceptionStateAssertionChecker::NoExceptionStateAssertionChecker(const char* file, int line)
- : ExceptionState(ExceptionState::UnknownContext, 0, 0, v8::Handle<v8::Object>(), 0)
+ : ExceptionState()
, m_file(file)
, m_line(line) { }
@@ -55,6 +55,16 @@ void NoExceptionStateAssertionChecker::throwSecurityError(const String&, const S
ASSERT_AT(false, m_file, m_line, "");
}
+void NoExceptionStateAssertionChecker::throwRangeError(const String&)
+{
+ ASSERT_AT(false, m_file, m_line, "");
+}
+
+void NoExceptionStateAssertionChecker::rethrowV8Exception(v8::Handle<v8::Value> value)
+{
+ ASSERT_AT(false, m_file, m_line, "");
+}
+
#endif
} // namespace blink
« no previous file with comments | « sky/engine/bindings-dart/common/ExceptionStatePlaceholder.h ('k') | sky/engine/bindings-dart/common/Nullable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698