Diff
Modified: trunk/Source/WebCore/CMakeLists.txt (161384 => 161385)
--- trunk/Source/WebCore/CMakeLists.txt 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebCore/CMakeLists.txt 2014-01-07 00:52:17 UTC (rev 161385)
@@ -766,7 +766,6 @@
inspector/protocol/DOMDebugger.json
inspector/protocol/DOMStorage.json
inspector/protocol/Database.json
- inspector/protocol/FileSystem.json
inspector/protocol/HeapProfiler.json
inspector/protocol/IndexedDB.json
inspector/protocol/Input.json
Modified: trunk/Source/WebCore/ChangeLog (161384 => 161385)
--- trunk/Source/WebCore/ChangeLog 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebCore/ChangeLog 2014-01-07 00:52:17 UTC (rev 161385)
@@ -1,3 +1,24 @@
+2014-01-06 Seokju Kwon <[email protected]>
+
+ Web Inspector: Remove support for FileSystem in Frontend.
+ https://bugs.webkit.org/show_bug.cgi?id=126369
+
+ Reviewed by Joseph Pecoraro.
+
+ No new tests, No change in behavior.
+
+ Remove leftover codes from protocol after r156692.
+
+ * CMakeLists.txt:
+ * DerivedSources.make:
+ * GNUmakefile.am:
+ * inspector/InspectorFrontendClient.h:
+ * inspector/InspectorFrontendClientLocal.h:
+ * inspector/InspectorFrontendHost.cpp:
+ * inspector/InspectorFrontendHost.h:
+ * inspector/InspectorFrontendHost.idl:
+ * inspector/protocol/FileSystem.json: Removed.
+
2014-01-06 Zoltan Horvath <[email protected]>
[CSS Regions][CSS Shapes] ASSERTION FAILED: m_segmentRanges.size() < m_segments.size()
Modified: trunk/Source/WebCore/DerivedSources.make (161384 => 161385)
--- trunk/Source/WebCore/DerivedSources.make 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebCore/DerivedSources.make 2014-01-07 00:52:17 UTC (rev 161385)
@@ -1084,7 +1084,6 @@
$(WebCore)/inspector/protocol/DOMDebugger.json \
$(WebCore)/inspector/protocol/DOMStorage.json \
$(WebCore)/inspector/protocol/Database.json \
- $(WebCore)/inspector/protocol/FileSystem.json \
$(WebCore)/inspector/protocol/HeapProfiler.json \
$(WebCore)/inspector/protocol/IndexedDB.json \
$(WebCore)/inspector/protocol/Input.json \
Modified: trunk/Source/WebCore/GNUmakefile.am (161384 => 161385)
--- trunk/Source/WebCore/GNUmakefile.am 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebCore/GNUmakefile.am 2014-01-07 00:52:17 UTC (rev 161385)
@@ -343,7 +343,6 @@
$(WebCore)/inspector/protocol/DOMDebugger.json \
$(WebCore)/inspector/protocol/DOMStorage.json \
$(WebCore)/inspector/protocol/Database.json \
- $(WebCore)/inspector/protocol/FileSystem.json \
$(WebCore)/inspector/protocol/HeapProfiler.json \
$(WebCore)/inspector/protocol/IndexedDB.json \
$(WebCore)/inspector/protocol/Input.json \
Modified: trunk/Source/WebCore/inspector/InspectorFrontendClient.h (161384 => 161385)
--- trunk/Source/WebCore/inspector/InspectorFrontendClient.h 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebCore/inspector/InspectorFrontendClient.h 2014-01-07 00:52:17 UTC (rev 161385)
@@ -75,11 +75,6 @@
virtual void sendMessageToBackend(const String&) = 0;
- virtual bool supportsFileSystems() = 0;
- virtual void requestFileSystems() = 0;
- virtual void addFileSystem() = 0;
- virtual void removeFileSystem(const String& fileSystemPath) = 0;
-
virtual bool isUnderTest() = 0;
};
Modified: trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h (161384 => 161385)
--- trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h 2014-01-07 00:52:17 UTC (rev 161385)
@@ -76,10 +76,6 @@
virtual void sendMessageToBackend(const String& message);
- virtual bool supportsFileSystems() { return false; }
- virtual void requestFileSystems() { }
- virtual void addFileSystem() { }
- virtual void removeFileSystem(const String&) { }
virtual bool isUnderTest();
bool canAttachWindow();
Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp (161384 => 161385)
--- trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp 2014-01-07 00:52:17 UTC (rev 161385)
@@ -313,31 +313,6 @@
return String::fromUTF8(data.data(), data.size());
}
-bool InspectorFrontendHost::supportsFileSystems()
-{
- if (m_client)
- return m_client->supportsFileSystems();
- return false;
-}
-
-void InspectorFrontendHost::requestFileSystems()
-{
- if (m_client)
- m_client->requestFileSystems();
-}
-
-void InspectorFrontendHost::addFileSystem()
-{
- if (m_client)
- m_client->addFileSystem();
-}
-
-void InspectorFrontendHost::removeFileSystem(const String& fileSystemPath)
-{
- if (m_client)
- m_client->removeFileSystem(fileSystemPath);
-}
-
bool InspectorFrontendHost::isUnderTest()
{
return m_client && m_client->isUnderTest();
Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.h (161384 => 161385)
--- trunk/Source/WebCore/inspector/InspectorFrontendHost.h 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.h 2014-01-07 00:52:17 UTC (rev 161385)
@@ -84,11 +84,6 @@
String loadResourceSynchronously(const String& url);
- bool supportsFileSystems();
- void requestFileSystems();
- void addFileSystem();
- void removeFileSystem(const String& fileSystemPath);
-
bool isUnderTest();
void beep();
Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.idl (161384 => 161385)
--- trunk/Source/WebCore/inspector/InspectorFrontendHost.idl 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.idl 2014-01-07 00:52:17 UTC (rev 161385)
@@ -71,11 +71,6 @@
DOMString loadResourceSynchronously(DOMString url);
- boolean supportsFileSystems();
- void requestFileSystems();
- void addFileSystem();
- void removeFileSystem(DOMString fileSystemPath);
-
boolean isUnderTest();
void beep();
Deleted: trunk/Source/WebCore/inspector/protocol/FileSystem.json (161384 => 161385)
--- trunk/Source/WebCore/inspector/protocol/FileSystem.json 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebCore/inspector/protocol/FileSystem.json 2014-01-07 00:52:17 UTC (rev 161385)
@@ -1,102 +0,0 @@
-{
- "domain": "FileSystem",
- "types": [
- {
- "id": "Entry",
- "type": "object",
- "properties": [
- { "name": "url", "type": "string", "description": "filesystem: URL for the entry." },
- { "name": "name", "type": "string", "description": "The name of the file or directory." },
- { "name": "isDirectory", "type": "boolean", "description": "True if the entry is a directory." },
- { "name": "mimeType", "type": "string", "optional": true, "description": "MIME type of the entry, available for a file only." },
- { "name": "resourceType", "$ref": "Page.ResourceType", "optional": true, "description": "ResourceType of the entry, available for a file only." },
- { "name": "isTextFile", "type": "boolean", "optional": true, "description": "True if the entry is a text file." }
- ],
- "description": "Represents a browser side file or directory."
- },
- {
- "id": "Metadata",
- "type": "object",
- "properties": [
- { "name": "modificationTime", "type": "number", "description": "Modification time." },
- { "name": "size", "type": "number", "description": "File size. This field is always zero for directories." }
- ],
- "description": "Represents metadata of a file or entry."
- }
- ],
- "commands": [
- {
- "name": "enable",
- "description": "Enables events from backend."
- },
- {
- "name": "disable",
- "description": "Disables events from backend."
- },
- {
- "name": "requestFileSystemRoot",
- "async": true,
- "parameters": [
- { "name": "origin", "type": "string", "description": "Security origin of requesting FileSystem. One of frames in current page needs to have this security origin." },
- { "name": "type", "type": "string", "enum": ["temporary", "persistent"], "description": "FileSystem type of requesting FileSystem." }
- ],
- "returns": [
- { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
- { "name": "root", "$ref": "Entry", "optional": true, "description": "Contains root of the requested FileSystem if the command completed successfully." }
- ],
- "description": "Returns root directory of the FileSystem, if exists."
- },
- {
- "name": "requestDirectoryContent",
- "async": true,
- "parameters": [
- { "name": "url", "type": "string", "description": "URL of the directory that the frontend is requesting to read from." }
- ],
- "returns": [
- { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
- { "name": "entries", "type": "array", "items": { "$ref": "Entry" }, "optional": true, "description": "Contains all entries on directory if the command completed successfully." }
- ],
- "description": "Returns content of the directory."
- },
- {
- "name": "requestMetadata",
- "async": true,
- "parameters": [
- { "name": "url", "type": "string", "description": "URL of the entry that the frontend is requesting to get metadata from." }
- ],
- "returns": [
- { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
- { "name": "metadata", "$ref": "Metadata", "optional": true, "description": "Contains metadata of the entry if the command completed successfully." }
- ],
- "description": "Returns metadata of the entry."
- },
- {
- "name": "requestFileContent",
- "async": true,
- "parameters": [
- { "name": "url", "type": "string", "description": "URL of the file that the frontend is requesting to read from." },
- { "name": "readAsText", "type": "boolean", "description": "True if the content should be read as text, otherwise the result will be returned as base64 encoded text." },
- { "name": "start", "type": "integer", "optional": true, "description": "Specifies the start of range to read." },
- { "name": "end", "type": "integer", "optional": true, "description": "Specifies the end of range to read exclusively." },
- { "name": "charset", "type": "string", "optional": true, "description": "Overrides charset of the content when content is served as text." }
- ],
- "returns": [
- { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
- { "name": "content", "type": "string", "optional": true, "description": "Content of the file." },
- { "name": "charset", "type": "string", "optional": true, "description": "Charset of the content if it is served as text." }
- ],
- "description": "Returns content of the file. Result should be sliced into [start, end)."
- },
- {
- "name": "deleteEntry",
- "async": true,
- "parameters": [
- { "name": "url", "type": "string", "description": "URL of the entry to delete." }
- ],
- "returns": [
- { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise errorCode is set to FileError::ErrorCode value." }
- ],
- "description": "Deletes specified entry. If the entry is a directory, the agent deletes children recursively."
- }
- ]
-}
Modified: trunk/Source/WebInspectorUI/ChangeLog (161384 => 161385)
--- trunk/Source/WebInspectorUI/ChangeLog 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebInspectorUI/ChangeLog 2014-01-07 00:52:17 UTC (rev 161385)
@@ -1,5 +1,20 @@
2014-01-06 Seokju Kwon <[email protected]>
+ Web Inspector: Remove support for FileSystem in Frontend.
+ https://bugs.webkit.org/show_bug.cgi?id=126369
+
+ Reviewed by Joseph Pecoraro.
+
+ Update InspectorWebBackendCommands after removing 'FileSystem' domain.
+
+ * UserInterface/InspectorWebBackendCommands.js:
+ * UserInterface/Legacy/6.0/InspectorWebBackendCommands.js:
+ * UserInterface/Legacy/7.0/InspectorWebBackendCommands.js:
+ * Versions/Inspector-iOS-6.0.json:
+ * Versions/Inspector-iOS-7.0.json:
+
+2014-01-06 Seokju Kwon <[email protected]>
+
Web Inspector: Get rid of DOM.setFileInputFiles from Protocol
https://bugs.webkit.org/show_bug.cgi?id=126312
Modified: trunk/Source/WebInspectorUI/UserInterface/InspectorWebBackendCommands.js (161384 => 161385)
--- trunk/Source/WebInspectorUI/UserInterface/InspectorWebBackendCommands.js 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebInspectorUI/UserInterface/InspectorWebBackendCommands.js 2014-01-07 00:52:17 UTC (rev 161385)
@@ -158,16 +158,6 @@
InspectorBackend.registerCommand("Database.getDatabaseTableNames", [{"name": "databaseId", "type": "string", "optional": false}], ["tableNames"]);
InspectorBackend.registerCommand("Database.executeSQL", [{"name": "databaseId", "type": "string", "optional": false}, {"name": "query", "type": "string", "optional": false}], ["columnNames", "values", "sqlError"]);
-// FileSystem.
-InspectorBackend.registerFileSystemDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "FileSystem");
-InspectorBackend.registerCommand("FileSystem.enable", [], []);
-InspectorBackend.registerCommand("FileSystem.disable", [], []);
-InspectorBackend.registerCommand("FileSystem.requestFileSystemRoot", [{"name": "origin", "type": "string", "optional": false}, {"name": "type", "type": "string", "optional": false}], ["errorCode", "root"]);
-InspectorBackend.registerCommand("FileSystem.requestDirectoryContent", [{"name": "url", "type": "string", "optional": false}], ["errorCode", "entries"]);
-InspectorBackend.registerCommand("FileSystem.requestMetadata", [{"name": "url", "type": "string", "optional": false}], ["errorCode", "metadata"]);
-InspectorBackend.registerCommand("FileSystem.requestFileContent", [{"name": "url", "type": "string", "optional": false}, {"name": "readAsText", "type": "boolean", "optional": false}, {"name": "start", "type": "number", "optional": true}, {"name": "end", "type": "number", "optional": true}, {"name": "charset", "type": "string", "optional": true}], ["errorCode", "content", "charset"]);
-InspectorBackend.registerCommand("FileSystem.deleteEntry", [{"name": "url", "type": "string", "optional": false}], ["errorCode"]);
-
// HeapProfiler.
InspectorBackend.registerHeapProfilerDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "HeapProfiler");
InspectorBackend.registerEvent("HeapProfiler.addProfileHeader", ["header"]);
Modified: trunk/Source/WebInspectorUI/UserInterface/Legacy/6.0/InspectorWebBackendCommands.js (161384 => 161385)
--- trunk/Source/WebInspectorUI/UserInterface/Legacy/6.0/InspectorWebBackendCommands.js 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebInspectorUI/UserInterface/Legacy/6.0/InspectorWebBackendCommands.js 2014-01-07 00:52:17 UTC (rev 161385)
@@ -141,11 +141,6 @@
InspectorBackend.registerCommand("ApplicationCache.getManifestForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["manifestURL"]);
InspectorBackend.registerCommand("ApplicationCache.getApplicationCacheForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["applicationCache"]);
-// FileSystem.
-InspectorBackend.registerFileSystemDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "FileSystem");
-InspectorBackend.registerCommand("FileSystem.enable", [], []);
-InspectorBackend.registerCommand("FileSystem.disable", [], []);
-
// DOM.
InspectorBackend.registerDOMDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "DOM");
InspectorBackend.registerEvent("DOM.documentUpdated", []);
Modified: trunk/Source/WebInspectorUI/UserInterface/Legacy/7.0/InspectorWebBackendCommands.js (161384 => 161385)
--- trunk/Source/WebInspectorUI/UserInterface/Legacy/7.0/InspectorWebBackendCommands.js 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebInspectorUI/UserInterface/Legacy/7.0/InspectorWebBackendCommands.js 2014-01-07 00:52:17 UTC (rev 161385)
@@ -171,16 +171,6 @@
InspectorBackend.registerCommand("ApplicationCache.getManifestForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["manifestURL"]);
InspectorBackend.registerCommand("ApplicationCache.getApplicationCacheForFrame", [{"name": "frameId", "type": "string", "optional": false}], ["applicationCache"]);
-// FileSystem.
-InspectorBackend.registerFileSystemDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "FileSystem");
-InspectorBackend.registerCommand("FileSystem.enable", [], []);
-InspectorBackend.registerCommand("FileSystem.disable", [], []);
-InspectorBackend.registerCommand("FileSystem.requestFileSystemRoot", [{"name": "origin", "type": "string", "optional": false}, {"name": "type", "type": "string", "optional": false}], ["errorCode", "root"]);
-InspectorBackend.registerCommand("FileSystem.requestDirectoryContent", [{"name": "url", "type": "string", "optional": false}], ["errorCode", "entries"]);
-InspectorBackend.registerCommand("FileSystem.requestMetadata", [{"name": "url", "type": "string", "optional": false}], ["errorCode", "metadata"]);
-InspectorBackend.registerCommand("FileSystem.requestFileContent", [{"name": "url", "type": "string", "optional": false}, {"name": "readAsText", "type": "boolean", "optional": false}, {"name": "start", "type": "number", "optional": true}, {"name": "end", "type": "number", "optional": true}, {"name": "charset", "type": "string", "optional": true}], ["errorCode", "content", "charset"]);
-InspectorBackend.registerCommand("FileSystem.deleteEntry", [{"name": "url", "type": "string", "optional": false}], ["errorCode"]);
-
// DOM.
InspectorBackend.registerDOMDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "DOM");
InspectorBackend.registerEvent("DOM.documentUpdated", []);
Modified: trunk/Source/WebInspectorUI/Versions/Inspector-iOS-6.0.json (161384 => 161385)
--- trunk/Source/WebInspectorUI/Versions/Inspector-iOS-6.0.json 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebInspectorUI/Versions/Inspector-iOS-6.0.json 2014-01-07 00:52:17 UTC (rev 161385)
@@ -1339,22 +1339,6 @@
]
},
{
- "domain": "FileSystem",
- "hidden": true,
- "commands": [
- {
- "name": "enable",
- "description": "Enables events from backend."
- },
- {
- "name": "disable",
- "description": "Disables events from backend.."
- }
- ],
- "events": [
- ]
- },
- {
"domain": "DOM",
"description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <code>id</code> can be used to get additional information on the Node, resolve it into the _javascript_ object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note that <code>iframe</code> owner elements will return corresponding document elements as their child nodes.</p>",
"types": [
Modified: trunk/Source/WebInspectorUI/Versions/Inspector-iOS-7.0.json (161384 => 161385)
--- trunk/Source/WebInspectorUI/Versions/Inspector-iOS-7.0.json 2014-01-07 00:42:41 UTC (rev 161384)
+++ trunk/Source/WebInspectorUI/Versions/Inspector-iOS-7.0.json 2014-01-07 00:52:17 UTC (rev 161385)
@@ -1524,108 +1524,6 @@
]
},
{
- "domain": "FileSystem",
- "types": [
- {
- "id": "Entry",
- "type": "object",
- "properties": [
- { "name": "url", "type": "string", "description": "filesystem: URL for the entry." },
- { "name": "name", "type": "string", "description": "The name of the file or directory." },
- { "name": "isDirectory", "type": "boolean", "description": "True if the entry is a directory." },
- { "name": "mimeType", "type": "string", "optional": true, "description": "MIME type of the entry, available for a file only." },
- { "name": "resourceType", "$ref": "Page.ResourceType", "optional": true, "description": "ResourceType of the entry, available for a file only." },
- { "name": "isTextFile", "type": "boolean", "optional": true, "description": "True if the entry is a text file." }
- ],
- "description": "Represents a browser side file or directory."
- },
- {
- "id": "Metadata",
- "type": "object",
- "properties": [
- { "name": "modificationTime", "type": "number", "description": "Modification time." },
- { "name": "size", "type": "number", "description": "File size. This field is always zero for directories." }
- ],
- "description": "Represents metadata of a file or entry."
- }
- ],
- "commands": [
- {
- "name": "enable",
- "description": "Enables events from backend."
- },
- {
- "name": "disable",
- "description": "Disables events from backend."
- },
- {
- "name": "requestFileSystemRoot",
- "async": true,
- "parameters": [
- { "name": "origin", "type": "string", "description": "Security origin of requesting FileSystem. One of frames in current page needs to have this security origin." },
- { "name": "type", "type": "string", "enum": ["temporary", "persistent"], "description": "FileSystem type of requesting FileSystem." }
- ],
- "returns": [
- { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
- { "name": "root", "$ref": "Entry", "optional": true, "description": "Contains root of the requested FileSystem if the command completed successfully." }
- ],
- "description": "Returns root directory of the FileSystem, if exists."
- },
- {
- "name": "requestDirectoryContent",
- "async": true,
- "parameters": [
- { "name": "url", "type": "string", "description": "URL of the directory that the frontend is requesting to read from." }
- ],
- "returns": [
- { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
- { "name": "entries", "type": "array", "items": { "$ref": "Entry" }, "optional": true, "description": "Contains all entries on directory if the command completed successfully." }
- ],
- "description": "Returns content of the directory."
- },
- {
- "name": "requestMetadata",
- "async": true,
- "parameters": [
- { "name": "url", "type": "string", "description": "URL of the entry that the frontend is requesting to get metadata from." }
- ],
- "returns": [
- { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
- { "name": "metadata", "$ref": "Metadata", "optional": true, "description": "Contains metadata of the entry if the command completed successfully." }
- ],
- "description": "Returns metadata of the entry."
- },
- {
- "name": "requestFileContent",
- "async": true,
- "parameters": [
- { "name": "url", "type": "string", "description": "URL of the file that the frontend is requesting to read from." },
- { "name": "readAsText", "type": "boolean", "description": "True if the content should be read as text, otherwise the result will be returned as base64 encoded text." },
- { "name": "start", "type": "integer", "optional": true, "description": "Specifies the start of range to read." },
- { "name": "end", "type": "integer", "optional": true, "description": "Specifies the end of range to read exclusively." },
- { "name": "charset", "type": "string", "optional": true, "description": "Overrides charset of the content when content is served as text." }
- ],
- "returns": [
- { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
- { "name": "content", "type": "string", "optional": true, "description": "Content of the file." },
- { "name": "charset", "type": "string", "optional": true, "description": "Charset of the content if it is served as text." }
- ],
- "description": "Returns content of the file. Result should be sliced into [start, end)."
- },
- {
- "name": "deleteEntry",
- "async": true,
- "parameters": [
- { "name": "url", "type": "string", "description": "URL of the entry to delete." }
- ],
- "returns": [
- { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise errorCode is set to FileError::ErrorCode value." }
- ],
- "description": "Deletes specified entry. If the entry is a directory, the agent deletes children recursively."
- }
- ]
- },
- {
"domain": "DOM",
"description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <code>id</code> can be used to get additional information on the Node, resolve it into the _javascript_ object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note that <code>iframe</code> owner elements will return corresponding document elements as their child nodes.</p>",
"types": [