Closed
Bug 1040598
Opened 11 years ago
Closed 11 years ago
Move keyboard states out of keyboard.js
Categories
(Firefox OS Graveyard :: Gaia::Keyboard, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.1 S2 (15aug)
People
(Reporter: timdream, Assigned: timdream)
References
Details
(Whiteboard: [p=5])
Attachments
(1 file)
With bug 1035062, the keyboard.js now contains 600 lines and mostly are logic involving starting the app and loading/switch between different layout and im engines.
The keyboard show/hide state would need yet another manager module, and LayoutManager and InputMethodManager can bear more responsibilities on loading layout/IMEngine. I am not sure about the line to drawn though.
This bug ideally should make keyboard.js contains fewer than 10 lines, basically just
window.app = new KeyboardApp(); app.start();
If the patch turned out to be too big we can always clone another bug and follow-up.
Assignee | ||
Comment 1•11 years ago
|
||
With bug 1041411, the requirement of this bug need to updated to simply removing keyboard.js, since the bootstrap part has moved to it's own script too.
Assignee | ||
Comment 2•11 years ago
|
||
Upon looking into the code a bit, I realized it make more sense for me to take this bug and finish what I have started.
The plan now is to create a StateManager and a LayoutRenderingManager to finally move all non-trivial logic to where they belong, and delete the file.
Assignee: nobody → timdream
Status: NEW → ASSIGNED
Whiteboard: [p=5]
Assignee | ||
Updated•11 years ago
|
Target Milestone: --- → 2.1 S1 (1aug)
Assignee | ||
Updated•11 years ago
|
Target Milestone: 2.1 S1 (1aug) → 2.1 S2 (15aug)
Assignee | ||
Comment 3•11 years ago
|
||
I will be able to submit for review today or tomorrow once all unit tests are written.
Assignee | ||
Comment 4•11 years ago
|
||
The patch happen to overlap with what Rudy is doing in bug 1020779, so this should wait.
Depends on: 1020779
Assignee | ||
Comment 5•11 years ago
|
||
This patch removes keyboard.js for good with it's remaining responsibility moved to StateManager, LayoutRenderingManager, and elsewhere.
Attachment #8464474 -
Flags: review?(rlu)
Assignee | ||
Updated•11 years ago
|
Comment 6•11 years ago
|
||
Comment on attachment 8464474 [details] [review]
Github: https://github.com/mozilla-b2g/gaia/pull/22291
This looks pretty good to me with only some nits.
r=me.
Thank you.
Attachment #8464474 -
Flags: review?(rlu) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 8•11 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•