-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add message for to add a menu in the IDE
- Loading branch information
Showing
3 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
src/Uno.UI.RemoteControl.Messaging/IdeChannel/AddMenuItemRequestIdeMessage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#nullable enable | ||
using System; | ||
using System.Linq; | ||
|
||
namespace Uno.UI.RemoteControl.Messaging.IdeChannel; | ||
|
||
/// <summary> | ||
/// Request to the IDE to add a menu item. | ||
/// </summary> | ||
/// <param name="Command">The command to add in the IDE menus.</param> | ||
public record AddMenuItemRequestIdeMessage(Command Command) : IdeMessage(WellKnownScopes.Ide); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#nullable enable | ||
using System; | ||
using System.Linq; | ||
|
||
namespace Uno.UI.RemoteControl.Messaging.IdeChannel; | ||
|
||
/// <summary> | ||
/// Description of a command to execute. | ||
/// </summary> | ||
/// <param name="Text">Text content to display to the user.</param> | ||
/// <param name="Name">The name/id of the command (e.g. uno.hotreload.open_hotreload_window).</param> | ||
/// <param name="Parameter">A json serialized parameter to execute the command.</param> | ||
public record Command(string Text, string Name, string? Parameter = null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters