Lines Matching refs:Command
24 std::string GetLabel(ViewsOverlayControls::Command command, bool maximized) { in GetLabel()
26 case ViewsOverlayControls::Command::kMinimize: in GetLabel()
28 case ViewsOverlayControls::Command::kMaximize: in GetLabel()
30 case ViewsOverlayControls::Command::kClose: in GetLabel()
63 panel_->AddChildView(CreateButton(ViewsOverlayControls::Command::kMinimize)); in Initialize()
64 panel_->AddChildView(CreateButton(ViewsOverlayControls::Command::kMaximize)); in Initialize()
65 panel_->AddChildView(CreateButton(ViewsOverlayControls::Command::kClose)); in Initialize()
144 auto command = static_cast<Command>(button->GetID()); in OnButtonPressed()
146 case ViewsOverlayControls::Command::kMinimize: in OnButtonPressed()
149 case ViewsOverlayControls::Command::kMaximize: in OnButtonPressed()
155 case ViewsOverlayControls::Command::kClose: in OnButtonPressed()
166 if (command == Command::kMaximize) in OnButtonPressed()
170 CefRefPtr<CefLabelButton> ViewsOverlayControls::CreateButton(Command command) { in CreateButton()
186 auto command = static_cast<Command>(max_button->GetID()); in MaybeUpdateMaximizeButton()
187 DCHECK(command == Command::kMaximize); in MaybeUpdateMaximizeButton()