Closed
Bug 606520
Opened 14 years ago
Closed 10 years ago
Add an exit full screen option to the system menu
Categories
(Core :: Widget: Win32, defect)
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: jimm, Assigned: u518207, Mentored)
References
Details
(Whiteboard: [good first bug][lang=c++])
Attachments
(1 file, 3 obsolete files)
1.96 KB,
patch
|
u518207
:
review+
|
Details | Diff | Splinter Review |
Bug 580599 allows us to customize this menu, so it would be neat if we could add an option for exiting full screen.
Reporter | ||
Updated•10 years ago
|
Mentor: jmathies
Whiteboard: [good first bug][lang=c++]
Hi, I would like to patch this bug. Please assist me how to go forward as I'm new to this.
Hi, I would like to patch this bug. I am new to bug patching, so please guide me through the process.
Reporter | ||
Comment 3•10 years ago
|
||
Who ever takes this is free to work on it, since we have two requesters here. We create our context menu manually based on user input - http://mxr.mozilla.org/mozilla-central/source/widget/windows/nsWindow.cpp#4277 When in fullscreen, it would be great if we could add an exit fullscren option. We'll need to investigate if this is even possible first and implement if we have a way forward.
Also we need to make change in file "http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/BrowserApp.java#175" for context menu. So, can you guide how to forward with this context thing. Thanks!!
Reporter | ||
Comment 6•10 years ago
|
||
(In reply to manu.jain13 from comment #4) > Jim, Can you tell what SC_RESTORE is used for? Thanks!! Google is your friend :) http://msdn.microsoft.com/en-us/library/windows/desktop/ms646360%28v=vs.85%29.aspx (In reply to manu.jain13 from comment #5) > Also we need to make change in file > "http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/ > BrowserApp.java#175" for context menu. So, can you guide how to forward with > this context thing. Thanks!! Why don't we concentrate on just fixing the Windows context menu here? I'm not even sure they need this in other browsers other than desktop.
I think SC_RESTORE can also work as exit fullscreen, as it restores the window to normal size. Also, can you tell how to reproduce the bug? Thanks!!
Hi. I read about this bug and found it interesting. I just modified the code and checked whether the result was correct. No testing was performed, except the one mentioned above. Regards.
Attachment #8492636 -
Flags: review?(jmathies)
Attachment #8492636 -
Attachment is obsolete: true
Attachment #8492636 -
Attachment is patch: false
Attachment #8492636 -
Flags: review?(jmathies)
The previous fix report wasn't formatted as needed. Modification info was added using automatic tool.
Attachment #8492748 -
Flags: review?(jmathies)
Reporter | ||
Comment 10•10 years ago
|
||
Comment on attachment 8492748 [details] [diff] [review] 606520.patch Review of attachment 8492748 [details] [diff] [review]: ----------------------------------------------------------------- This works great, thanks! ::: widget/windows/nsWindow.cpp @@ +5247,5 @@ > + > + if (mSizeMode == nsSizeMode_Fullscreen && filteredWParam == SC_RESTORE) { > + MakeFullScreen(false); > + result = true; > + } Some white space or tabs snuck in here, please clean this formatting up. You can check white space in visual studio using the Edit -> Advanced -> Show whitespace option.
Attachment #8492748 -
Flags: review?(jmathies) → review+
Reporter | ||
Updated•10 years ago
|
Assignee: nobody → mycoolclub
Attachment #8492748 -
Attachment is obsolete: true
Reporter | ||
Comment 12•10 years ago
|
||
(In reply to mycoolclub from comment #11) > Created attachment 8494402 [details] [diff] [review] > 606520-indents_corrected.patch > > Indents corrected. Thanks. Would you also please update the commit message with a more accurate description of the bug, plus the review? Something like: "Bug 606520 - Add support for exiting fullscreen via the Windows command menu. r=jimm"
Attachment #8494402 -
Attachment is obsolete: true
Assignee | ||
Comment 13•10 years ago
|
||
I signed patch to be checked in, because I am not familiar with the procedure.
Attachment #8494422 -
Flags: review+
Attachment #8494422 -
Flags: checkin?
Reporter | ||
Comment 14•10 years ago
|
||
Comment on attachment 8494422 [details] [diff] [review] 606520.patch don't think we use this flag anymore.
Attachment #8494422 -
Flags: checkin?
Reporter | ||
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 15•10 years ago
|
||
Thanks.
Comment 16•10 years ago
|
||
Can we run this through Try first please to make sure there aren't any hidden surprises lurking :)? A Windows build + mochitests should suffice.
Keywords: checkin-needed
Assignee | ||
Comment 17•10 years ago
|
||
Ok, you mean the whole mochitest or some partial one with parameter(s); with only this single patch active?
Reporter | ||
Comment 18•10 years ago
|
||
we don't have any tests for the system menu.
Reporter | ||
Comment 19•10 years ago
|
||
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=fb9ebeb5cc55
Reporter | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 20•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f5bb15cbc8e7
Keywords: checkin-needed
Comment 21•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f5bb15cbc8e7
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Reporter | ||
Comment 22•10 years ago
|
||
Woot, thanks mycoolclub@yahoo.com!
Assignee | ||
Comment 23•10 years ago
|
||
My pleasure.
You need to log in
before you can comment on or make changes to this bug.
Description
•