| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |