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

Issue 7129033: Adding a new window type for frameless non-transient top level windows, used by ChromeOS' window ... (Closed)

Created:
9 years, 6 months ago by Ben Goodger (Google)
Modified:
9 years, 6 months ago
Reviewers:
Daniel Erat
CC:
chromium-reviews, rharrison, nkostylev+cc_chromium.org, davemoore+watch_chromium.org, dhollowa
Visibility:
Public.

Description

Adding a new window type for frameless non-transient top level windows, used by ChromeOS' window manager. BUG=chromium-os:16323 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88523

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -15 lines) Patch
M chrome/browser/chromeos/frame/panel_controller.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/background_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/screen_locker.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/user_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/user_controller_gtk.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/views_oobe_display.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/webui_login_display.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/notifications/notification_panel.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/panels/panel_scroller.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/browser_bubble_gtk.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bubble/bubble.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M views/widget/native_widget_gtk.cc View 1 2 2 chunks +13 lines, -3 lines 1 comment Download
M views/widget/native_widget_win.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M views/widget/widget.h View 1 1 chunk +2 lines, -0 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
Ben Goodger (Google)
Running this through try now.
9 years, 6 months ago (2011-06-09 03:03:49 UTC) #1
Daniel Erat
LGTM http://codereview.chromium.org/7129033/diff/4023/views/widget/native_widget_gtk.cc File views/widget/native_widget_gtk.cc (right): http://codereview.chromium.org/7129033/diff/4023/views/widget/native_widget_gtk.cc#newcode188 views/widget/native_widget_gtk.cc:188: default: mind changing this to: case Widget::InitParams::TYPE_POPUP: case ...
9 years, 6 months ago (2011-06-09 05:40:22 UTC) #2
Daniel Erat
http://codereview.chromium.org/7129033/diff/4023/views/widget/widget.h File views/widget/widget.h (right): http://codereview.chromium.org/7129033/diff/4023/views/widget/widget.h#newcode97 views/widget/widget.h:97: TYPE_WINDOW_FRAMELESS, On 2011/06/09 05:40:22, Daniel Erat wrote: > Naming ...
9 years, 6 months ago (2011-06-09 11:23:42 UTC) #3
Ben Goodger (Google)
To clarify - what naming strategy did you end up preferring? On Thu, Jun 9, ...
9 years, 6 months ago (2011-06-09 13:13:43 UTC) #4
Daniel Erat
9 years, 6 months ago (2011-06-09 14:35:23 UTC) #5
TYPE_WINDOW_FRAMELESS makes sense to me, assuming that this type is
being used for windows that should still be managed by the WM (perhaps
this concept doesn't map to anything on Windows) but that shouldn't be
decorated.  Is disabling decorations more-or-less what WS_POPUP does?
(http://cboard.cprogramming.com/windows-programming/4937-ws_popup.html
makes it sound like it is.)

On Thu, Jun 9, 2011 at 06:13, Ben Goodger (Google) <ben@chromium.org> wrote:
> To clarify - what naming strategy did you end up preferring?
>
> On Thu, Jun 9, 2011 at 4:23 AM, <derat@chromium.org> wrote:
>>
>> http://codereview.chromium.org/7129033/diff/4023/views/widget/widget.h
>> File views/widget/widget.h (right):
>>
>>
>>
http://codereview.chromium.org/7129033/diff/4023/views/widget/widget.h#newcode97
>> views/widget/widget.h:97: TYPE_WINDOW_FRAMELESS,
>> On 2011/06/09 05:40:22, Daniel Erat wrote:
>>>
>>> Naming suggestion: TYPE_WINDOW_UNMANAGED?  That's much more accurate
>>
>> for X, at
>>>
>>> least (override-redirect windows are never decorated, but it's also
>>
>> possible to
>>>
>>> disable decorations on windows that are still being managed by the
>>
>> window
>>>
>>> manager).
>>
>>> I don't know much about the subtleties of WS_POPUP, and
>>> http://msdn.microsoft.com/en-us/library/ms632600%28v=vs.85%29.aspx is
>>
>> useless.  I'm
>>>
>>> less excited about something like TYPE_WINDOW_FLOATING, but still
>>
>> prefer it to
>>>
>>> _FRAMELESS.
>>
>> Whoops, disregard this, of course.  For some reason, I'm more awake at 4
>> a.m. than I was when I wrote this comment. :-/
>>
>>
>> http://developer.gnome.org/gtk/2.24/GtkWindow.html#gtk-window-set-decorated
>> could be used to get _FRAMELESS to behave as advertised on window
>> managers that typically draw decorations around windows.
>>
>> http://codereview.chromium.org/7129033/
>
>

Powered by Google App Engine
This is Rietveld 408576698