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

Issue 2165083002: Linux: Refactor X11DesktopHandler (Closed)

Created:
4 years, 5 months ago by Tom (Use chromium acct)
Modified:
4 years, 3 months ago
Reviewers:
danakj, Elliot Glaysher, sky
CC:
chromium-reviews, tfarina, tdresser+watch_chromium.org, Lei Zhang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

* Remove all tracking of _NET_ACTIVE_WINDOW * Remove timestamp tracking from X11DesktopHandler * Track focus state in DWTHX11. Inspired by gtk/docs/focus_tracking.txt Hopefully this will fix most Linux-aura focus related bugs BUG=635169, 635177 Committed: https://crrev.com/3b6aeffa075816129e32e57412b1c89ba619df10 Cr-Commit-Position: refs/heads/master@{#414807}

Patch Set 1 #

Patch Set 2 : Refactor #

Patch Set 3 : Rebase #

Patch Set 4 : Fix tests #

Total comments: 37

Patch Set 5 : Fixes & handle XI2 events #

Patch Set 6 : Forgot to ignore XINotifyPassive(Un)Grab #

Patch Set 7 : Fix tests #

Patch Set 8 : window_mapped_ -> IsVisible() #

Patch Set 9 : Add GetTimestamp() in libgtk2ui files #

Total comments: 28

Patch Set 10 : Add lots of comments #

Patch Set 11 : Ignore keyboard grabs #

Total comments: 1

Patch Set 12 : Rebase to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -283 lines) Patch
M chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/libgtk2ui/select_file_dialog_impl_gtk2.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M ui/events/devices/x11/touch_factory_x11.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M ui/events/platform/x11/x11_event_source.h View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -1 line 0 comments Download
M ui/events/platform/x11/x11_event_source.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +28 lines, -10 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +52 lines, -4 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 22 chunks +278 lines, -57 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_desktop_handler.h View 3 chunks +0 lines, -46 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_desktop_handler.cc View 8 chunks +3 lines, -156 lines 0 comments Download

Messages

Total messages: 96 (63 generated)
Tom (Use chromium acct)
4 years, 4 months ago (2016-08-05 19:53:09 UTC) #32
Elliot Glaysher
I've looked through this and it all looks mechanically ok, though this is changing enough ...
4 years, 4 months ago (2016-08-05 20:38:52 UTC) #33
Elliot Glaysher
lgtm
4 years, 4 months ago (2016-08-05 23:50:44 UTC) #37
Lei Zhang
With multiple reviewers, please specify who is reviewing what.
4 years, 4 months ago (2016-08-06 00:03:26 UTC) #38
Tom (Use chromium acct)
On 2016/08/06 00:03:26, Lei Zhang wrote: > With multiple reviewers, please specify who is reviewing ...
4 years, 4 months ago (2016-08-06 00:07:57 UTC) #39
sky
On 2016/08/06 00:07:57, Tom Anderson wrote: > On 2016/08/06 00:03:26, Lei Zhang wrote: > > ...
4 years, 4 months ago (2016-08-08 15:03:01 UTC) #41
Elliot Glaysher
lgtm, but i'd like it if dana also got a chance to look over this ...
4 years, 4 months ago (2016-08-08 17:28:04 UTC) #42
Tom (Use chromium acct)
danakj@ PTAL
4 years, 4 months ago (2016-08-11 20:02:46 UTC) #43
danakj
hey sorry for the delay, am reviewing :) On Thu, Aug 11, 2016 at 1:02 ...
4 years, 4 months ago (2016-08-11 20:31:38 UTC) #44
danakj
Sorry for many comments x.x Maybe they're all wrong. :) https://codereview.chromium.org/2165083002/diff/100001/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc File chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc (left): https://codereview.chromium.org/2165083002/diff/100001/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc#oldcode369 ...
4 years, 4 months ago (2016-08-11 21:48:20 UTC) #45
Tom (Use chromium acct)
On 2016/08/11 21:48:20, danakj wrote: > Sorry for many comments x.x Maybe they're all wrong. ...
4 years, 4 months ago (2016-08-15 18:42:46 UTC) #48
Tom (Use chromium acct)
https://codereview.chromium.org/2165083002/diff/100001/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc File chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc (left): https://codereview.chromium.org/2165083002/diff/100001/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc#oldcode369 chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc:369: int time = views::X11DesktopHandler::get()->wm_user_time_ms(); On 2016/08/15 18:42:45, Tom Anderson ...
4 years, 4 months ago (2016-08-19 00:26:31 UTC) #63
danakj
ok before I read the FocusIn/Out bit here's a few first things. https://codereview.chromium.org/2165083002/diff/200001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc ...
4 years, 4 months ago (2016-08-19 21:43:45 UTC) #65
danakj
https://codereview.chromium.org/2165083002/diff/200001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): https://codereview.chromium.org/2165083002/diff/200001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode268 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:268: if (detail == NotifyInferior) On 2016/08/19 21:43:45, danakj wrote: ...
4 years, 4 months ago (2016-08-19 23:17:32 UTC) #66
danakj
https://codereview.chromium.org/2165083002/diff/200001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): https://codereview.chromium.org/2165083002/diff/200001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode283 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:283: if (detail == NotifyInferior) Can you say the same ...
4 years, 4 months ago (2016-08-19 23:29:58 UTC) #67
danakj
OK otherwise than the IsActive() thing I believe everything is correct and just would like ...
4 years, 4 months ago (2016-08-19 23:59:30 UTC) #68
Tom (Use chromium acct)
https://codereview.chromium.org/2165083002/diff/200001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): https://codereview.chromium.org/2165083002/diff/200001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode249 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:249: OnHostLostWindowCapture(); On 2016/08/19 21:43:45, danakj wrote: > Why do ...
4 years, 4 months ago (2016-08-22 20:27:08 UTC) #70
danakj
https://codereview.chromium.org/2165083002/diff/200001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): https://codereview.chromium.org/2165083002/diff/200001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode741 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:741: bool is_active = (has_focus_ || has_pointer_focus_) && !ignore_input_; On ...
4 years, 4 months ago (2016-08-22 20:32:43 UTC) #72
Tom (Use chromium acct)
On 2016/08/22 20:32:43, danakj wrote: > https://codereview.chromium.org/2165083002/diff/200001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc > File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): > > https://codereview.chromium.org/2165083002/diff/200001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode741 > ...
4 years, 4 months ago (2016-08-22 20:38:15 UTC) #73
danakj
On Mon, Aug 22, 2016 at 1:38 PM, <thomasanderson@google.com> wrote: > On 2016/08/22 20:32:43, danakj ...
4 years, 4 months ago (2016-08-22 20:40:37 UTC) #74
Elliot Glaysher
On 2016/08/22 20:40:37, danakj wrote: > On Mon, Aug 22, 2016 at 1:38 PM, <mailto:thomasanderson@google.com> ...
4 years, 4 months ago (2016-08-22 20:42:52 UTC) #75
Tom (Use chromium acct)
On 2016/08/22 20:40:37, danakj wrote: > On Mon, Aug 22, 2016 at 1:38 PM, <mailto:thomasanderson@google.com> ...
4 years, 4 months ago (2016-08-22 20:48:51 UTC) #76
danakj
On Mon, Aug 22, 2016 at 1:48 PM, <thomasanderson@google.com> wrote: > On 2016/08/22 20:40:37, danakj ...
4 years, 4 months ago (2016-08-22 20:51:36 UTC) #77
danakj
On Mon, Aug 22, 2016 at 1:42 PM, <erg@chromium.org> wrote: > On 2016/08/22 20:40:37, danakj ...
4 years, 4 months ago (2016-08-22 20:52:15 UTC) #78
Tom (Use chromium acct)
On 2016/08/22 20:51:36, danakj wrote: > Ok, that seems bad to me, it is at ...
4 years, 4 months ago (2016-08-22 20:59:45 UTC) #79
danakj
On Mon, Aug 22, 2016 at 1:59 PM, <thomasanderson@google.com> wrote: > On 2016/08/22 20:51:36, danakj ...
4 years, 4 months ago (2016-08-22 21:10:55 UTC) #80
Tom (Use chromium acct)
On 2016/08/22 21:10:55, danakj wrote: > On Mon, Aug 22, 2016 at 1:59 PM, <mailto:thomasanderson@google.com> ...
4 years, 3 months ago (2016-08-26 19:07:31 UTC) #83
danakj
LGTM https://codereview.chromium.org/2165083002/diff/200001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): https://codereview.chromium.org/2165083002/diff/200001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode249 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:249: OnHostLostWindowCapture(); On 2016/08/22 20:27:07, Tom Anderson wrote: > ...
4 years, 3 months ago (2016-08-26 19:58:44 UTC) #84
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2165083002/260001
4 years, 3 months ago (2016-08-26 20:03:05 UTC) #87
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/59341) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-08-26 20:06:31 UTC) #89
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2165083002/280001
4 years, 3 months ago (2016-08-26 20:21:39 UTC) #92
commit-bot: I haz the power
Committed patchset #12 (id:280001)
4 years, 3 months ago (2016-08-26 21:20:09 UTC) #94
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 21:22:33 UTC) #96
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/3b6aeffa075816129e32e57412b1c89ba619df10
Cr-Commit-Position: refs/heads/master@{#414807}

Powered by Google App Engine
This is Rietveld 408576698