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

Issue 10386175: Initialize XInput2 on demand (Closed)

Created:
8 years, 7 months ago by Rick Byers
Modified:
8 years, 7 months ago
Reviewers:
Mark Mentovai, sadrul
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Visibility:
Public.

Description

Initialize XInput2 on demand - fixes ash_shell mouse events MessagePumpX::HasXInput2 currently assumes a message pump has already been created and so XInput2 has been initialized. This may not always be the case (eg. when deciding early at startup whether we should load touch-specific resources). Instead we now initialize XInput2 on demand - either when the message pump is created, or when HasInput2 is called earlier. BUG=128367 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137694

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix variable name style #

Total comments: 3

Patch Set 3 : Apply CR feedback from mark #

Patch Set 4 : merge with trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -12 lines) Patch
M base/message_pump_x.cc View 1 2 4 chunks +14 lines, -12 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Rick Byers
Hey Sadrul, How does this look for a simple fix for the ash_shell mouse events ...
8 years, 7 months ago (2012-05-16 18:27:41 UTC) #1
sadrul
LGTM (you will need OWNERS) http://codereview.chromium.org/10386175/diff/1/base/message_pump_x.cc File base/message_pump_x.cc (right): http://codereview.chromium.org/10386175/diff/1/base/message_pump_x.cc#newcode41 base/message_pump_x.cc:41: bool xInput2Initialized = false; ...
8 years, 7 months ago (2012-05-16 21:47:12 UTC) #2
sadrul
On 2012/05/16 18:27:41, Rick Byers wrote: > Hey Sadrul, > How does this look for ...
8 years, 7 months ago (2012-05-16 21:50:45 UTC) #3
Rick Byers
+mark for OWNERS http://codereview.chromium.org/10386175/diff/1/base/message_pump_x.cc File base/message_pump_x.cc (right): http://codereview.chromium.org/10386175/diff/1/base/message_pump_x.cc#newcode41 base/message_pump_x.cc:41: bool xInput2Initialized = false; On 2012/05/16 ...
8 years, 7 months ago (2012-05-17 14:06:56 UTC) #4
Mark Mentovai
The restructuring is optional and you don’t have to do it if you hate it. ...
8 years, 7 months ago (2012-05-17 14:17:34 UTC) #5
Rick Byers
http://codereview.chromium.org/10386175/diff/5001/base/message_pump_x.cc File base/message_pump_x.cc (right): http://codereview.chromium.org/10386175/diff/5001/base/message_pump_x.cc#newcode52 base/message_pump_x.cc:52: if (xinput2_initialized) On 2012/05/17 14:17:34, Mark Mentovai wrote: > ...
8 years, 7 months ago (2012-05-17 15:13:15 UTC) #6
Mark Mentovai
LGTM for both normal review purposes and base OWNERS review.
8 years, 7 months ago (2012-05-17 15:15:49 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/10386175/3003
8 years, 7 months ago (2012-05-17 16:06:37 UTC) #8
commit-bot: I haz the power
Try job failure for 10386175-3003 on win for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=12074 Step "update" is always ...
8 years, 7 months ago (2012-05-17 16:34:03 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/10386175/6004
8 years, 7 months ago (2012-05-17 17:03:15 UTC) #10
commit-bot: I haz the power
8 years, 7 months ago (2012-05-17 18:31:05 UTC) #11
Change committed as 137694

Powered by Google App Engine
This is Rietveld 408576698