Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add evt listeners for SetAlwaysOnTop #14951

Merged
merged 5 commits into from Oct 4, 2018
Merged

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Oct 3, 2018

Description of Change

Resolves #12466.

Adds new event listener for SetAlwaysOnTop: "always-on-top-change"

/cc @ckerr @MarshallOfSound

Checklist
  • PR description included and stakeholders cc'd
  • npm test passes
  • relevant documentation is changed or added
  • PR title follows semantic commit guidelines
Release Notes

Notes: Add new event listener for window SetAlwaysOnTop

@codebytere codebytere requested a review from a team October 3, 2018 16:04
@@ -262,6 +262,14 @@ void TopLevelWindow::OnWindowLeaveHtmlFullScreen() {
Emit("leave-html-full-screen");
}

void TopLevelWindow::OnWindowEnterAlwaysOnTop() {
Emit("enter-always-on-top");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if enter and leave are the right semantics here, maybe always-on-top-changed with a single param alwaysOnTop which is a boolean.

Enter and leave make sense for fullscreen because it's a mode you "enter" and you don't really "enter" always on top. 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm...i see what you mean 🤔

is there an alt nomenclature you'd prefer to see?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • always-on-top-changed
  • is-always-on-top / not-always-on-top 🤔

I prefer the first one

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for always-on-top-changed with an arg, similar to what we do for accessibility-support-changed

@codebytere codebytere requested a review from a team October 4, 2018 01:01
@@ -262,6 +262,10 @@ void TopLevelWindow::OnWindowLeaveHtmlFullScreen() {
Emit("leave-html-full-screen");
}

void TopLevelWindow::OnWindowAlwaysOnTopChange() {
Emit("always-on-top-change", IsAlwaysOnTop());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/change/changed for consistency with accessibility-support-changed, accent-color-changed, cursor-changed, etc.

@ckerr ckerr added the semver/minor backwards-compatible functionality label Oct 4, 2018
@ckerr ckerr merged commit 27bbf6a into master Oct 4, 2018
@release-clerk
Copy link

release-clerk bot commented Oct 4, 2018

Release Notes Persisted

Add new event listener for window SetAlwaysOnTop

@ckerr ckerr deleted the add-setalwaysontop-event branch October 4, 2018 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/minor backwards-compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants