Skip to content

Commit

Permalink
Merge pull request #163 from NHDaly/documentation
Browse files Browse the repository at this point in the history
Document the *tools(w) functions
  • Loading branch information
NHDaly authored Oct 6, 2018
2 parents 5ef89a5 + efb3f26 commit d6b2064
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/AtomShell/window.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,33 @@ loadurl(win::Window, url) =
loadfile(win::Window, f) =
loadurl(win, "file://$f")

"""
opentools(win::Window)
Open the Chrome Developer Tools on `win`.
See also: [`closetools`](@ref), [`tools`](@ref)
"""
opentools(win::Window) =
@dot win openDevTools()

"""
closetools(win::Window)
Close the Chrome Developer Tools on `win` if open.
See also: [`opentools`](@ref), [`tools`](@ref)
"""
closetools(win::Window) =
@dot win closeDevTools()

"""
tools(win::Window)
Toggle the Chrome Developer Tools on `win`.
See also: [`opentools`](@ref), [`closetools`](@ref)
"""
tools(win::Window) =
@dot win toggleDevTools()

Expand Down

0 comments on commit d6b2064

Please sign in to comment.