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

Side by Side Diff: Source/bindings/v8/V8Binding.cpp

Issue 20300002: Fix trailing whitespace in .cpp, .h, and .idl files (ex. Source/core) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
« no previous file with comments | « Source/bindings/v8/ScriptWrappable.h ('k') | Source/bindings/v8/V8DOMActivityLogger.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 unsigned long long integer; 366 unsigned long long integer;
367 doubleToInteger(x, integer); 367 doubleToInteger(x, integer);
368 return integer; 368 return integer;
369 } 369 }
370 370
371 v8::Handle<v8::FunctionTemplate> createRawTemplate(v8::Isolate* isolate) 371 v8::Handle<v8::FunctionTemplate> createRawTemplate(v8::Isolate* isolate)
372 { 372 {
373 v8::HandleScope scope(isolate); 373 v8::HandleScope scope(isolate);
374 v8::Local<v8::FunctionTemplate> result = v8::FunctionTemplate::New(V8ObjectC onstructor::isValidConstructorMode); 374 v8::Local<v8::FunctionTemplate> result = v8::FunctionTemplate::New(V8ObjectC onstructor::isValidConstructorMode);
375 return scope.Close(result); 375 return scope.Close(result);
376 } 376 }
377 377
378 PassRefPtr<DOMStringList> toDOMStringList(v8::Handle<v8::Value> value, v8::Isola te* isolate) 378 PassRefPtr<DOMStringList> toDOMStringList(v8::Handle<v8::Value> value, v8::Isola te* isolate)
379 { 379 {
380 v8::Local<v8::Value> v8Value(v8::Local<v8::Value>::New(value)); 380 v8::Local<v8::Value> v8Value(v8::Local<v8::Value>::New(value));
381 381
382 if (V8DOMStringList::HasInstance(v8Value, isolate, worldType(isolate))) { 382 if (V8DOMStringList::HasInstance(v8Value, isolate, worldType(isolate))) {
383 RefPtr<DOMStringList> ret = V8DOMStringList::toNative(v8::Handle<v8::Obj ect>::Cast(v8Value)); 383 RefPtr<DOMStringList> ret = V8DOMStringList::toNative(v8::Handle<v8::Obj ect>::Cast(v8Value));
384 return ret.release(); 384 return ret.release();
385 } 385 }
386 386
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 return DOMWrapperWorld::isolatedWorld(v8::Context::GetCurrent()); 552 return DOMWrapperWorld::isolatedWorld(v8::Context::GetCurrent());
553 } 553 }
554 554
555 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate* isolate, Sc riptWrappable* wrappable, v8::Handle<v8::String> key) 555 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate* isolate, Sc riptWrappable* wrappable, v8::Handle<v8::String> key)
556 { 556 {
557 v8::Local<v8::Object> wrapper = wrappable->newLocalWrapper(isolate); 557 v8::Local<v8::Object> wrapper = wrappable->newLocalWrapper(isolate);
558 return wrapper.IsEmpty() ? v8::Local<v8::Value>() : wrapper->GetHiddenValue( key); 558 return wrapper.IsEmpty() ? v8::Local<v8::Value>() : wrapper->GetHiddenValue( key);
559 } 559 }
560 560
561 } // namespace WebCore 561 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/ScriptWrappable.h ('k') | Source/bindings/v8/V8DOMActivityLogger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698