mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
39 lines
486 B
CoffeeScript
39 lines
486 B
CoffeeScript
# API Ideas
|
|
|
|
|
|
#
|
|
# Chrome
|
|
#
|
|
|
|
# View hierarchy
|
|
#
|
|
# App: has many Windows
|
|
# Window: has many Plugins, contains a Document model
|
|
# Plugin: could have a Pane, or be headless
|
|
# Pane: has 0 or more Panes
|
|
#
|
|
# Model hieerarcy
|
|
#
|
|
# Document: holds all the data!
|
|
|
|
App =
|
|
windows: []
|
|
activeWindow: null
|
|
|
|
class Window
|
|
plugins: []
|
|
document: null
|
|
activePane: null
|
|
|
|
class Pane
|
|
panes: []
|
|
window: null
|
|
activeSubPane: null
|
|
|
|
class Document
|
|
window: null
|
|
|
|
class Plugin
|
|
window: null
|
|
|