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

Side by Side Diff: third_party/WebKit/Source/web/WebBlob.cpp

Issue 2595543003: Rename toV8(...) function in Blink to ToV8(...). (Closed)
Patch Set: Rebasing... Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 return m_private->uuid(); 75 return m_private->uuid();
76 } 76 }
77 77
78 v8::Local<v8::Value> WebBlob::toV8Value(v8::Local<v8::Object> creationContext, 78 v8::Local<v8::Value> WebBlob::toV8Value(v8::Local<v8::Object> creationContext,
79 v8::Isolate* isolate) { 79 v8::Isolate* isolate) {
80 // We no longer use |creationContext| because it's often misused and points 80 // We no longer use |creationContext| because it's often misused and points
81 // to a context faked by user script. 81 // to a context faked by user script.
82 DCHECK(creationContext->CreationContext() == isolate->GetCurrentContext()); 82 DCHECK(creationContext->CreationContext() == isolate->GetCurrentContext());
83 if (!m_private.get()) 83 if (!m_private.get())
84 return v8::Local<v8::Value>(); 84 return v8::Local<v8::Value>();
85 return toV8(m_private.get(), isolate->GetCurrentContext()->Global(), isolate); 85 return ToV8(m_private.get(), isolate->GetCurrentContext()->Global(), isolate);
86 } 86 }
87 87
88 WebBlob::WebBlob(Blob* blob) : m_private(blob) {} 88 WebBlob::WebBlob(Blob* blob) : m_private(blob) {}
89 89
90 WebBlob& WebBlob::operator=(Blob* blob) { 90 WebBlob& WebBlob::operator=(Blob* blob) {
91 m_private = blob; 91 m_private = blob;
92 return *this; 92 return *this;
93 } 93 }
94 94
95 } // namespace blink 95 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebArrayBufferConverter.cpp ('k') | third_party/WebKit/Source/web/WebDOMFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698