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

Issue 8273040: Minimum size for aura window (Closed)

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

Description

Minimum size for aura window Update restore bounds when SetBounds is called in Fullscreen/Maximized mode. EventGenerator to generate fake events for various mouse operatings. BUG=none TEST=added test case for SetBounds in fullscreen/maximized mode. Added ToplevelWindow test that tests various toplevel operations. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105882

Patch Set 1 #

Patch Set 2 : " #

Total comments: 18

Patch Set 3 : not ready for review yet #

Patch Set 4 : addressed comment, add tests #

Total comments: 18

Patch Set 5 : addressed comments. moved&merged tests #

Total comments: 8

Patch Set 6 : " #

Patch Set 7 : addressd comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -53 lines) Patch
M ui/aura/aura.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A ui/aura/test/event_generator.h View 1 2 3 4 5 6 1 chunk +82 lines, -0 lines 0 comments Download
A ui/aura/test/event_generator.cc View 1 2 3 4 6 1 chunk +107 lines, -0 lines 0 comments Download
M ui/aura/test/test_window_delegate.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/toplevel_window_event_filter.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/toplevel_window_event_filter.cc View 1 2 3 4 5 6 3 chunks +23 lines, -6 lines 0 comments Download
M ui/aura/toplevel_window_event_filter_unittest.cc View 1 2 3 4 5 6 4 chunks +47 lines, -10 lines 0 comments Download
M ui/aura/window.h View 1 2 3 4 5 6 3 chunks +13 lines, -0 lines 0 comments Download
M ui/aura/window.cc View 1 2 3 4 5 6 3 chunks +25 lines, -17 lines 0 comments Download
M ui/aura/window_unittest.cc View 1 2 3 4 5 6 10 chunks +78 lines, -13 lines 0 comments Download
M ui/gfx/point.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M views/widget/native_widget_aura.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M views/widget/widget.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M views/widget/widget.cc View 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
oshima
This will fix a crash when you resize window to negative size. I'm not 100% ...
9 years, 2 months ago (2011-10-14 15:17:05 UTC) #1
Ben Goodger (Google)
http://codereview.chromium.org/8273040/diff/1018/ui/aura/toplevel_window_event_filter.cc File ui/aura/toplevel_window_event_filter.cc (right): http://codereview.chromium.org/8273040/diff/1018/ui/aura/toplevel_window_event_filter.cc#newcode241 ui/aura/toplevel_window_event_filter.cc:241: y_multiplier * (first_y - second_y) : 0); insert a ...
9 years, 2 months ago (2011-10-14 15:40:04 UTC) #2
oshima
Uploaded new path. PTAL. I added EventGenerator to generate fake events and used in the ...
9 years, 2 months ago (2011-10-15 02:10:49 UTC) #3
Ben Goodger (Google)
http://codereview.chromium.org/8273040/diff/14001/ui/aura/test/event_generator.h File ui/aura/test/event_generator.h (right): http://codereview.chromium.org/8273040/diff/14001/ui/aura/test/event_generator.h#newcode18 ui/aura/test/event_generator.h:18: // various mouse operations. EventGenerator is a tool that ...
9 years, 2 months ago (2011-10-15 05:36:30 UTC) #4
oshima
addressed comments, deleted&merged tests. PTAL http://codereview.chromium.org/8273040/diff/14001/ui/aura/test/event_generator.h File ui/aura/test/event_generator.h (right): http://codereview.chromium.org/8273040/diff/14001/ui/aura/test/event_generator.h#newcode18 ui/aura/test/event_generator.h:18: // various mouse operations. ...
9 years, 2 months ago (2011-10-15 17:47:05 UTC) #5
Ben Goodger (Google)
LGTM http://codereview.chromium.org/8273040/diff/4003/ui/aura/test/event_generator.h File ui/aura/test/event_generator.h (right): http://codereview.chromium.org/8273040/diff/4003/ui/aura/test/event_generator.h#newcode28 ui/aura/test/event_generator.h:28: // Creates an EventGenerator with the mouse location ...
9 years, 2 months ago (2011-10-16 22:23:33 UTC) #6
oshima
9 years, 2 months ago (2011-10-17 19:30:57 UTC) #7
http://codereview.chromium.org/8273040/diff/4003/ui/aura/test/event_generator.h
File ui/aura/test/event_generator.h (right):

http://codereview.chromium.org/8273040/diff/4003/ui/aura/test/event_generator...
ui/aura/test/event_generator.h:28: // Creates an EventGenerator with the mouse
location centered at |window|.
On 2011/10/16 22:23:33, Ben Goodger (Google) wrote:
> centered over |window|.

Done.

http://codereview.chromium.org/8273040/diff/4003/ui/aura/test/event_generator...
ui/aura/test/event_generator.h:75: };
On 2011/10/16 22:23:33, Ben Goodger (Google) wrote:
> DISALLOW_COPY_AND_ASSIGN

Done.

http://codereview.chromium.org/8273040/diff/4003/ui/aura/toplevel_window_even...
File ui/aura/toplevel_window_event_filter.cc (right):

http://codereview.chromium.org/8273040/diff/4003/ui/aura/toplevel_window_even...
ui/aura/toplevel_window_event_filter.cc:135: case ui::ET_MOUSE_PRESSED:
On 2011/10/16 22:23:33, Ben Goodger (Google) wrote:
> Add this comment above this line:
> 
> We also update the current window component here because for the
> mouse-drag-release case, where the mouse is released over a different window
but
> there is no mouse move event.

This happens when mouse is released and then pressed without move. Updated and
added comment.

http://codereview.chromium.org/8273040/diff/4003/ui/aura/toplevel_window_even...
File ui/aura/toplevel_window_event_filter_unittest.cc (right):

http://codereview.chromium.org/8273040/diff/4003/ui/aura/toplevel_window_even...
ui/aura/toplevel_window_event_filter_unittest.cc:72:
generator.MoveMouseToCenterOf(window);
On 2011/10/16 22:23:33, Ben Goodger (Google) wrote:
> Can't you replace this with:
> 
> EventGenerator generator(window);

It's slightly different because it doesn't generate
move event, but test should pass with or without, so it's done.

Powered by Google App Engine
This is Rietveld 408576698