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

Issue 8202026: views: Some more layer change, and add/update some tests for layers. (Closed)

Created:
9 years, 2 months ago by sadrul
Modified:
9 years, 2 months ago
CC:
chromium-reviews, tfarina, dhollowa, Paweł Hajdan Jr.
Visibility:
Public.

Description

views: Some more layer change, and add/update some tests for layers. Hide the RootView's layer when a Widget is hidden. Call OnNativeWidgetVisibilityChanged on NativeWidgetGtk's hide/show callbacks. The tests: . Make sure Layer bounds change with a View even if it's not visible. . Make sure Layer visibility is updated with a View's visibility. . Make sure Layers get unparented properly when a View is removed from the parent view. BUG=none TEST=views_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104846

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 3

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 1

Patch Set 8 : . #

Total comments: 2

Patch Set 9 : . #

Patch Set 10 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -29 lines) Patch
M ui/aura/demo/demo_main.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/test_window_delegate.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/test_window_delegate.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/window.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 2 comments Download
M ui/aura/window_delegate.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/window_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +37 lines, -1 line 0 comments Download
M views/aura_desktop/aura_desktop_main.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M views/controls/native_control_gtk.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -9 lines 0 comments Download
M views/view_unittest.cc View 1 2 4 chunks +68 lines, -6 lines 0 comments Download
M views/widget/native_widget_aura.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M views/widget/native_widget_aura.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M views/widget/native_widget_gtk.cc View 1 2 3 4 4 chunks +2 lines, -11 lines 0 comments Download
M views/widget/widget.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
sadrul
@oshima: Please review the change in native_control_gtk.cc. I tested FindInPageControllerTest.AcceleratorRestoring locally, and it passes with ...
9 years, 2 months ago (2011-10-08 23:21:08 UTC) #1
Ben Goodger (Google)
Does this code get called properly from the other platforms' NativeWidgets too? http://codereview.chromium.org/8202026/diff/6001/views/widget/widget.cc File views/widget/widget.cc ...
9 years, 2 months ago (2011-10-09 20:03:51 UTC) #2
sadrul
NativeWidgetWin and NativeWidgetView do call OnNativeWidgetVisibilityChanged. However, NativeWidgetAura does not. Perhaps aura::WindowDelegate should have OnVisibilityChanged ...
9 years, 2 months ago (2011-10-10 00:02:17 UTC) #3
Ben Goodger (Google)
On Sun, Oct 9, 2011 at 5:02 PM, <sadrul@chromium.org> wrote: > NativeWidgetWin and NativeWidgetView do ...
9 years, 2 months ago (2011-10-10 01:23:07 UTC) #4
sadrul
On 2011/10/10 01:23:07, Ben Goodger (Google) wrote: > On Sun, Oct 9, 2011 at 5:02 ...
9 years, 2 months ago (2011-10-10 05:49:52 UTC) #5
Ben Goodger (Google)
Cool thanks. On Sun, Oct 9, 2011 at 10:49 PM, <sadrul@chromium.org> wrote: > On 2011/10/10 ...
9 years, 2 months ago (2011-10-10 06:23:10 UTC) #6
oshima
http://codereview.chromium.org/8202026/diff/9002/views/controls/native_control_gtk.cc File views/controls/native_control_gtk.cc (right): http://codereview.chromium.org/8202026/diff/9002/views/controls/native_control_gtk.cc#newcode176 views/controls/native_control_gtk.cc:176: return; I first thought this isn't correct (because you ...
9 years, 2 months ago (2011-10-10 08:10:09 UTC) #7
sky
Since Ben reviewed this one, don't wait for me. -Scott On Mon, Oct 10, 2011 ...
9 years, 2 months ago (2011-10-10 15:47:44 UTC) #8
oshima
http://codereview.chromium.org/8202026/diff/11006/views/controls/native_control_gtk.cc File views/controls/native_control_gtk.cc (right): http://codereview.chromium.org/8202026/diff/11006/views/controls/native_control_gtk.cc#newcode176 views/controls/native_control_gtk.cc:176: return; I discussed this with dave and we concluded ...
9 years, 2 months ago (2011-10-10 20:48:43 UTC) #9
sadrul
http://codereview.chromium.org/8202026/diff/11006/views/controls/native_control_gtk.cc File views/controls/native_control_gtk.cc (right): http://codereview.chromium.org/8202026/diff/11006/views/controls/native_control_gtk.cc#newcode176 views/controls/native_control_gtk.cc:176: return; On 2011/10/10 20:48:43, oshima wrote: > I discussed ...
9 years, 2 months ago (2011-10-10 22:29:58 UTC) #10
Ben Goodger (Google)
Add a test for OnWindowVisibilityChanged?
9 years, 2 months ago (2011-10-10 22:38:31 UTC) #11
sadrul
On 2011/10/10 22:38:31, Ben Goodger (Google) wrote: > Add a test for OnWindowVisibilityChanged? Updated the ...
9 years, 2 months ago (2011-10-11 00:05:33 UTC) #12
oshima
cool. thank you for the change. one question. http://codereview.chromium.org/8202026/diff/12010/ui/aura/window.cc File ui/aura/window.cc (right): http://codereview.chromium.org/8202026/diff/12010/ui/aura/window.cc#newcode373 ui/aura/window.cc:373: delegate_->OnWindowVisibilityChanged(is_visible); ...
9 years, 2 months ago (2011-10-11 00:52:19 UTC) #13
sadrul
http://codereview.chromium.org/8202026/diff/12010/ui/aura/window.cc File ui/aura/window.cc (right): http://codereview.chromium.org/8202026/diff/12010/ui/aura/window.cc#newcode373 ui/aura/window.cc:373: delegate_->OnWindowVisibilityChanged(is_visible); On 2011/10/11 00:52:19, oshima wrote: > how child ...
9 years, 2 months ago (2011-10-11 01:03:18 UTC) #14
oshima
native control bits LGTM On 2011/10/11 01:03:18, sadrul wrote: > http://codereview.chromium.org/8202026/diff/12010/ui/aura/window.cc > File ui/aura/window.cc (right): ...
9 years, 2 months ago (2011-10-11 03:18:03 UTC) #15
Ben Goodger (Google)
9 years, 2 months ago (2011-10-11 03:19:55 UTC) #16
lgtm

Powered by Google App Engine
This is Rietveld 408576698