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

Side by Side Diff: webkit/glue/cpp_variant.cc

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « webkit/glue/cpp_bound_class_unittest.cc ('k') | webkit/glue/cpp_variant_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « webkit/glue/cpp_bound_class_unittest.cc ('k') | webkit/glue/cpp_variant_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698