mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Added FE hooks to dynamically enable/disable runtime tracing. Approved by blythe.
This commit is contained in:
parent
aa40707e22
commit
920d3bd35c
@ -71,6 +71,7 @@ BEGIN_MESSAGE_MAP(CMainFrame, CGenericFrame)
|
||||
ON_WM_CREATE()
|
||||
ON_WM_DESTROY()
|
||||
ON_COMMAND(ID_OPTIONS_TOGGLENETDEBUG, OnOptionsTogglenetdebug)
|
||||
ON_COMMAND(ID_OPTIONS_TOGGLEPROFILE, OnOptionsToggleProfile)
|
||||
ON_UPDATE_COMMAND_UI(ID_OPTIONS_LOADINLINEDIMAGES, OnUpdateToggleImageLoad)
|
||||
ON_COMMAND(ID_HOTLIST_MCOM, OnNetscapeHome)
|
||||
ON_COMMAND(ID_PLACES, OnGuide)
|
||||
|
@ -43,6 +43,7 @@
|
||||
#include "prefapi.h"
|
||||
#include "prefInfo.h"
|
||||
#include "medit.h"
|
||||
#include "profile.h"
|
||||
|
||||
#include "np.h"
|
||||
#include "npapi.h" // for NPWindow
|
||||
@ -53,6 +54,8 @@
|
||||
#include "java.h"
|
||||
#endif
|
||||
|
||||
#include "timing.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#undef THIS_FILE
|
||||
static char BASED_CODE THIS_FILE[] = __FILE__;
|
||||
@ -366,6 +369,12 @@ void CMainFrame::OnOptionsTogglenetdebug()
|
||||
}
|
||||
|
||||
|
||||
void CMainFrame::OnOptionsToggleProfile()
|
||||
{
|
||||
TimingSetEnabled(! TimingIsEnabled());
|
||||
}
|
||||
|
||||
|
||||
void CMainFrame::OnToggleImageLoad()
|
||||
{
|
||||
CWinCX *pWinCX;
|
||||
|
@ -131,6 +131,7 @@ protected:
|
||||
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
||||
afx_msg void OnDestroy();
|
||||
afx_msg void OnOptionsTogglenetdebug();
|
||||
afx_msg void OnOptionsToggleProfile();
|
||||
afx_msg void OnShowTransferStatus();
|
||||
afx_msg void OnUpdateToggleImageLoad(CCmdUI* pCmdUI);
|
||||
afx_msg void OnUpdateShowTransferStatus(CCmdUI* pCmdUI);
|
||||
|
@ -198,6 +198,7 @@ BEGIN
|
||||
NOINVERT
|
||||
"O", ID_FILE_OPENURL, VIRTKEY, CONTROL, NOINVERT
|
||||
"P", ID_FILE_PRINT, VIRTKEY, CONTROL, NOINVERT
|
||||
"P", ID_OPTIONS_TOGGLEPROFILE, VIRTKEY, CONTROL, ALT, NOINVERT
|
||||
"Q", ID_APP_EXIT, VIRTKEY, CONTROL, NOINVERT
|
||||
"R", ID_NAVIGATE_RELOAD, VIRTKEY, CONTROL, NOINVERT
|
||||
"S", ID_NETSCAPE_SAVE_AS, VIRTKEY, CONTROL, NOINVERT
|
||||
|
@ -2229,6 +2229,7 @@
|
||||
#define ID_POPUP_COPYEMBEDDATA 33114
|
||||
#define ID_OPTIONS_TIPS 33125
|
||||
#define ID_REMOVE_FONTFACE 33126
|
||||
#define ID_OPTIONS_TOGGLEPROFILE 33127
|
||||
#define ID_FILE_OPENFOLDER 34000
|
||||
#define ID_FILE_OPENFOLDERNEW 34001
|
||||
#define ID_FILE_OPENFOLDERREUSE 34002
|
||||
|
Loading…
Reference in New Issue
Block a user