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 // This file contains definitions for CppVariant. | 5 // This file contains definitions for CppVariant. |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include "webkit/api/public/WebBindings.h" | 8 #include "third_party/WebKit/WebKit/chromium/public/WebBindings.h" |
9 #include "webkit/glue/cpp_variant.h" | 9 #include "webkit/glue/cpp_variant.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 | 12 |
13 using WebKit::WebBindings; | 13 using WebKit::WebBindings; |
14 | 14 |
15 CppVariant::CppVariant() { | 15 CppVariant::CppVariant() { |
16 type = NPVariantType_Null; | 16 type = NPVariantType_Null; |
17 } | 17 } |
18 | 18 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 NPObject* np_object = value.objectValue; | 258 NPObject* np_object = value.objectValue; |
259 if (WebBindings::hasMethod(NULL, np_object, method_name)) { | 259 if (WebBindings::hasMethod(NULL, np_object, method_name)) { |
260 NPVariant r; | 260 NPVariant r; |
261 bool status = WebBindings::invoke(NULL, np_object, method_name, args, arg_co
unt, &r); | 261 bool status = WebBindings::invoke(NULL, np_object, method_name, args, arg_co
unt, &r); |
262 result.Set(r); | 262 result.Set(r); |
263 return status; | 263 return status; |
264 } else { | 264 } else { |
265 return false; | 265 return false; |
266 } | 266 } |
267 } | 267 } |
OLD | NEW |