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

Side by Side Diff: Source/bindings/scripts/deprecated_code_generator_v8.pm

Issue 21006006: Add forEach() to CSSVariablesMap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Generator & test nits Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com>
3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org>
5 # Copyright (C) 2006 Apple Computer, Inc. 5 # Copyright (C) 2006 Apple Computer, Inc.
6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc.
7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved.
9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 # Copyright (C) 2012 Ericsson AB. All rights reserved. 10 # Copyright (C) 2012 Ericsson AB. All rights reserved.
(...skipping 4628 matching lines...) Expand 10 before | Expand all | Expand 10 after
4639 $code .= " v8::Context::Scope scope(v8Context);\n\n"; 4639 $code .= " v8::Context::Scope scope(v8Context);\n\n";
4640 4640
4641 my $thisObjectHandle = ""; 4641 my $thisObjectHandle = "";
4642 if ($callWithThisValue) { 4642 if ($callWithThisValue) {
4643 $code .= " v8::Handle<v8::Value> thisHandle = thisValue.v8Val ue();\n"; 4643 $code .= " v8::Handle<v8::Value> thisHandle = thisValue.v8Val ue();\n";
4644 $code .= " if (thisHandle.IsEmpty()) {\n"; 4644 $code .= " if (thisHandle.IsEmpty()) {\n";
4645 $code .= " if (!isScriptControllerTerminating())\n"; 4645 $code .= " if (!isScriptControllerTerminating())\n";
4646 $code .= " CRASH();\n"; 4646 $code .= " CRASH();\n";
4647 $code .= " return true;\n"; 4647 $code .= " return true;\n";
4648 $code .= " }\n"; 4648 $code .= " }\n";
4649 $code .= " ASSERT(thisHandle->isObject());\n"; 4649 $code .= " ASSERT(thisHandle->IsObject());\n";
4650 $thisObjectHandle = "v8::Handle<v8::Object>::Cast(thisHandle), " ; 4650 $thisObjectHandle = "v8::Handle<v8::Object>::Cast(thisHandle), " ;
4651 } 4651 }
4652 @args = (); 4652 @args = ();
4653 foreach my $param (@params) { 4653 foreach my $param (@params) {
4654 my $paramName = $param->name; 4654 my $paramName = $param->name;
4655 $code .= NativeToJSValue($param->type, $param->extendedAttribute s, $paramName, " ", "v8::Handle<v8::Value> ${paramName}Handle =", "v8::Handle <v8::Object>()", "isolate", "") . "\n"; 4655 $code .= NativeToJSValue($param->type, $param->extendedAttribute s, $paramName, " ", "v8::Handle<v8::Value> ${paramName}Handle =", "v8::Handle <v8::Object>()", "isolate", "") . "\n";
4656 $code .= " if (${paramName}Handle.IsEmpty()) {\n"; 4656 $code .= " if (${paramName}Handle.IsEmpty()) {\n";
4657 $code .= " if (!isScriptControllerTerminating())\n"; 4657 $code .= " if (!isScriptControllerTerminating())\n";
4658 $code .= " CRASH();\n"; 4658 $code .= " CRASH();\n";
4659 $code .= " return true;\n"; 4659 $code .= " return true;\n";
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
6001 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { 6001 if ($currentInterface->extendedAttributes->{$extendedAttribute}) {
6002 $found = 1; 6002 $found = 1;
6003 } 6003 }
6004 return 1 if $found; 6004 return 1 if $found;
6005 }, 0); 6005 }, 0);
6006 6006
6007 return $found; 6007 return $found;
6008 } 6008 }
6009 6009
6010 1; 6010 1;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698