Created
December 2, 2009 23:46
-
-
Save justin/247740 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NS_IMETHODIMP | |
nsChildView::BeginSecureKeyboardInput() | |
{ | |
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT; | |
nsresult rv = nsBaseWidget::BeginSecureKeyboardInput(); | |
if (NS_SUCCEEDED(rv)) | |
::EnableSecureEventInput(); | |
return rv; | |
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT; | |
} | |
NS_IMETHODIMP | |
nsChildView::EndSecureKeyboardInput() | |
{ | |
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT; | |
nsresult rv = nsBaseWidget::EndSecureKeyboardInput(); | |
if (NS_SUCCEEDED(rv)) | |
::DisableSecureEventInput(); | |
return rv; | |
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NS_IMETHODIMP nsCocoaWindow::BeginSecureKeyboardInput() | |
{ | |
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT; | |
nsresult rv = nsBaseWidget::BeginSecureKeyboardInput(); | |
if (NS_SUCCEEDED(rv)) | |
::EnableSecureEventInput(); | |
return rv; | |
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT; | |
} | |
NS_IMETHODIMP nsCocoaWindow::EndSecureKeyboardInput() | |
{ | |
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT; | |
nsresult rv = nsBaseWidget::EndSecureKeyboardInput(); | |
if (NS_SUCCEEDED(rv)) | |
::DisableSecureEventInput(); | |
return rv; | |
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment