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

Issue 1157843009: Added wm::IsWindowUserPositionable(...) method in window_util.h. (Closed)

Created:
5 years, 6 months ago by bruthig
Modified:
5 years, 6 months ago
Reviewers:
oshima
CC:
chromium-reviews, tdanderson+overview_chromium.org, kalyank, sadrul, dcheng, oshima
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added wm::IsWindowUserPositionable(...) method in window_util.h. Many places in ash were checking that window types were NORMAL or PANEL. The wm::IsWindowUserPositionable(...) encapsulates this check. BUG=None Committed: https://crrev.com/b7056f63218b3ceb0301278334b8b8c203c6a3f0 Cr-Commit-Position: refs/heads/master@{#332907}

Patch Set 1 #

Patch Set 2 : Added WindowState::IsUserPositionable() method. #

Total comments: 6

Patch Set 3 : Updated callsites to use WindowState::IsUserPositionable(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -16 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M ash/root_window_controller.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ash/shell/window_watcher.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/default_state.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M ash/wm/drag_window_resizer.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M ash/wm/overview/window_selector.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/window_state.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/window_state.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ash/wm/window_util.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/window_util.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
bruthig
oshima@, can you please have a look? - */*
5 years, 6 months ago (2015-06-03 16:45:09 UTC) #2
oshima
nice. one request. Would you mind adding method to WindowState::IsUserPositionable, and let wm::IsWindowPositionable uses this ...
5 years, 6 months ago (2015-06-04 18:11:41 UTC) #3
bruthig
oshima@, can you take another look?
5 years, 6 months ago (2015-06-04 19:10:56 UTC) #4
oshima
lgtm with nits https://codereview.chromium.org/1157843009/diff/20001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/1157843009/diff/20001/ash/accelerators/accelerator_controller.cc#newcode468 ash/accelerators/accelerator_controller.cc:468: wm::IsWindowUserPositionable(window_state->window()) && window_state->IsUserPositionable() ? https://codereview.chromium.org/1157843009/diff/20001/ash/wm/default_state.cc File ...
5 years, 6 months ago (2015-06-04 19:49:12 UTC) #5
bruthig
Updated call sites to use WindowState::IsUserPositionable(). No need to review. https://codereview.chromium.org/1157843009/diff/20001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/1157843009/diff/20001/ash/accelerators/accelerator_controller.cc#newcode468 ...
5 years, 6 months ago (2015-06-04 19:56:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1157843009/40001
5 years, 6 months ago (2015-06-04 19:58:15 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 6 months ago (2015-06-04 21:05:01 UTC) #10
commit-bot: I haz the power
5 years, 6 months ago (2015-06-04 21:05:54 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b7056f63218b3ceb0301278334b8b8c203c6a3f0
Cr-Commit-Position: refs/heads/master@{#332907}

Powered by Google App Engine
This is Rietveld 408576698