OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_BINDING_H__ | 5 #ifndef V8_BINDING_H__ |
6 #define V8_BINDING_H__ | 6 #define V8_BINDING_H__ |
7 | 7 |
8 #include "config.h" | 8 #include "config.h" |
9 | 9 |
10 #include "MathExtras.h" | 10 #include "MathExtras.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 inline v8::Handle<v8::Value> v8StringOrFalse(const String& str) { | 127 inline v8::Handle<v8::Value> v8StringOrFalse(const String& str) { |
128 return str.isNull() | 128 return str.isNull() |
129 ? v8::Handle<v8::Value>(v8::False()) | 129 ? v8::Handle<v8::Value>(v8::False()) |
130 : v8::Handle<v8::Value>(v8String(str)); | 130 : v8::Handle<v8::Value>(v8String(str)); |
131 } | 131 } |
132 | 132 |
133 } // namespace WebCore | 133 } // namespace WebCore |
134 | 134 |
135 #endif // V8_BINDING_H__ | 135 #endif // V8_BINDING_H__ |
OLD | NEW |