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

Issue 6489031: Run event executor on the ui thread to remove the need to explicitly XFlush() the XTest calls. (Closed)

Created:
9 years, 10 months ago by Jamie
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, brettw-cc_chromium.org, dmaclach+watch_chromium.org, garykac+watch_chromium.org, Paweł Hajdan Jr., lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org, pam+watch_chromium.org
Visibility:
Public.

Description

Run event executor on the ui thread to remove the need to explicitly XFlush() the XTest calls. BUG=none TEST=Connect to a host and try moving the mouse and typing. Both inputs should be reflected correctly. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75477

Patch Set 1 #

Patch Set 2 : Fixed glint warnings. #

Total comments: 4

Patch Set 3 : git cl try #

Total comments: 2

Patch Set 4 : Incoroprated ajwong's suggestions. #

Patch Set 5 : Initialize GTK explicitly in service and simple_host, rather than implicitly in message_pump_glibc. #

Patch Set 6 : Removed unused headers. #

Patch Set 7 : Fixed try server compilation errors. #

Patch Set 8 : Removed unused gtk dependency. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -70 lines) Patch
M base/message_loop.h View 1 2 3 2 chunks +5 lines, -0 lines 3 comments Download
M base/message_loop.cc View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/service/remoting/chromoting_host_manager.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/service/remoting/chromoting_host_manager.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/service/service_process.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/service/service_process.cc View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M remoting/host/chromoting_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/chromoting_host_context.h View 1 2 3 3 chunks +8 lines, -1 line 0 comments Download
M remoting/host/chromoting_host_context.cc View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M remoting/host/chromoting_host_context_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/event_executor.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/event_executor_linux.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/event_executor_linux.cc View 1 2 3 9 chunks +8 lines, -42 lines 0 comments Download
M remoting/host/event_executor_mac.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/host/event_executor_mac.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/event_executor_win.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/event_executor_win.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/host_mock_objects.cc View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/simple_host_process.cc View 1 2 3 4 5 6 4 chunks +11 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Jamie
Hi Albert, Can you take a look at this changelist. I tried to stick as ...
9 years, 10 months ago (2011-02-11 14:59:14 UTC) #1
awong
Adding deanm to look at message_pump_glib.cc since his name seems to be peppered all over ...
9 years, 10 months ago (2011-02-14 17:27:29 UTC) #2
Alpha Left Google
Looks pretty good to me. I was going to suggest using the UI message loop ...
9 years, 10 months ago (2011-02-14 18:09:17 UTC) #3
Jamie
Needless to say, the description attached to the latest patch is a typo... I've just ...
9 years, 10 months ago (2011-02-14 19:12:38 UTC) #4
Wez
We can pull the display name out of GDK into the string form and re-open ...
9 years, 10 months ago (2011-02-15 11:06:47 UTC) #5
Jamie
On 2011/02/15 11:06:47, Wez wrote: > We can pull the display name out of GDK ...
9 years, 10 months ago (2011-02-15 12:02:13 UTC) #6
Wez
Doesn't the act of opening a display with gdk_display_open() cause it to be added to ...
9 years, 10 months ago (2011-02-15 12:46:45 UTC) #7
Dean McNamee
Thanks... http://codereview.chromium.org/6489031/diff/9002/base/message_pump_glib.cc File base/message_pump_glib.cc (right): http://codereview.chromium.org/6489031/diff/9002/base/message_pump_glib.cc#newcode176 base/message_pump_glib.cc:176: // Initialize gdk. This is the classic style ...
9 years, 10 months ago (2011-02-15 17:06:26 UTC) #8
Jamie
http://codereview.chromium.org/6489031/diff/9002/base/message_pump_glib.cc File base/message_pump_glib.cc (right): http://codereview.chromium.org/6489031/diff/9002/base/message_pump_glib.cc#newcode176 base/message_pump_glib.cc:176: // Initialize gdk. On 2011/02/15 17:06:26, Dean McNamee wrote: ...
9 years, 10 months ago (2011-02-15 17:17:03 UTC) #9
Dean McNamee
On 2011/02/15 17:17:03, jamiewalch wrote: > http://codereview.chromium.org/6489031/diff/9002/base/message_pump_glib.cc > File base/message_pump_glib.cc (right): > > http://codereview.chromium.org/6489031/diff/9002/base/message_pump_glib.cc#newcode176 > ...
9 years, 10 months ago (2011-02-15 18:51:45 UTC) #10
awong
I wanted to vet our ability to expose the X display out of the message ...
9 years, 10 months ago (2011-02-16 23:07:41 UTC) #11
jamiewalch
I've looked into that and I think it will work, but aren't we going round ...
9 years, 10 months ago (2011-02-17 15:54:34 UTC) #12
awong
Yeah, it is a circle. :( I think the main concern with throwing GetDisplay into ...
9 years, 10 months ago (2011-02-17 16:08:37 UTC) #13
Wez
FWIW, the GLib message pump already has forward typedefs for GdkEvent, etc, outside a namespace, ...
9 years, 10 months ago (2011-02-17 16:19:39 UTC) #14
awong
Yeah, but those are all mangled with a GDK prefix. Maybe I'm just being paranoid... ...
9 years, 10 months ago (2011-02-17 16:50:34 UTC) #15
Wez
No, that's a fair point. I think "Display" is relatively safe, though, for precisely the ...
9 years, 10 months ago (2011-02-17 17:24:02 UTC) #16
Jamie
I think this is ready for re-review. To summarise, since this has been going for ...
9 years, 10 months ago (2011-02-18 13:08:28 UTC) #17
Alpha Left Google
LGTM.
9 years, 10 months ago (2011-02-18 13:12:53 UTC) #18
awong
LGTM Would still like to get Evan Martin's opinion on whether or not exposing Display ...
9 years, 10 months ago (2011-02-18 23:10:27 UTC) #19
commit-bot: I haz the power
Can't apply patch for file chrome/service/service_process.cc. error: patch failed: chrome/service/service_process.cc:26 error: chrome/service/service_process.cc: patch does not ...
9 years, 10 months ago (2011-02-18 23:11:41 UTC) #20
sadrul
http://codereview.chromium.org/6489031/diff/24001/base/message_loop.h File base/message_loop.h (right): http://codereview.chromium.org/6489031/diff/24001/base/message_loop.h#newcode513 base/message_loop.h:513: Display* get_display(); I see that this has already landed, ...
9 years, 10 months ago (2011-02-19 07:02:38 UTC) #21
Jamie
http://codereview.chromium.org/6489031/diff/24001/base/message_loop.h File base/message_loop.h (right): http://codereview.chromium.org/6489031/diff/24001/base/message_loop.h#newcode513 base/message_loop.h:513: Display* get_display(); On 2011/02/19 07:02:39, sadrul wrote: > I ...
9 years, 10 months ago (2011-02-19 08:09:06 UTC) #22
sadrul
9 years, 10 months ago (2011-02-19 08:22:50 UTC) #23
http://codereview.chromium.org/6489031/diff/24001/base/message_loop.h
File base/message_loop.h (right):

http://codereview.chromium.org/6489031/diff/24001/base/message_loop.h#newcode513
base/message_loop.h:513: Display* get_display();
On 2011/02/19 08:09:06, jamiewalch wrote:
> On 2011/02/19 07:02:39, sadrul wrote:
> > I see that this has already landed, but ... is there a reason for the
horrific
> > name for the function (i.e. why 'get_display' instead of 'GetDisplay'?)
> 
> I was aiming for consistency with other getter-like functions in this header,
> for example pump_win and pump_libevent, but just calling it display() didn't
> feel descriptive enough.

Simple accessor functions are named like this, so if there was a |display_|
attribute, the accessor would be display(). But for this, I believe GetDisplay
would have been more appropriate. 

But, I would suggest you wait for Evan Martin to weigh in on whether this is the
right way of exposing the Display first before renaming the function (if you
wanted to).

Powered by Google App Engine
This is Rietveld 408576698