Add SelectAll
git-svn-id: svn://10.0.0.236/trunk@45608 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
137ddb057c
commit
91bb1ea4e2
@ -23,6 +23,7 @@
|
||||
|
||||
#include "nsIBrowserWindow.h"
|
||||
#include "nsIWebShell.h"
|
||||
#include "nsIClipboardCommands.h"
|
||||
#include "pratom.h"
|
||||
#include "prprf.h"
|
||||
#include "nsIComponentManager.h"
|
||||
@ -2448,6 +2449,18 @@ nsBrowserAppCore::Observe( nsISupports *aSubject,
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsBrowserAppCore::SelectAll()
|
||||
{
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIClipboardCommands> clip(do_QueryInterface(mContentAreaWebShell,&rv));
|
||||
if ( NS_SUCCEEDED(rv) ) {
|
||||
rv = clip->SelectAll();
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsBrowserInstance::GetIsViewSource(PRBool *aBool) {
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user