Lines Matching refs:command_id
31 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
32 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
34 int command_id,
36 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
104 bool ExampleMenuModel::IsCommandIdChecked(int command_id) const {
106 if (command_id == current_encoding_command_id_)
110 if (checked_fruits_.find(command_id) != checked_fruits_.end())
116 bool ExampleMenuModel::IsCommandIdEnabled(int command_id) const {
118 return command_id != COMMAND_GO_HOME;
122 int command_id,
128 void ExampleMenuModel::ExecuteCommand(int command_id, int event_flags) {
129 switch (command_id) {
158 if (command_id == COMMAND_CHECK_APPLE)
160 else if (command_id == COMMAND_CHECK_ORANGE)
162 else if (command_id == COMMAND_CHECK_KIWI)
166 std::set<int>::iterator iter = checked_fruits_.find(command_id);
169 checked_fruits_.insert(command_id);