Source

NPAPI-chrome-file-api / NPAPIFileIOforChromeAPI.h

Diff from to

File NPAPIFileIOforChromeAPI.h

         registerMethod("testEvent", make_method(this, &NPAPIFileIOforChromeAPI::testEvent));
         //registerMethod("saveToFileUrl",      make_method(this, &NPAPIFileIOforChromeAPI::saveToFileUrl));
         registerMethod("launchFileSelect",     make_method(this, &NPAPIFileIOforChromeAPI::launchFileSelect));
+        registerMethod("watchDirectory",     make_method(this, &NPAPIFileIOforChromeAPI::watchDirectory));
+        registerMethod("stopWatching",     make_method(this, &NPAPIFileIOforChromeAPI::stopWatching));
         registerMethod("createDirectory",      make_method(this, &NPAPIFileIOforChromeAPI::createDirectory));
         registerMethod("saveBlobToFile",      make_method(this, &NPAPIFileIOforChromeAPI::saveBlobToFile));
         registerMethod("getDirEntries",      make_method(this, &NPAPIFileIOforChromeAPI::getDirEntries));
     bool fileExists(std::string path);
     bool removeRecursively(std::string path);
     void launchFileSelect(FB::JSObjectPtr callback); 
+    void watchDirectory(std::string key, std::string path, FB::JSObjectPtr callback);
+    void stopWatching(std::string key);
     std::string getChromeDataDir(std::string version);
 
 private: