Lines Matching refs:button
348 ControlPanelButtonDescriptor button = { in AddCustomControlPanelButton() local
350 impl_->custom_control_panel_buttons_.push_back(button); in AddCustomControlPanelButton()
356 ControlPanelButtonDescriptor button = { in AddCustomControlPanelButtonWithShellCommand() local
358 button.shell_command = shell_command; in AddCustomControlPanelButtonWithShellCommand()
359 impl_->custom_control_panel_buttons_.push_back(button); in AddCustomControlPanelButtonWithShellCommand()
366 ControlPanelButtonDescriptor button = { in AddCustomControlPanelButtonWithDeviceStates() local
368 button.device_states = device_states; in AddCustomControlPanelButtonWithDeviceStates()
369 impl_->custom_control_panel_buttons_.push_back(button); in AddCustomControlPanelButtonWithDeviceStates()
458 for (const auto& button : custom_control_panel_buttons_) { in OnOpen() local
460 button_entry[kControlPanelButtonCommand] = button.command; in OnOpen()
461 button_entry[kControlPanelButtonTitle] = button.title; in OnOpen()
462 button_entry[kControlPanelButtonIconName] = button.icon_name; in OnOpen()
463 if (button.shell_command) { in OnOpen()
464 button_entry[kControlPanelButtonShellCommand] = *(button.shell_command); in OnOpen()
465 } else if (!button.device_states.empty()) { in OnOpen()
467 for (const DeviceState& device_state : button.device_states) { in OnOpen()