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

Issue 115153002: wm: public window_types. (Closed)

Created:
7 years ago by tfarina
Modified:
6 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, sadrul, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, ben+aura_chromium.org, jam, penghuang+watch_chromium.org, dcheng, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, ben+corewm_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, James Su, ben+views_chromium.org, ben+ash_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

wm: public window_types. Patch manually generated by: $ git grep -l aura::client::WINDOW_TYPE | xargs sed -i -e 's/aura::client::WINDOW_TYPE/ui::wm::WINDOW_TYPE/g' $ git commit -a -m. $ git clang-format HEAD^ --style=Chromium $ git commit -a -m. * Move window_types.h header from ui/aura/client/ to ui/wm/public/ BUG=319638 TEST=ash_unittests, aura_unittests, views_unittests, unit_tests R=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241752

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : fixes #

Patch Set 4 : rebase #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : rebase + fix for root_window_controller.cc #

Patch Set 7 : ozone deps #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -284 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/display/screen_position_controller_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/drag_drop/drag_drop_tracker.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 5 4 chunks +4 lines, -4 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/window_watcher.cc View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M ash/shell/window_watcher_shelf_item_delegate.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/shell_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/test/ash_test_base.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M ash/test/ash_test_base.cc View 1 2 3 4 5 1 chunk +2 lines, -5 lines 0 comments Download
M ash/test/test_shelf_delegate.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/test/test_shelf_item_delegate.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/always_on_top_controller.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager_unittest.cc View 1 2 3 4 6 chunks +9 lines, -11 lines 0 comments Download
M ash/wm/dock/docked_window_resizer.cc View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M ash/wm/dock/docked_window_resizer_unittest.cc View 1 2 3 4 10 chunks +14 lines, -14 lines 0 comments Download
M ash/wm/drag_window_resizer.cc View 1 2 3 4 5 2 chunks +6 lines, -6 lines 0 comments Download
M ash/wm/drag_window_resizer_unittest.cc View 1 2 3 4 5 3 chunks +7 lines, -7 lines 0 comments Download
M ash/wm/gestures/two_finger_drag_handler.cc View 1 2 3 4 4 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/overview/window_selector.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/panels/panel_layout_manager.cc View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
M ash/wm/panels/panel_layout_manager_unittest.cc View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
M ash/wm/panels/panel_window_resizer_unittest.cc View 1 2 3 4 3 chunks +8 lines, -10 lines 0 comments Download
M ash/wm/solo_window_tracker.cc View 1 2 3 4 1 chunk +4 lines, -5 lines 0 comments Download
M ash/wm/solo_window_tracker_unittest.cc View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M ash/wm/stacking_controller.cc View 1 2 3 4 2 chunks +7 lines, -7 lines 0 comments Download
M ash/wm/stacking_controller_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/system_modal_container_layout_manager.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/toplevel_window_event_handler_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/video_detector_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/window_manager_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/window_positioner.cc View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M ash/wm/window_state.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M ash/wm/workspace/multi_window_resize_controller_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/workspace/workspace_event_handler_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/workspace/workspace_layout_manager_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/workspace/workspace_window_resizer.cc View 1 2 3 4 4 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M ash/wm/workspace_controller_unittest.cc View 1 2 3 4 5 chunks +12 lines, -24 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 4 chunks +3 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ui/aura/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/aura.gyp View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
D ui/aura/client/window_types.h View 1 chunk +0 lines, -36 lines 0 comments Download
M ui/aura/test/aura_test_base.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/test/test_windows.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M ui/aura/test/test_windows.cc View 1 2 3 4 1 chunk +2 lines, -6 lines 0 comments Download
M ui/aura/window.h View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M ui/aura/window.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ui/oak/oak_aura_window_display.cc View 1 2 3 4 1 chunk +7 lines, -7 lines 0 comments Download
M ui/views/DEPS View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/corewm/shadow_controller.cc View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M ui/views/corewm/shadow_controller_unittest.cc View 1 2 3 4 8 chunks +8 lines, -8 lines 0 comments Download
M ui/views/corewm/tooltip_controller_unittest.cc View 1 2 3 4 5 4 chunks +3 lines, -4 lines 0 comments Download
M ui/views/corewm/visibility_controller.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/corewm/visibility_controller_unittest.cc View 1 2 3 4 1 chunk +6 lines, -4 lines 0 comments Download
M ui/views/corewm/window_animations.cc View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_root_window_host_win.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_screen_position_client.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 4 5 3 chunks +2 lines, -2 lines 0 comments Download
M ui/views/widget/widget_aura_utils.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/widget_aura_utils.cc View 1 2 3 4 1 chunk +8 lines, -8 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
A + ui/wm/public/window_types.h View 1 2 3 4 2 chunks +9 lines, -9 lines 0 comments Download
M ui/wm/wm.gyp View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
tfarina
7 years ago (2013-12-14 14:45:37 UTC) #1
Ben Goodger (Google)
lgtm, but see note below: https://codereview.chromium.org/115153002/diff/120001/ash/shell/window_watcher_shelf_item_delegate.cc File ash/shell/window_watcher_shelf_item_delegate.cc (right): https://codereview.chromium.org/115153002/diff/120001/ash/shell/window_watcher_shelf_item_delegate.cc#newcode27 ash/shell/window_watcher_shelf_item_delegate.cc:27: if (window->type() == ui::wm::WINDOW_TYPE_PANEL) ...
7 years ago (2013-12-18 06:08:11 UTC) #2
tfarina
https://codereview.chromium.org/115153002/diff/120001/ash/shell/window_watcher_shelf_item_delegate.cc File ash/shell/window_watcher_shelf_item_delegate.cc (right): https://codereview.chromium.org/115153002/diff/120001/ash/shell/window_watcher_shelf_item_delegate.cc#newcode27 ash/shell/window_watcher_shelf_item_delegate.cc:27: if (window->type() == ui::wm::WINDOW_TYPE_PANEL) On 2013/12/18 06:08:12, Ben Goodger ...
7 years ago (2013-12-18 12:45:48 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/115153002/120001
7 years ago (2013-12-18 12:46:42 UTC) #4
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=186181
7 years ago (2013-12-18 13:51:10 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/115153002/140001
7 years ago (2013-12-18 22:33:59 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) check_deps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=206795
7 years ago (2013-12-18 23:16:18 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/115153002/160001
7 years ago (2013-12-18 23:22:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/115153002/160001
7 years ago (2013-12-19 00:01:07 UTC) #9
commit-bot: I haz the power
Change committed as 241752
7 years ago (2013-12-19 01:50:10 UTC) #10
Ben Goodger (Google)
OK so I just realized this creates a circular dep/layering violation. You use ui/wm/public from ...
6 years, 9 months ago (2014-02-27 07:38:54 UTC) #11
tfarina
6 years, 9 months ago (2014-02-27 16:50:16 UTC) #12
Message was sent while issue was closed.
On 2014/02/27 07:38:54, Ben Goodger (Google) wrote:
> OK so I just realized this creates a circular dep/layering violation.
> 
> You use ui/wm/public from ui/aura. ui/aura isn't allowed to depend on
> ui/wm/anything. So that needs to change. My preference is that the type gets
> stored on the window in a property.
> 
Filed crbug.com/347580 to address this.

> Second, I'd really like this namespace to be wm:: not ui::wm::, as I requested
> in my earlier comment. I'd rather we come up with some other solution to deal
> with ash. Perhaps ash shouldn't have a wm:: namespace at all. I think it's
> rather pointless over there. I'd like to eventually kill the ui:: namespace,
not
> add more to it.
And crbug.com/347582 to address this.

Powered by Google App Engine
This is Rietveld 408576698