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

Issue 668513003: Selecting an app window from the overview mode maximizes the window only if it's maximizable (Closed)

Created:
6 years, 2 months ago by afakhry
Modified:
6 years, 1 month ago
Reviewers:
oshima
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Jun Mukai
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Athena AppActivities should open maximized unless they specify otherwise. Selecting an app window from the overview mode maximizes the window only if it's maximizable. A change proposal to fix the below 2 bugs: - crbug.com/424710 - crbug.com/424708 R=oshima@chromium.org BUG=424710, 424708 TEST=Manual & athena_unittests @ OnSelectWindow Committed: https://crrev.com/63a5975ca272b44c8209055f38605e6598b6142d Cr-Commit-Position: refs/heads/master@{#301438}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Changed the previous fix according to suggested review #

Total comments: 18

Patch Set 3 : Acknowledging the code review and fixing other relevant bugs related to the fix and split mode. #

Total comments: 11

Patch Set 4 : Made the suggested changes and fixed the test #

Patch Set 5 : Now using IsWindowInList. #

Total comments: 11

Patch Set 6 : Following the review comments #

Total comments: 2

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -6 lines) Patch
M athena/activity/activity_widget_delegate.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M athena/activity/activity_widget_delegate.cc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M athena/wm/window_manager_impl.cc View 1 2 3 4 5 6 7 5 chunks +29 lines, -5 lines 0 comments Download
M athena/wm/window_manager_unittest.cc View 1 2 3 4 5 4 chunks +66 lines, -1 line 0 comments Download

Messages

Total messages: 23 (3 generated)
afakhry
6 years, 2 months ago (2014-10-22 02:19:42 UTC) #1
oshima
please update BUG= in the description, and add unittest for 424710. https://codereview.chromium.org/668513003/diff/1/athena/extensions/athena_native_app_window_views.cc File athena/extensions/athena_native_app_window_views.cc (right): ...
6 years, 2 months ago (2014-10-22 20:03:21 UTC) #4
afakhry
The second iteration of the patch
6 years, 2 months ago (2014-10-23 00:26:16 UTC) #5
afakhry
Updating description
6 years, 2 months ago (2014-10-23 00:32:41 UTC) #6
oshima
https://codereview.chromium.org/668513003/diff/20001/athena/wm/window_manager_impl.cc File athena/wm/window_manager_impl.cc (right): https://codereview.chromium.org/668513003/diff/20001/athena/wm/window_manager_impl.cc#newcode50 athena/wm/window_manager_impl.cc:50: delegate ? delegate->GetMaximumSize().IsEmpty() : true; nit: how about bool ...
6 years, 2 months ago (2014-10-23 01:05:46 UTC) #7
afakhry
https://codereview.chromium.org/668513003/diff/20001/athena/wm/window_manager_impl.cc File athena/wm/window_manager_impl.cc (right): https://codereview.chromium.org/668513003/diff/20001/athena/wm/window_manager_impl.cc#newcode50 athena/wm/window_manager_impl.cc:50: delegate ? delegate->GetMaximumSize().IsEmpty() : true; On 2014/10/23 01:05:46, oshima ...
6 years, 2 months ago (2014-10-24 02:09:45 UTC) #8
oshima
you should use "Done" when you addressed the comment. Ack for reviewers. https://codereview.chromium.org/668513003/diff/40001/athena/wm/window_manager_impl.cc File athena/wm/window_manager_impl.cc ...
6 years, 2 months ago (2014-10-24 18:39:56 UTC) #9
oshima
https://codereview.chromium.org/668513003/diff/40001/athena/wm/window_manager_impl.cc File athena/wm/window_manager_impl.cc (right): https://codereview.chromium.org/668513003/diff/40001/athena/wm/window_manager_impl.cc#newcode167 athena/wm/window_manager_impl.cc:167: } On 2014/10/24 18:39:56, oshima wrote: > Can you ...
6 years, 2 months ago (2014-10-24 21:37:28 UTC) #10
afakhry
https://codereview.chromium.org/668513003/diff/40001/athena/wm/window_manager_impl.cc File athena/wm/window_manager_impl.cc (right): https://codereview.chromium.org/668513003/diff/40001/athena/wm/window_manager_impl.cc#newcode52 athena/wm/window_manager_impl.cc:52: window->GetProperty(aura::client::kCanResizeKey)); On 2014/10/24 18:39:55, oshima wrote: > nit: we ...
6 years, 2 months ago (2014-10-25 00:35:08 UTC) #11
oshima
https://codereview.chromium.org/668513003/diff/80001/athena/wm/window_manager_unittest.cc File athena/wm/window_manager_unittest.cc (right): https://codereview.chromium.org/668513003/diff/80001/athena/wm/window_manager_unittest.cc#newcode396 athena/wm/window_manager_unittest.cc:396: w2->SetProperty(aura::client::kCanMaximizeKey, true); you can set this in CreateAndActivateWindow https://codereview.chromium.org/668513003/diff/80001/athena/wm/window_manager_unittest.cc#newcode418 ...
6 years, 2 months ago (2014-10-25 01:35:43 UTC) #12
afakhry
https://codereview.chromium.org/668513003/diff/80001/athena/wm/window_manager_unittest.cc File athena/wm/window_manager_unittest.cc (right): https://codereview.chromium.org/668513003/diff/80001/athena/wm/window_manager_unittest.cc#newcode396 athena/wm/window_manager_unittest.cc:396: w2->SetProperty(aura::client::kCanMaximizeKey, true); On 2014/10/25 01:35:43, oshima wrote: > you ...
6 years, 1 month ago (2014-10-27 16:10:06 UTC) #13
oshima
https://codereview.chromium.org/668513003/diff/80001/athena/wm/window_manager_unittest.cc File athena/wm/window_manager_unittest.cc (right): https://codereview.chromium.org/668513003/diff/80001/athena/wm/window_manager_unittest.cc#newcode418 athena/wm/window_manager_unittest.cc:418: w1->Show(); On 2014/10/27 16:10:05, afakhry wrote: > On 2014/10/25 ...
6 years, 1 month ago (2014-10-27 18:20:53 UTC) #14
afakhry
https://codereview.chromium.org/668513003/diff/80001/athena/wm/window_manager_unittest.cc File athena/wm/window_manager_unittest.cc (right): https://codereview.chromium.org/668513003/diff/80001/athena/wm/window_manager_unittest.cc#newcode418 athena/wm/window_manager_unittest.cc:418: w1->Show(); On 2014/10/27 18:20:53, oshima wrote: > On 2014/10/27 ...
6 years, 1 month ago (2014-10-27 18:57:24 UTC) #15
oshima
https://codereview.chromium.org/668513003/diff/100001/athena/activity/activity_widget_delegate.h File athena/activity/activity_widget_delegate.h (right): https://codereview.chromium.org/668513003/diff/100001/athena/activity/activity_widget_delegate.h#newcode31 athena/activity/activity_widget_delegate.h:31: // Returns true if the window can be resized. ...
6 years, 1 month ago (2014-10-27 19:12:28 UTC) #16
afakhry
https://codereview.chromium.org/668513003/diff/100001/athena/activity/activity_widget_delegate.h File athena/activity/activity_widget_delegate.h (right): https://codereview.chromium.org/668513003/diff/100001/athena/activity/activity_widget_delegate.h#newcode31 athena/activity/activity_widget_delegate.h:31: // Returns true if the window can be resized. ...
6 years, 1 month ago (2014-10-27 19:20:57 UTC) #17
oshima
lgtm https://codereview.chromium.org/668513003/diff/120001/athena/wm/window_manager_impl.cc File athena/wm/window_manager_impl.cc (right): https://codereview.chromium.org/668513003/diff/120001/athena/wm/window_manager_impl.cc#newcode109 athena/wm/window_manager_impl.cc:109: window->SetBounds(gfx::Rect(work_area)); nit: you need {} in this case.
6 years, 1 month ago (2014-10-27 19:41:14 UTC) #18
afakhry
https://codereview.chromium.org/668513003/diff/120001/athena/wm/window_manager_impl.cc File athena/wm/window_manager_impl.cc (right): https://codereview.chromium.org/668513003/diff/120001/athena/wm/window_manager_impl.cc#newcode109 athena/wm/window_manager_impl.cc:109: window->SetBounds(gfx::Rect(work_area)); On 2014/10/27 19:41:13, oshima wrote: > nit: you ...
6 years, 1 month ago (2014-10-27 19:50:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/668513003/140001
6 years, 1 month ago (2014-10-27 19:59:53 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years, 1 month ago (2014-10-27 20:55:39 UTC) #22
commit-bot: I haz the power
6 years, 1 month ago (2014-10-27 20:56:04 UTC) #23
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/63a5975ca272b44c8209055f38605e6598b6142d
Cr-Commit-Position: refs/heads/master@{#301438}

Powered by Google App Engine
This is Rietveld 408576698