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

Side by Side Diff: Source/bindings/core/v8/V8ThrowException.h

Issue 1111163003: Replace v8::Handle<> with v8::Local<> in bindings/core/v8/* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. 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 16 matching lines...) Expand all
27 27
28 #include "core/CoreExport.h" 28 #include "core/CoreExport.h"
29 #include "wtf/text/WTFString.h" 29 #include "wtf/text/WTFString.h"
30 #include <v8.h> 30 #include <v8.h>
31 31
32 namespace blink { 32 namespace blink {
33 33
34 class CORE_EXPORT V8ThrowException { 34 class CORE_EXPORT V8ThrowException {
35 public: 35 public:
36 36
37 static v8::Handle<v8::Value> createDOMException(v8::Isolate* isolate, int ec , const String& message, const v8::Handle<v8::Object>& creationContext) 37 static v8::Local<v8::Value> createDOMException(v8::Isolate* isolate, int ec, const String& message, const v8::Local<v8::Object>& creationContext)
38 { 38 {
39 return createDOMException(isolate, ec, message, String(), creationContex t); 39 return createDOMException(isolate, ec, message, String(), creationContex t);
40 } 40 }
41 static v8::Handle<v8::Value> createDOMException(v8::Isolate*, int, const Str ing& sanitizedMessage, const String& unsanitizedMessage, const v8::Handle<v8::Ob ject>& creationContext); 41 static v8::Local<v8::Value> createDOMException(v8::Isolate*, int, const Stri ng& sanitizedMessage, const String& unsanitizedMessage, const v8::Local<v8::Obje ct>& creationContext);
42 42
43 static v8::Handle<v8::Value> throwDOMException(int ec, const String& message , const v8::Handle<v8::Object>& creationContext, v8::Isolate* isolate) 43 static v8::Local<v8::Value> throwDOMException(int ec, const String& message, const v8::Local<v8::Object>& creationContext, v8::Isolate* isolate)
44 { 44 {
45 return throwDOMException(ec, message, String(), creationContext, isolate ); 45 return throwDOMException(ec, message, String(), creationContext, isolate );
46 } 46 }
47 static v8::Handle<v8::Value> throwDOMException(int, const String& sanitizedM essage, const String& unsanitizedMessage, const v8::Handle<v8::Object>& creation Context, v8::Isolate*); 47 static v8::Local<v8::Value> throwDOMException(int, const String& sanitizedMe ssage, const String& unsanitizedMessage, const v8::Local<v8::Object>& creationCo ntext, v8::Isolate*);
48 48
49 static v8::Handle<v8::Value> throwException(v8::Handle<v8::Value>, v8::Isola te*); 49 static v8::Local<v8::Value> throwException(v8::Local<v8::Value>, v8::Isolate *);
50 50
51 static v8::Handle<v8::Value> createGeneralError(v8::Isolate*, const String&) ; 51 static v8::Local<v8::Value> createGeneralError(v8::Isolate*, const String&);
52 static v8::Handle<v8::Value> throwGeneralError(v8::Isolate*, const String&); 52 static v8::Local<v8::Value> throwGeneralError(v8::Isolate*, const String&);
53 static v8::Handle<v8::Value> createTypeError(v8::Isolate*, const String&); 53 static v8::Local<v8::Value> createTypeError(v8::Isolate*, const String&);
54 static v8::Handle<v8::Value> throwTypeError(v8::Isolate*, const String&); 54 static v8::Local<v8::Value> throwTypeError(v8::Isolate*, const String&);
55 static v8::Handle<v8::Value> createRangeError(v8::Isolate*, const String&); 55 static v8::Local<v8::Value> createRangeError(v8::Isolate*, const String&);
56 static v8::Handle<v8::Value> throwRangeError(v8::Isolate*, const String&); 56 static v8::Local<v8::Value> throwRangeError(v8::Isolate*, const String&);
57 static v8::Handle<v8::Value> createSyntaxError(v8::Isolate*, const String&); 57 static v8::Local<v8::Value> createSyntaxError(v8::Isolate*, const String&);
58 static v8::Handle<v8::Value> throwSyntaxError(v8::Isolate*, const String&); 58 static v8::Local<v8::Value> throwSyntaxError(v8::Isolate*, const String&);
59 static v8::Handle<v8::Value> createReferenceError(v8::Isolate*, const String &); 59 static v8::Local<v8::Value> createReferenceError(v8::Isolate*, const String& );
60 static v8::Handle<v8::Value> throwReferenceError(v8::Isolate*, const String& ); 60 static v8::Local<v8::Value> throwReferenceError(v8::Isolate*, const String&) ;
61 }; 61 };
62 62
63 } // namespace blink 63 } // namespace blink
64 64
65 #endif // V8ThrowException_h 65 #endif // V8ThrowException_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/V8StringResource.cpp ('k') | Source/bindings/core/v8/V8ThrowException.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698