OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 #include "wtf/text/StringHash.h" | 64 #include "wtf/text/StringHash.h" |
65 #include "wtf/text/WTFString.h" | 65 #include "wtf/text/WTFString.h" |
66 | 66 |
67 namespace WebCore { | 67 namespace WebCore { |
68 | 68 |
69 v8::Handle<v8::Value> setDOMException(int exceptionCode, v8::Isolate* isolate) | 69 v8::Handle<v8::Value> setDOMException(int exceptionCode, v8::Isolate* isolate) |
70 { | 70 { |
71 return V8ThrowException::throwDOMException(exceptionCode, isolate); | 71 return V8ThrowException::throwDOMException(exceptionCode, isolate); |
72 } | 72 } |
73 | 73 |
| 74 v8::Handle<v8::Value> setDOMException(int exceptionCode, const String& message,
v8::Isolate* isolate) |
| 75 { |
| 76 return V8ThrowException::throwDOMException(exceptionCode, message, isolate); |
| 77 } |
| 78 |
74 v8::Handle<v8::Value> throwError(V8ErrorType errorType, const String& message, v
8::Isolate* isolate) | 79 v8::Handle<v8::Value> throwError(V8ErrorType errorType, const String& message, v
8::Isolate* isolate) |
75 { | 80 { |
76 return V8ThrowException::throwError(errorType, message, isolate); | 81 return V8ThrowException::throwError(errorType, message, isolate); |
77 } | 82 } |
78 | 83 |
79 v8::Handle<v8::Value> throwError(v8::Handle<v8::Value> exception) | 84 v8::Handle<v8::Value> throwError(v8::Handle<v8::Value> exception) |
80 { | 85 { |
81 return V8ThrowException::throwError(exception); | 86 return V8ThrowException::throwError(exception); |
82 } | 87 } |
83 | 88 |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 return DOMWrapperWorld::isolatedWorld(v8::Context::GetCurrent()); | 552 return DOMWrapperWorld::isolatedWorld(v8::Context::GetCurrent()); |
548 } | 553 } |
549 | 554 |
550 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate* isolate, Sc
riptWrappable* wrappable, v8::Handle<v8::String> key) | 555 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate* isolate, Sc
riptWrappable* wrappable, v8::Handle<v8::String> key) |
551 { | 556 { |
552 v8::Local<v8::Object> wrapper = wrappable->newLocalWrapper(isolate); | 557 v8::Local<v8::Object> wrapper = wrappable->newLocalWrapper(isolate); |
553 return wrapper.IsEmpty() ? v8::Local<v8::Value>() : wrapper->GetHiddenValue(
key); | 558 return wrapper.IsEmpty() ? v8::Local<v8::Value>() : wrapper->GetHiddenValue(
key); |
554 } | 559 } |
555 | 560 |
556 } // namespace WebCore | 561 } // namespace WebCore |
OLD | NEW |