mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
29 lines
306 B
CoffeeScript
29 lines
306 B
CoffeeScript
# API Ideas
|
|
|
|
|
|
#
|
|
# Chrome
|
|
#
|
|
|
|
# Our view hierarchy is:
|
|
#
|
|
# App has many Windows
|
|
# Window has many Panes
|
|
# Window has one Document
|
|
|
|
App =
|
|
windows: []
|
|
activeWindow: null
|
|
|
|
class Window
|
|
panes: []
|
|
activePane: null
|
|
|
|
class Pane
|
|
window: null
|
|
document: null
|
|
|
|
class Document
|
|
window: null
|
|
pane: null
|