Lines Matching refs:action
31 void ActionManager::AddAction(std::unique_ptr<Action> action) { in AddAction() argument
32 actions_.emplace_back(std::move(action)); in AddAction()
48 auto action = std::make_unique<Action>(true, nullptr, "<Builtin Action>", 0, name, in QueueBuiltinAction() local
52 action->AddCommand(func, name_vector, 0); in QueueBuiltinAction()
54 event_queue_.emplace(action.get()); in QueueBuiltinAction()
55 actions_.emplace_back(std::move(action)); in QueueBuiltinAction()
61 for (const auto& action : actions_) { in ExecuteOneCommand() local
62 if (std::visit([&action](const auto& event) { return action->CheckEvent(event); }, in ExecuteOneCommand()
64 current_executing_actions_.emplace(action.get()); in ExecuteOneCommand()
74 auto action = current_executing_actions_.front(); in ExecuteOneCommand() local
77 std::string trigger_name = action->BuildTriggersString(); in ExecuteOneCommand()
78 LOG(INFO) << "processing action (" << trigger_name << ") from (" << action->filename() in ExecuteOneCommand()
79 << ":" << action->line() << ")"; in ExecuteOneCommand()
82 action->ExecuteOneCommand(current_command_); in ExecuteOneCommand()
88 if (current_command_ == action->NumCommands()) { in ExecuteOneCommand()
91 if (action->oneshot()) { in ExecuteOneCommand()
92 auto eraser = [&action](std::unique_ptr<Action>& a) { return a.get() == action; }; in ExecuteOneCommand()