Home | History | Annotate | Download | only in browser

Lines Matching defs:Command

15 class CommandUpdater::Command {
20 Command() : enabled(true) {}
36 const CommandMap::const_iterator command(commands_.find(id));
37 if (command == commands_.end())
39 return command->second->enabled;
68 Command* command = it->second;
69 if (command)
70 command->observers.RemoveObserver(observer);
75 Command* command = GetCommand(id, true);
76 if (command->enabled == enabled)
78 command->enabled = enabled;
79 FOR_EACH_OBSERVER(CommandObserver, command->observers,
83 CommandUpdater::Command* CommandUpdater::GetCommand(int id, bool create) {
88 Command* command = new Command;
89 commands_[id] = command;
90 return command;