Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Issue 577018: Support app menu and double-click close on upper left corner of window, part ... (Closed)

Created:
10 years, 10 months ago by Peter Kasting
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Support app menu and double-click close on upper left corner of window, part one. This makes things work right for windows that have an icon. The behavior of the main window is unchanged because right now it never returns HTSYSMENU anywhere. Part two of this change will be figuring out how to return that at the right place, which will make things Just Work. BUG=6961 TEST=Open an app or popup window. Single click the icon. The app menu should appear. Close it, then click-and-drag into the app menu. The item you release on should execute. Double-click the icon. The window should close. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=38187

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -192 lines) Patch
M chrome/browser/chromeos/login/login_wizard_view.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/views/constrained_window_win.cc View 3 chunks +1 line, -11 lines 0 comments Download
M chrome/browser/views/frame/app_panel_browser_frame_view.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/views/frame/app_panel_browser_frame_view.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/views/frame/browser_frame_gtk.cc View 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/views/frame/glass_browser_frame_view.h View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/views/frame/glass_browser_frame_view.cc View 2 chunks +1 line, -21 lines 0 comments Download
M chrome/browser/views/frame/opaque_browser_frame_view.h View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/views/frame/opaque_browser_frame_view.cc View 2 chunks +1 line, -10 lines 0 comments Download
M views/window/custom_frame_view.h View 2 chunks +1 line, -2 lines 0 comments Download
M views/window/custom_frame_view.cc View 2 chunks +1 line, -9 lines 0 comments Download
M views/window/native_frame_view.h View 2 chunks +1 line, -2 lines 0 comments Download
M views/window/native_frame_view.cc View 2 chunks +1 line, -7 lines 0 comments Download
M views/window/non_client_view.h View 3 chunks +1 line, -6 lines 0 comments Download
M views/window/non_client_view.cc View 2 chunks +1 line, -5 lines 0 comments Download
M views/window/window_win.h View 4 chunks +1 line, -12 lines 0 comments Download
M views/window/window_win.cc View 6 chunks +18 lines, -85 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
Peter Kasting
10 years, 10 months ago (2010-02-05 03:11:27 UTC) #1
Ben Goodger (Google)
LGTM, just a question for my information. http://codereview.chromium.org/577018/diff/1/6 File views/window/window_win.cc (right): http://codereview.chromium.org/577018/diff/1/6#newcode994 views/window/window_win.cc:994: ExecuteSystemMenuCommand(id); This ...
10 years, 10 months ago (2010-02-05 03:27:25 UTC) #2
Peter Kasting
http://codereview.chromium.org/577018/diff/1/6 File views/window/window_win.cc (right): http://codereview.chromium.org/577018/diff/1/6#newcode994 views/window/window_win.cc:994: ExecuteSystemMenuCommand(id); On 2010/02/05 03:27:25, Ben Goodger wrote: > This ...
10 years, 10 months ago (2010-02-05 05:01:06 UTC) #3
Ben Goodger (Google)
OK. Sad that we still have to call TPM. -Ben On Thu, Feb 4, 2010 ...
10 years, 10 months ago (2010-02-05 05:15:53 UTC) #4
Finnur
9 years, 10 months ago (2011-02-16 15:34:31 UTC) #5
I suspect this CL of causing this regression:
http://code.google.com/p/chromium/issues/detail?id=73158

On 2010/02/05 05:15:53, Ben Goodger wrote:
> OK. Sad that we still have to call TPM.
> 
> -Ben
> 
> On Thu, Feb 4, 2010 at 9:01 PM,  <mailto:pkasting@chromium.org> wrote:
> >
> > http://codereview.chromium.org/577018/diff/1/6
> > File views/window/window_win.cc (right):
> >
> > http://codereview.chromium.org/577018/diff/1/6#newcode994
> > views/window/window_win.cc:994: ExecuteSystemMenuCommand(id);
> > On 2010/02/05 03:27:25, Ben Goodger wrote:
> >>
> >> This is all because we called SetCapture right? i.e. if we didn't call
> >> SetCapture there would be default handling for WM_NCRBUTTONUP that'd
> >
> > do this for
> >>
> >> us?
> >
> > Sadly, no. &nbsp;I tried this, and then I tried making WM_NCRBUTTONUP fire
> > WM_CONTEXTMENU, and then I tried SetCapture() and making WM_RBUTTONUP do
> > it, and none worked. &nbsp;The Spy++ info from the Windows Live Photo
Gallery
> > app was very confusing; most of the time it looked like something on
> > their end was doing capture and TrackPopupMenu(), but sometimes it was
> > just WM_CONTEXTMENU. &nbsp;Bizarre. &nbsp;Anyway, this part of the old code
worked
> > fine so I just kept it.
> >
> > http://codereview.chromium.org/577018
> >

Powered by Google App Engine
This is Rietveld 408576698