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

Issue 17431003: Dragging panels near screen edge (Closed)

Created:
7 years, 6 months ago by varkha
Modified:
7 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, sadrul, extensions-reviews_chromium.org, ben+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Dragging panels near screen edge BUG=251413 BUG=251421 TBR=jeremya@chromium.org TEST=Drag Hangout panels near screen edge with dual screens. Verify that panels stay where they are left when mouse is released. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207972

Patch Set 1 : Dragging panels near screen edge (fixed broken test) #

Total comments: 13

Patch Set 2 : Dragging panels near screen edge (comments) #

Total comments: 1

Patch Set 3 : Dragging panels near screen edge (comments) #

Total comments: 3

Patch Set 4 : Dragging panels near screen edge (comments) #

Total comments: 4

Patch Set 5 : Dragging panels near screen edge (comments) #

Total comments: 4

Patch Set 6 : Dragging panels near screen edge (comments) #

Total comments: 2

Patch Set 7 : Dragging panels near screen edge (comments) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -7 lines) Patch
M ash/wm/panels/panel_layout_manager.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/panels/panel_layout_manager.cc View 1 2 3 4 5 6 3 chunks +19 lines, -0 lines 0 comments Download
M ash/wm/panels/panel_window_resizer.cc View 1 2 3 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
varkha
Please take a look. This could be taken into two separate CLs, but the bugs ...
7 years, 6 months ago (2013-06-18 21:54:01 UTC) #1
flackr
https://codereview.chromium.org/17431003/diff/3001/ash/wm/panels/panel_layout_manager.cc File ash/wm/panels/panel_layout_manager.cc (right): https://codereview.chromium.org/17431003/diff/3001/ash/wm/panels/panel_layout_manager.cc#newcode668 ash/wm/panels/panel_layout_manager.cc:668: visible_panels[i].window->SetProperty(internal::kPanelAttachedKey, true); Any panel that's being managed by panel ...
7 years, 6 months ago (2013-06-19 15:16:49 UTC) #2
flackr
https://codereview.chromium.org/17431003/diff/3001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/17431003/diff/3001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode806 chrome/browser/extensions/api/tabs/tabs_api.cc:806: controller->window()->SetBounds(bounds); Avoiding this SetBounds call if the values don't ...
7 years, 6 months ago (2013-06-19 15:26:46 UTC) #3
varkha
PTAL. Do you think dealing with real bounds change from inside the app while dragging ...
7 years, 6 months ago (2013-06-19 15:49:22 UTC) #4
flackr
https://codereview.chromium.org/17431003/diff/3001/ash/wm/panels/panel_layout_manager.cc File ash/wm/panels/panel_layout_manager.cc (right): https://codereview.chromium.org/17431003/diff/3001/ash/wm/panels/panel_layout_manager.cc#newcode668 ash/wm/panels/panel_layout_manager.cc:668: visible_panels[i].window->SetProperty(internal::kPanelAttachedKey, true); On 2013/06/19 15:49:22, varkha wrote: > This ...
7 years, 6 months ago (2013-06-19 15:59:36 UTC) #5
flackr
https://codereview.chromium.org/17431003/diff/3001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/17431003/diff/3001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode806 chrome/browser/extensions/api/tabs/tabs_api.cc:806: controller->window()->SetBounds(bounds); On 2013/06/19 15:49:22, varkha wrote: > True, but ...
7 years, 6 months ago (2013-06-19 16:21:45 UTC) #6
varkha
https://codereview.chromium.org/17431003/diff/3001/ash/wm/panels/panel_layout_manager.cc File ash/wm/panels/panel_layout_manager.cc (right): https://codereview.chromium.org/17431003/diff/3001/ash/wm/panels/panel_layout_manager.cc#newcode668 ash/wm/panels/panel_layout_manager.cc:668: visible_panels[i].window->SetProperty(internal::kPanelAttachedKey, true); The problem with dual screens was that ...
7 years, 6 months ago (2013-06-19 17:54:09 UTC) #7
flackr
https://codereview.chromium.org/17431003/diff/3001/ash/wm/panels/panel_layout_manager.cc File ash/wm/panels/panel_layout_manager.cc (right): https://codereview.chromium.org/17431003/diff/3001/ash/wm/panels/panel_layout_manager.cc#newcode668 ash/wm/panels/panel_layout_manager.cc:668: visible_panels[i].window->SetProperty(internal::kPanelAttachedKey, true); When SetBounds is about to reparent the ...
7 years, 6 months ago (2013-06-19 20:24:45 UTC) #8
flackr
https://codereview.chromium.org/17431003/diff/11002/ash/wm/panels/panel_layout_manager.cc File ash/wm/panels/panel_layout_manager.cc (right): https://codereview.chromium.org/17431003/diff/11002/ash/wm/panels/panel_layout_manager.cc#newcode331 ash/wm/panels/panel_layout_manager.cc:331: return; If there's not an easy way to avoid ...
7 years, 6 months ago (2013-06-20 02:18:55 UTC) #9
varkha
Tried another approach - effectively calling CompleteDrag later rather than sooner. PTAL. https://codereview.chromium.org/17431003/diff/26002/ash/wm/toplevel_window_event_handler.cc File ash/wm/toplevel_window_event_handler.cc ...
7 years, 6 months ago (2013-06-20 04:09:22 UTC) #10
flackr
https://codereview.chromium.org/17431003/diff/26002/ash/wm/toplevel_window_event_handler.cc File ash/wm/toplevel_window_event_handler.cc (right): https://codereview.chromium.org/17431003/diff/26002/ash/wm/toplevel_window_event_handler.cc#newcode66 ash/wm/toplevel_window_event_handler.cc:66: virtual void OnWindowHierarchyChanged( On 2013/06/20 04:09:22, varkha wrote: > ...
7 years, 6 months ago (2013-06-20 13:08:45 UTC) #11
varkha
No, this trouble doesn't happen. I think that the drag only gets stopped _after_ that ...
7 years, 6 months ago (2013-06-20 13:38:32 UTC) #12
varkha
Correction. The window does get moved to above the icon when panel Relayout is called ...
7 years, 6 months ago (2013-06-20 16:29:31 UTC) #13
flackr
On 2013/06/20 16:29:31, varkha wrote: > Correction. The window does get moved to above the ...
7 years, 6 months ago (2013-06-20 17:09:47 UTC) #14
varkha
> I'm not sure I understand why calling AddChild during the notification phase of > ...
7 years, 6 months ago (2013-06-20 17:36:21 UTC) #15
flackr
Since there is a bug tracking the general issue of a bounds update during a ...
7 years, 6 months ago (2013-06-20 19:47:46 UTC) #16
varkha
PTAL. I will move dealing with the bounds change from within the application into a ...
7 years, 6 months ago (2013-06-20 22:37:34 UTC) #17
flackr
https://codereview.chromium.org/17431003/diff/38001/ash/wm/panels/panel_layout_manager.cc File ash/wm/panels/panel_layout_manager.cc (right): https://codereview.chromium.org/17431003/diff/38001/ash/wm/panels/panel_layout_manager.cc#newcode337 ash/wm/panels/panel_layout_manager.cc:337: // back to appropriate container and ignore it. Add ...
7 years, 6 months ago (2013-06-20 23:00:56 UTC) #18
varkha
https://codereview.chromium.org/17431003/diff/38001/ash/wm/panels/panel_layout_manager.cc File ash/wm/panels/panel_layout_manager.cc (right): https://codereview.chromium.org/17431003/diff/38001/ash/wm/panels/panel_layout_manager.cc#newcode337 ash/wm/panels/panel_layout_manager.cc:337: // back to appropriate container and ignore it. On ...
7 years, 6 months ago (2013-06-20 23:10:04 UTC) #19
flackr
LGTM with nits. https://codereview.chromium.org/17431003/diff/45001/ash/wm/panels/panel_layout_manager.cc File ash/wm/panels/panel_layout_manager.cc (right): https://codereview.chromium.org/17431003/diff/45001/ash/wm/panels/panel_layout_manager.cc#newcode338 ash/wm/panels/panel_layout_manager.cc:338: // TODO: Updating bounds during a ...
7 years, 6 months ago (2013-06-20 23:28:40 UTC) #20
varkha
https://codereview.chromium.org/17431003/diff/45001/ash/wm/panels/panel_layout_manager.cc File ash/wm/panels/panel_layout_manager.cc (right): https://codereview.chromium.org/17431003/diff/45001/ash/wm/panels/panel_layout_manager.cc#newcode338 ash/wm/panels/panel_layout_manager.cc:338: // TODO: Updating bounds during a drag can cause ...
7 years, 6 months ago (2013-06-20 23:42:09 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/17431003/50001
7 years, 6 months ago (2013-06-20 23:43:44 UTC) #22
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=11091
7 years, 6 months ago (2013-06-21 00:06:48 UTC) #23
varkha
+jeremya@ or aa@ for OWNERS review (a comment in https://chromiumcodereview.appspot.com/17431003/diff/50001/chrome/browser/extensions/api/tabs/tabs_api.cc).
7 years, 6 months ago (2013-06-21 00:23:17 UTC) #24
flackr
https://codereview.chromium.org/17431003/diff/50001/ash/wm/panels/panel_layout_manager.cc File ash/wm/panels/panel_layout_manager.cc (right): https://codereview.chromium.org/17431003/diff/50001/ash/wm/panels/panel_layout_manager.cc#newcode340 ash/wm/panels/panel_layout_manager.cc:340: child->SetDefaultParentByRootWindow( It makes me uncomfortable that this could cause ...
7 years, 6 months ago (2013-06-21 01:14:48 UTC) #25
varkha
https://codereview.chromium.org/17431003/diff/50001/ash/wm/panels/panel_layout_manager.cc File ash/wm/panels/panel_layout_manager.cc (right): https://codereview.chromium.org/17431003/diff/50001/ash/wm/panels/panel_layout_manager.cc#newcode340 ash/wm/panels/panel_layout_manager.cc:340: child->SetDefaultParentByRootWindow( Done. Cannot really happen with our current logic ...
7 years, 6 months ago (2013-06-21 01:27:07 UTC) #26
jeremya
I think stevenjb would be a better person to review this.
7 years, 6 months ago (2013-06-21 01:30:25 UTC) #27
stevenjb
lgtm I'm not an owner for extensions/ but you can TBR it for just an ...
7 years, 6 months ago (2013-06-21 17:33:09 UTC) #28
varkha
Thanks, TBR for comment in https://chromiumcodereview.appspot.com/17431003/diff/50001/chrome/browser/extensions/api/tabs/tabs_api.cc
7 years, 6 months ago (2013-06-21 17:58:30 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/17431003/53002
7 years, 6 months ago (2013-06-21 17:58:44 UTC) #30
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=11414
7 years, 6 months ago (2013-06-21 18:08:41 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/17431003/53002
7 years, 6 months ago (2013-06-21 18:20:55 UTC) #32
commit-bot: I haz the power
7 years, 6 months ago (2013-06-22 00:34:13 UTC) #33
Message was sent while issue was closed.
Change committed as 207972

Powered by Google App Engine
This is Rietveld 408576698