Commits

Anonymous committed cc851aa

made some naming changes

  • Participants
  • Parent commits 9548169

Comments (0)

Files changed (7)

File Archive.zip

Binary file removed.

File BackgroundMsgSupport.js

+
+var backgroundMsgSupport = {
+	launchFileSelect : function(index, callback){
+		chrome.extension.sendRequest({key: 'launchFileSelect', index: index}, function(response){
+			callback(response);
+		});
+	},
+	getProjectTypes : function(callback){
+		chrome.extension.sendRequest({key : 'ProjectTypes'}, function(response){
+			callback(response);
+		});
+	},
+	checkResources : function(resources, callback){
+		chrome.extension.sendRequest({key : 'checkResources', resources: resources}, function(response){
+			callback(response);
+		});
+	},
+	checkResourceContent : function(url, content, callback){
+		chrome.extension.sendRequest({key : 'checkResourceContent', url: url, content:content}, function(response){
+			callback(response);
+		});
+	},
+	updateResource : function(url, content, callback){
+		chrome.extension.sendRequest({key : 'updateResource', url: url, content:content}, function(response){
+			callback(response);
+		});
+	},
+	pageChanged : function(callback){
+		chrome.extension.sendRequest({key: 'pageChanged'}, callback);
+	},
+	watchDirectory : function(fullPath, callback){
+		chrome.extension.sendRequest({key: 'watchDirectory', path : fullPath}, function(response){
+			callback(response);
+		});
+	}
+}

File FileWatcher.js

 			return;
 		}
 		var urls = this.project.urlsForPath(path)
-		if (urls){
+		if (urls && urls.length){
 			var port = chrome.tabs.connect(this.tabId, {name: 'fileChange'});
 			var ran = Math.round(Math.random()*10000000);
 			urls.asyncEach(function(url, done){
 	stopWatching : function(){
 		nativeFileSupport.stopWatching(this.tabId.toString());
 	}
-}
+}

File editorpanel.html

 	<link rel="stylesheet" type="text/css" href="editorpanel.css" />
 
 	<script src="zepto1.0rc1.js"></script>
-	<script src="NativeFileSupportShim.js"></script>
+	<script src="BackgroundMsgSupport.js"></script>
 	<script src="Logger.js"></script>
 	<script src="RecentUpdateHandler.js"></script>
 	<script src="ResourceChecker.js"></script>
 		</p>
 	</div>
 </body>
-</html>
+</html>

File manifest.json

   "description": "Plugin to allow editing of local files from Chrome developer tools",
   "version": "1",
   "devtools_page": "devtools.html",
-  "permissions" : ["http://*/"],
   "background_page": "background.html",
+  "permissions": ["http://*/", "https://*/"],
   "plugins": [
-    { "path": "NPAPIFileIOforChrome.plugin", "public": false }
+    { "path": "npNPAPIFileIOforChrome.so", "public": false }
   ]
-}
+}

File nativeFileSupportShim.js

-
-var backgroundMsgSupport = {
-	launchFileSelect : function(index, callback){
-		chrome.extension.sendRequest({key: 'launchFileSelect', index: index}, function(response){
-			callback(response);
-		});
-	},
-	getProjectTypes : function(callback){
-		chrome.extension.sendRequest({key : 'ProjectTypes'}, function(response){
-			callback(response);
-		});
-	},
-	checkResources : function(resources, callback){
-		chrome.extension.sendRequest({key : 'checkResources', resources: resources}, function(response){
-			callback(response);
-		});
-	},
-	checkResourceContent : function(url, content, callback){
-		chrome.extension.sendRequest({key : 'checkResourceContent', url: url, content:content}, function(response){
-			callback(response);
-		});
-	},
-	updateResource : function(url, content, callback){
-		chrome.extension.sendRequest({key : 'updateResource', url: url, content:content}, function(response){
-			callback(response);
-		});
-	},
-	pageChanged : function(callback){
-		chrome.extension.sendRequest({key: 'pageChanged'}, callback);
-	},
-	watchDirectory : function(fullPath, callback){
-		chrome.extension.sendRequest({key: 'watchDirectory', path : fullPath}, function(response){
-			callback(response);
-		});
-	}
-}

File untitled text 13

Empty file removed.