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

Issue 12093075: Move the panel to the root window where the mouse click occurred. (Closed)

Created:
7 years, 10 months ago by oshima
Modified:
7 years, 10 months ago
Reviewers:
stevenjb, sadrul, sky
CC:
chromium-reviews, Aaron Boodman, sadrul, tfarina, chromium-apps-reviews_chromium.org, ben+watch_chromium.org
Visibility:
Public.

Description

Move the panel to the root window where the mouse click occurred. * Change the LauncherDelegate::ItemClicked's argument from int flag to const ui::Event& * temporarily set the view's event target to RV. Sadrul is working on real solution in crbug.com/173235. I tried to add interactive_ui_tests for chrome, but turns out it's require more work as there is no interactive ui tests for extensions. I'd rather refactor launcher code so that we can test the same behavior in ash_unittests. I'll work on it and add more tests once @skuhne finished new launcher (could be 26 or 27) BUG=166195 TEST=covered by tests. Also tested on device (clicking panel icon on other display should move the panel to that display) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180080

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : updated comment #

Total comments: 2

Patch Set 6 : updated comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -33 lines) Patch
M ash/launcher/launcher.cc View 1 chunk +5 lines, -1 line 0 comments Download
M ash/launcher/launcher_delegate.h View 1 2 chunks +6 lines, -2 lines 0 comments Download
M ash/launcher/launcher_util.h View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M ash/launcher/launcher_util.cc View 2 chunks +20 lines, -0 lines 0 comments Download
M ash/launcher/launcher_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/launcher_delegate_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/launcher_delegate_impl.cc View 2 chunks +3 lines, -1 line 0 comments Download
M ash/test/test_launcher_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/test/test_launcher_delegate.cc View 2 chunks +3 lines, -1 line 0 comments Download
M ash/wm/panel_layout_manager_unittest.cc View 1 2 3 6 chunks +90 lines, -10 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/browser_launcher_item_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/browser_launcher_item_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_item_controller.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M ui/views/widget/root_view.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
oshima
sadrul -> ui/views stevenjs -> everything else
7 years, 10 months ago (2013-01-31 20:08:47 UTC) #1
sadrul
ui/views/ lgtm
7 years, 10 months ago (2013-01-31 20:14:06 UTC) #2
stevenjb
lgtm https://codereview.chromium.org/12093075/diff/2003/ash/launcher/launcher_util.h File ash/launcher/launcher_util.h (right): https://codereview.chromium.org/12093075/diff/2003/ash/launcher/launcher_util.h#newcode30 ash/launcher/launcher_util.h:30: const ui::Event& event); nit: I would consider either: ...
7 years, 10 months ago (2013-01-31 20:23:40 UTC) #3
oshima
https://codereview.chromium.org/12093075/diff/2003/ash/launcher/launcher_util.h File ash/launcher/launcher_util.h (right): https://codereview.chromium.org/12093075/diff/2003/ash/launcher/launcher_util.h#newcode30 ash/launcher/launcher_util.h:30: const ui::Event& event); On 2013/01/31 20:23:40, stevenjb (chromium) wrote: ...
7 years, 10 months ago (2013-01-31 20:37:41 UTC) #4
oshima
sky for OWNERS approval. It touches a lot of files, but changes are small.
7 years, 10 months ago (2013-01-31 20:38:21 UTC) #5
sky
https://codereview.chromium.org/12093075/diff/2003/ash/launcher/launcher_util.h File ash/launcher/launcher_util.h (right): https://codereview.chromium.org/12093075/diff/2003/ash/launcher/launcher_util.h#newcode26 ash/launcher/launcher_util.h:26: // Move the maybe_panel to the root window where ...
7 years, 10 months ago (2013-01-31 22:31:44 UTC) #6
sky
LGTM
7 years, 10 months ago (2013-01-31 22:56:02 UTC) #7
oshima
https://codereview.chromium.org/12093075/diff/2003/ash/launcher/launcher_util.h File ash/launcher/launcher_util.h (right): https://codereview.chromium.org/12093075/diff/2003/ash/launcher/launcher_util.h#newcode26 ash/launcher/launcher_util.h:26: // Move the maybe_panel to the root window where ...
7 years, 10 months ago (2013-01-31 23:16:53 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/12093075/6009
7 years, 10 months ago (2013-01-31 23:37:45 UTC) #9
commit-bot: I haz the power
7 years, 10 months ago (2013-02-01 05:10:30 UTC) #10
Message was sent while issue was closed.
Change committed as 180080

Powered by Google App Engine
This is Rietveld 408576698