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

Side by Side Diff: Source/web/WebDOMFileSystem.cpp

Issue 537403002: bindings: Renames from/toInternalPointer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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/web/WebBlob.cpp ('k') | Source/web/WebDOMMediaStreamTrack.cpp » ('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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "web/WebLocalFrameImpl.h" 42 #include "web/WebLocalFrameImpl.h"
43 #include <v8.h> 43 #include <v8.h>
44 44
45 namespace blink { 45 namespace blink {
46 46
47 WebDOMFileSystem WebDOMFileSystem::fromV8Value(v8::Handle<v8::Value> value) 47 WebDOMFileSystem WebDOMFileSystem::fromV8Value(v8::Handle<v8::Value> value)
48 { 48 {
49 if (!V8DOMFileSystem::hasInstance(value, v8::Isolate::GetCurrent())) 49 if (!V8DOMFileSystem::hasInstance(value, v8::Isolate::GetCurrent()))
50 return WebDOMFileSystem(); 50 return WebDOMFileSystem();
51 v8::Handle<v8::Object> object = v8::Handle<v8::Object>::Cast(value); 51 v8::Handle<v8::Object> object = v8::Handle<v8::Object>::Cast(value);
52 DOMFileSystem* domFileSystem = V8DOMFileSystem::toNative(object); 52 DOMFileSystem* domFileSystem = V8DOMFileSystem::toImpl(object);
53 ASSERT(domFileSystem); 53 ASSERT(domFileSystem);
54 return WebDOMFileSystem(domFileSystem); 54 return WebDOMFileSystem(domFileSystem);
55 } 55 }
56 56
57 WebURL WebDOMFileSystem::createFileSystemURL(v8::Handle<v8::Value> value) 57 WebURL WebDOMFileSystem::createFileSystemURL(v8::Handle<v8::Value> value)
58 { 58 {
59 const FileEntry* const entry = V8FileEntry::toNativeWithTypeCheck(v8::Isolat e::GetCurrent(), value); 59 const FileEntry* const entry = V8FileEntry::toImplWithTypeCheck(v8::Isolate: :GetCurrent(), value);
60 if (entry) 60 if (entry)
61 return entry->filesystem()->createFileSystemURL(entry); 61 return entry->filesystem()->createFileSystemURL(entry);
62 return WebURL(); 62 return WebURL();
63 } 63 }
64 64
65 WebDOMFileSystem WebDOMFileSystem::create( 65 WebDOMFileSystem WebDOMFileSystem::create(
66 WebLocalFrame* frame, 66 WebLocalFrame* frame,
67 WebFileSystemType type, 67 WebFileSystemType type,
68 const WebString& name, 68 const WebString& name,
69 const WebURL& rootURL, 69 const WebURL& rootURL,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 { 142 {
143 } 143 }
144 144
145 WebDOMFileSystem& WebDOMFileSystem::operator=(DOMFileSystem* domFileSystem) 145 WebDOMFileSystem& WebDOMFileSystem::operator=(DOMFileSystem* domFileSystem)
146 { 146 {
147 m_private = domFileSystem; 147 m_private = domFileSystem;
148 return *this; 148 return *this;
149 } 149 }
150 150
151 } // namespace blink 151 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebBlob.cpp ('k') | Source/web/WebDOMMediaStreamTrack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698