Home | History | Annotate | Download | only in browser

Lines Matching refs:Command

16 class CommandUpdater::Command {
21 Command() : enabled(true) {}
33 const CommandMap::const_iterator command(commands_.find(id));
34 if (command == commands_.end())
36 return command->second->enabled;
52 Command* command = GetCommand(id, true);
53 if (command->enabled == enabled)
55 command->enabled = enabled;
56 FOR_EACH_OBSERVER(CommandObserver, command->observers,
60 CommandUpdater::Command* CommandUpdater::GetCommand(int id, bool create) {
65 Command* command = new Command;
66 commands_[id] = command;
67 return command;
82 Command* command = it->second;
83 if (command)
84 command->observers.RemoveObserver(observer);