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

Added isDevToolsOpen interface and missing impl. #4865

Closed
wants to merge 1 commit into from
Closed

Added isDevToolsOpen interface and missing impl. #4865

wants to merge 1 commit into from

Conversation

zenoamaro
Copy link

[Follow up from #4751]

isDevToolsOpen is not present on a Window object since at least 0.13 (see, eg., #4487).

This patch

  • adds isDevToolsOpen interface where it was missing;
  • adds a concrete implementation;
  • fixes a few consistency issues.

You can test presence (or thereof) with a simple app:

<script>
  alert(nw.Window.get().showDevTools); // function...
  alert(nw.Window.get().isDevToolsOpen); // undefined
</script>

Issue was first encountered while testing on 0.14.0-sdk-1 from npm after upgrading from ^0.12.

@rogerwang
Copy link
Member

We don't use src/api/window/window.cc src/api/window_bindings.js and src/nw_shell.h now.

@zenoamaro
Copy link
Author

Thanks for the information.

Is this change related to nw15rc? I tried to rebase this patch on top on branch nw15 and it rebased cleanly, so it is not clear to me if I should restrict implementation to some of these files. I made sure to cover every source that was also covered by CloseDevTools and related.

Could you share some pointers about this migration, so that I can update the patch? Should I simply discard changes involving those sources?

Thanks for the incredible work,

@rogerwang
Copy link
Member

We changed the architecture of API binding. The new one is https://github.com/nwjs/nw.js/blob/nw19/src/api/nw_window_api.cc
https://github.com/nwjs/nw.js/blob/nw19/src/resources/api_nw_window.js

So closing this PR.

@rogerwang rogerwang closed this Jan 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants