diff options
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index 8d1b3cdd0..732de1c42 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -722,3 +722,15 @@ nsresult EphyBrowser::DoCommand (const char *command) return cmdManager->DoCommand (command, nsnull, nsnull); } + +nsresult EphyBrowser::GetCommandState (const char *command, PRBool *enabled) +{ + nsCOMPtr<nsICommandManager> cmdManager; + + g_return_val_if_fail (mWebBrowser, NS_ERROR_FAILURE); + + cmdManager = do_GetInterface (mWebBrowser); + if (!cmdManager) return NS_ERROR_FAILURE; + + return cmdManager->IsCommandEnabled (command, nsnull, enabled); +} |