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

Issue 7970001: Better Z-index support. (Closed)

Created:
9 years, 3 months ago by Ben Goodger (Google)
Modified:
9 years, 3 months ago
Reviewers:
tfarina, oshima
CC:
chromium-reviews, dhollowa
Visibility:
Public.

Description

A bunch of changes related to window z-index: - Keeps toplevel windows constrained in z-index between the desktop background (bottom-most) and the launcher (topmost). - Renames WindowManager to EventFilter, and moves it to the parent Window... i.e. when a window receives a mouse event its parent's event filter will get the opportunity to process it before that window's delegate does. - WindowManager's content was mostly specific to toplevel window movement, so this content moved to an EventFilter subclass called ToplevelEventFilter. - Adds a name property to aura::Windows useful for debugging. - Prevent Windows with no delegate from taking part in event processing. - Initialize the Aura_Shell in DesktopWindow, provide a single exported method - aura_shell::InitDesktopWindow() - to initialize it from the exe main. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=101974

Patch Set 1 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -200 lines) Patch
M ui/aura/aura.gyp View 2 chunks +6 lines, -2 lines 0 comments Download
M ui/aura/desktop.h View 2 chunks +6 lines, -0 lines 1 comment Download
M ui/aura/desktop.cc View 1 chunk +2 lines, -1 line 0 comments Download
A ui/aura/event_filter.h View 1 chunk +40 lines, -0 lines 2 comments Download
A ui/aura/event_filter.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M ui/aura/root_window.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/aura/root_window.cc View 2 chunks +1 line, -4 lines 0 comments Download
A ui/aura/toplevel_window_container.h View 1 chunk +32 lines, -0 lines 0 comments Download
A ui/aura/toplevel_window_container.cc View 1 chunk +26 lines, -0 lines 0 comments Download
A + ui/aura/toplevel_window_event_filter.h View 2 chunks +13 lines, -20 lines 0 comments Download
A + ui/aura/toplevel_window_event_filter.cc View 3 chunks +19 lines, -14 lines 0 comments Download
M ui/aura/window.h View 6 chunks +11 lines, -3 lines 1 comment Download
M ui/aura/window.cc View 6 chunks +24 lines, -12 lines 1 comment Download
D ui/aura/window_manager.h View 1 chunk +0 lines, -47 lines 0 comments Download
D ui/aura/window_manager.cc View 1 chunk +0 lines, -66 lines 0 comments Download
M ui/aura_shell/aura_shell.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura_shell/aura_shell_main.cc View 2 chunks +1 line, -19 lines 0 comments Download
M ui/aura_shell/desktop_background_view.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura_shell/desktop_layout_manager.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/aura_shell/desktop_layout_manager.cc View 1 chunk +5 lines, -2 lines 0 comments Download
A ui/aura_shell/desktop_window.cc View 1 chunk +42 lines, -0 lines 0 comments Download
M ui/aura_shell/launcher/launcher_view.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura_shell/sample_window.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M ui/aura_shell/shell_factory.h View 1 chunk +7 lines, -6 lines 0 comments Download
M ui/aura_shell/status_area_view.cc View 1 chunk +1 line, -0 lines 0 comments Download
M views/widget/native_widget_aura.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Ben Goodger (Google)
Testing forthcoming. I want to get some of the basics scoped out to unblock other ...
9 years, 3 months ago (2011-09-19 23:15:33 UTC) #1
tfarina
http://codereview.chromium.org/7970001/diff/5004/ui/aura/event_filter.h File ui/aura/event_filter.h (right): http://codereview.chromium.org/7970001/diff/5004/ui/aura/event_filter.h#newcode10 ui/aura/event_filter.h:10: #include "ui/gfx/point.h" remove these two unused includes and include ...
9 years, 3 months ago (2011-09-20 02:18:01 UTC) #2
tfarina
http://codereview.chromium.org/7970001/diff/5004/ui/aura/window.h File ui/aura/window.h (right): http://codereview.chromium.org/7970001/diff/5004/ui/aura/window.h#newcode63 ui/aura/window.h:63: string16 name() const { return name_; } const string16& ...
9 years, 3 months ago (2011-09-20 02:19:24 UTC) #3
oshima
LGTM with 2 nits and 1 q. http://codereview.chromium.org/7970001/diff/5004/ui/aura/desktop.h File ui/aura/desktop.h (right): http://codereview.chromium.org/7970001/diff/5004/ui/aura/desktop.h#newcode58 ui/aura/desktop.h:58: Window* toplevel_window_container() ...
9 years, 3 months ago (2011-09-20 05:29:28 UTC) #4
Ben Goodger (Google)
On Mon, Sep 19, 2011 at 10:29 PM, <oshima@chromium.org> wrote: > LGTM with 2 nits ...
9 years, 3 months ago (2011-09-20 17:08:23 UTC) #5
oshima
On Tue, Sep 20, 2011 at 10:08 AM, Ben Goodger (Google) <ben@chromium.org>wrote: > On Mon, ...
9 years, 3 months ago (2011-09-20 17:48:03 UTC) #6
Ben Goodger (Google)
9 years, 3 months ago (2011-09-20 17:55:49 UTC) #7
On Tue, Sep 20, 2011 at 10:47 AM, oshima <oshima@chromium.org> wrote:

> They can't be const because the returned Window object is (necessarily)
>> non-const. Same for the other.
>>
>
> const method can return non const object. Is it banned in chromium?
>
> Not banned so much as not preferred... it violates the "logical const-ness"
of the object. pkasting can give a good rundown on the details :-)

When you want to return a const object we prefer:

const Foo* foo() const { .. }

... but I haven't needed a const getter yet.

Have been incrementally migrating views to this format as well.

-Ben

Powered by Google App Engine
This is Rietveld 408576698