1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/inspector/inISearchObserver.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsISupports.idl" 1.9 + 1.10 +interface inISearchProcess; 1.11 + 1.12 +[scriptable, uuid(46226D9B-E398-4106-8D9B-225D4D0589F5)] 1.13 +interface inISearchObserver : nsISupports 1.14 +{ 1.15 + // result codes which are sent to onSearchEnd 1.16 + const short IN_SUCCESS = 1; // search completed successfully 1.17 + const short IN_INTERRUPTED = 2; // search stopped due to user interruption 1.18 + const short IN_ERROR = 3; // search stopped due to an error 1.19 + 1.20 + void onSearchStart(in inISearchProcess aModule); 1.21 + void onSearchResult(in inISearchProcess aModule); 1.22 + void onSearchEnd(in inISearchProcess aModule, in short aResult); 1.23 + void onSearchError(in inISearchProcess aModule, in AString aMessage); 1.24 +};