(HTMLArea) on the page. Approved and reviewd by ramiro and akkana.
Command.cpp
Command.h
- Modified the XFE_ViewCommand constructor to take a view
argument (defaults to NULL when not provided). If not NULL,
this view is used to dispatch the command.
EditorView.cpp
EditorView.h
- Modified all XFE_EditorViewCommands to take a view argument
for their constructors to pass on to XFE_ViewCommand. Only
ENDERs pass non-NULL views to the constructors, so the Editor
still dispatches commands the way it always has.
Frame.cpp
Frame.h
- Modified xfe_ExecuteCommand to take a cmdDispatcher argument.
If non-null, it is casted to either a frame or view and then
used to dispatch the command passed in. If it is null,
xfe_ExecuteCommand dispatches as it always has.
Menu.cpp
Menu.h
PopupMenu.cpp
PopupMenu.h
- Modified XFE_Menu and XFE_PopupMenu constructors to take a
cmdDispatch argument. If it is non null, it is used to dispatch
the command that is attatched to the menuitem.
MozillaApp.cpp
- Modified xfeDoCommandAction ENDER code to call xfe_ExecuteCommand(),
passing in the view as the cmdDispatcher.
View.cpp
- Removed unused local variable in removeView(), to fix compiler
warning.
- Modified getCommandView() to recurse down the entire View tree
to find a view that can handle a command. The old code only looked
one level deep.