I'd like to better understand what causes bottom-to-top window
relationships, previous-to-next window relationships, and the restrictions
thereof.

Are the following statements true?

   1. Every running app comprises one or more AppWindow instances.
   2. A running app can open [currently only one?] child window via
   "window.open()".
      - (does this differ from privileged-to-certified-to-browser windows?)
      3. A running app's AppWindows are part of a doubly-linked list,
   apparently in LRU order:
   - AppWindow.getBottomMostWindow() points to the least-recently-used
      appwindow of this app.
      - AppWindow.getTopMostWindow() points to the most-recently-used
      appwindow of this app.
   4. They are also doubly-linked in order of parent-child relationships,
   if applicable:
   - AppWindow.getPrev() returns the window that *created* this window, if
      it was created with window.open().
      - AppWindow.getNext() returns the *only-one-allowable* child window.
      - The "root window" is the first in this doubly-linked list.
      5. AppWindowManager and StackManager only track references to the
   root AppWindow.
   6. Independent browser windows each appear as separate "root" AppWindows.

Could someone point me to, or explain, a summary of the current
hierarchical model (and proposed/incoming changes to this model, if
applicable)?

I haven't been involved with system work until recently, but I know this
has been discussed before in relation to NGA; the only references I could
find to current/desired window management are in the dev-gaia "Multiple
Windows" discussion [1] and MDN's "Window Management"[2] doc which only
glosses over the hierarchy. The NGA proposal[3] doesn't really cover this
in depth. I've browsed through the System code but I'm not sure what's
intended vs. legacy.


Marcus


[1]
https://groups.google.com/d/topic/mozilla.dev.gaia/uvK0x3nL_Tw/discussion
[2]
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Platform/Gaia/Gaia_apps/Window_Management#Child_window_management
[3] https://wiki.mozilla.org/Gaia/Architecture_Proposal
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to