зеркало из https://github.com/mozilla/gecko-dev.git
Translate 'stop' to xfeCmdStopLoading (in addition to 'abort'). This is used by the RDF command translation.
This commit is contained in:
Родитель
479c87a522
Коммит
dc0e18b2ca
|
@ -566,7 +566,7 @@ struct CommandList_t
|
|||
static CommandList_t* intern_list;
|
||||
|
||||
char *
|
||||
Command::intern(char *foo)
|
||||
Command::intern(const char *foo)
|
||||
{
|
||||
int middle, first, last;
|
||||
|
||||
|
@ -653,6 +653,7 @@ static struct cmd_mapping mapping[] = {
|
|||
{ "forward", xfeCmdForward },
|
||||
{ "home", xfeCmdHome },
|
||||
{ "abort", xfeCmdStopLoading },
|
||||
{ "stop", xfeCmdStopLoading },
|
||||
{ "viewHistory", xfeCmdOpenHistory },
|
||||
|
||||
{ "viewBookmark", xfeCmdOpenBookmarks },
|
||||
|
@ -681,7 +682,7 @@ static struct cmd_mapping mapping[] = {
|
|||
static int num_old_cmds = sizeof(mapping) / sizeof(mapping[0]);
|
||||
|
||||
char *
|
||||
Command::convertOldRemote(char *foo)
|
||||
Command::convertOldRemote(const char *foo)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
|
@ -60,8 +60,8 @@ typedef char* CommandType;
|
|||
|
||||
class Command {
|
||||
public:
|
||||
static CommandType intern(char* foo);
|
||||
static CommandType convertOldRemote(char* foo);
|
||||
static CommandType intern(const char* foo);
|
||||
static CommandType convertOldRemote(const char* foo);
|
||||
|
||||
static char* getString(CommandType command)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче