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

Issue 10826223: Replace PeekMessage for TSF awareness (Closed)

Created:
8 years, 4 months ago by yoichio
Modified:
8 years, 3 months ago
CC:
chromium-reviews, erikwright (departed), sadrul, brettw-cc_chromium.org, Seigo Nonaka, horo, Hiro Komatsu, ananta, robert
Base URL:
http://git.chromium.org/chromium/src.git@yukawa
Visibility:
Public.

Description

Replace PeekMessage for TSF awareness Replace PeekMessage with TSF interface's one in MessagePumpForIO Add MessagePumpTSFInternal class for above replacing. BUG=137627 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155589

Patch Set 1 : refactor #

Patch Set 2 : merge from metro.cc #

Patch Set 3 : modify member name #

Total comments: 6

Patch Set 4 : update names #

Total comments: 2

Patch Set 5 : modify indentation #

Total comments: 51

Patch Set 6 : move TextServiceBridge to new file #

Patch Set 7 : add MessageFilter interface #

Total comments: 22

Patch Set 8 : add comments #

Total comments: 8

Patch Set 9 : rename and refactor #

Patch Set 10 : delete unused file #

Patch Set 11 : rename class name and rebirth ScopedComInitialiser #

Patch Set 12 : change BOOL to bool, rename variables. #

Total comments: 8

Patch Set 13 : remove ScopedComInitializer #

Patch Set 14 : injects TextServicesMessageFilter from ChromeBrowserMainPartsWin #

Patch Set 15 : use scoped_ptr #

Patch Set 16 : use just PeekMessage for WM_PAINT/TIMER messages #

Total comments: 15

Patch Set 17 : use PeekMessage for PumpOutPendingPaintMessages/WaitForWork #

Total comments: 5

Patch Set 18 : check MessageFilter::Init() out of DCHECK #

Total comments: 1

Patch Set 19 : update comments for MessageFilter::ProcessMessage #

Total comments: 9

Patch Set 20 : remove Init() from MessageFilter and some nitpicks #

Patch Set 21 : nitpicks #

Patch Set 22 : sync #

Total comments: 2

Patch Set 23 : nitpick #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -16 lines) Patch
M base/base.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M base/message_loop.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +11 lines, -0 lines 0 comments Download
M base/message_pump_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +39 lines, -2 lines 0 comments Download
M base/message_pump_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +25 lines, -14 lines 0 comments Download
A base/win/text_services_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +48 lines, -0 lines 0 comments Download
A base/win/text_services_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +82 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (0 generated)
yoichio
I refactored TSF stuff class.
8 years, 4 months ago (2012-08-10 02:02:27 UTC) #1
yoichio
update
8 years, 4 months ago (2012-08-10 07:12:33 UTC) #2
yoichio
8 years, 4 months ago (2012-08-15 07:04:25 UTC) #3
Yohei Yukawa
http://codereview.chromium.org/10826223/diff/7004/base/message_pump_win.h File base/message_pump_win.h (right): http://codereview.chromium.org/10826223/diff/7004/base/message_pump_win.h#newcode128 base/message_pump_win.h:128: class MessagePumpTSFInternal; Any ideas for this class name? http://codereview.chromium.org/10826223/diff/7004/base/message_pump_win.h#newcode158 ...
8 years, 4 months ago (2012-08-15 09:10:48 UTC) #4
yoichio
http://codereview.chromium.org/10826223/diff/7004/base/message_pump_win.h File base/message_pump_win.h (right): http://codereview.chromium.org/10826223/diff/7004/base/message_pump_win.h#newcode128 base/message_pump_win.h:128: class MessagePumpTSFInternal; On 2012/08/15 09:10:49, Yohei Yukawa wrote: > ...
8 years, 4 months ago (2012-08-16 02:33:04 UTC) #5
Yohei Yukawa
http://codereview.chromium.org/10826223/diff/3004/base/message_pump_win.cc File base/message_pump_win.cc (right): http://codereview.chromium.org/10826223/diff/3004/base/message_pump_win.cc#newcode504 base/message_pump_win.cc:504: ProcessPeekMessage(&msg, NULL, WM_PAINT, WM_PAINT, PM_REMOVE) || nit: indent.
8 years, 4 months ago (2012-08-16 02:54:46 UTC) #6
yoichio
http://codereview.chromium.org/10826223/diff/3004/base/message_pump_win.cc File base/message_pump_win.cc (right): http://codereview.chromium.org/10826223/diff/3004/base/message_pump_win.cc#newcode504 base/message_pump_win.cc:504: ProcessPeekMessage(&msg, NULL, WM_PAINT, WM_PAINT, PM_REMOVE) || On 2012/08/16 02:54:46, ...
8 years, 4 months ago (2012-08-16 06:14:13 UTC) #7
Yohei Yukawa
lgtm
8 years, 4 months ago (2012-08-16 09:31:41 UTC) #8
yoichio
Could you please take a look?
8 years, 4 months ago (2012-08-16 10:12:08 UTC) #9
yoichio
Add cpu@chromium.org as a metro owner.
8 years, 4 months ago (2012-08-16 10:14:26 UTC) #10
jar (doing other things)
http://codereview.chromium.org/10826223/diff/10002/base/message_pump_win.cc File base/message_pump_win.cc (right): http://codereview.chromium.org/10826223/diff/10002/base/message_pump_win.cc#newcode34 base/message_pump_win.cc:34: base::win::ScopedComPtr<ITfKeystrokeMgr> keystroke_mgr; nit: members come after methods. Members should ...
8 years, 4 months ago (2012-08-16 18:21:40 UTC) #11
cpu_(ooo_6.6-7.5)
Sorry the TSF code here seems weird, let me add another code reviewer, Ricardo.
8 years, 4 months ago (2012-08-17 03:03:34 UTC) #12
cpu_(ooo_6.6-7.5)
8 years, 4 months ago (2012-08-17 03:03:53 UTC) #13
rvargas (doing something else)
I feel like having explicit TSF references here is not good. How about defining a ...
8 years, 4 months ago (2012-08-18 02:42:06 UTC) #14
yoichio
TextServicesBridge was moved to base/win/text_services_framework.h. To create interface that peeks message is beautiful way but ...
8 years, 4 months ago (2012-08-20 10:16:47 UTC) #15
rvargas (doing something else)
How about: // blah class MessageFilter { public: virtual ~MessageFilter() {} virtual bool Init() = ...
8 years, 4 months ago (2012-08-20 22:24:11 UTC) #16
yoichio
Add MessageFilter interface which wraps PeekMessage. Rename base/win/text_services_framework.* to base/win/text_services_bridge.*. About message pump unit tests, ...
8 years, 4 months ago (2012-08-21 10:17:50 UTC) #17
rvargas (doing something else)
What I meant by unit tests is that current tests are verifying the existing functionality... ...
8 years, 4 months ago (2012-08-21 19:45:37 UTC) #18
yoichio
Add comments about ProcessMessage. http://codereview.chromium.org/10826223/diff/2007/base/message_pump_win.cc File base/message_pump_win.cc (right): http://codereview.chromium.org/10826223/diff/2007/base/message_pump_win.cc#newcode32 base/message_pump_win.cc:32: HWND hwnd, On 2012/08/21 19:45:37, ...
8 years, 4 months ago (2012-08-22 08:06:50 UTC) #19
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/10826223/diff/17001/base/message_pump_win.h File base/message_pump_win.h (right): http://codereview.chromium.org/10826223/diff/17001/base/message_pump_win.h#newcode137 base/message_pump_win.h:137: virtual BOOL DoPeekMessage(MSG* messge, should this be a bool ...
8 years, 4 months ago (2012-08-22 21:37:18 UTC) #20
rvargas (doing something else)
http://codereview.chromium.org/10826223/diff/17001/base/message_pump_win.h File base/message_pump_win.h (right): http://codereview.chromium.org/10826223/diff/17001/base/message_pump_win.h#newcode137 base/message_pump_win.h:137: virtual BOOL DoPeekMessage(MSG* messge, On 2012/08/22 21:37:18, cpu wrote: ...
8 years, 4 months ago (2012-08-23 01:20:19 UTC) #21
cpu_(ooo_6.6-7.5)
please upgrade hoge.cc to hoge2.cc
8 years, 4 months ago (2012-08-23 01:59:17 UTC) #22
cpu_(ooo_6.6-7.5)
On 2012/08/23 01:59:17, cpu wrote: > please upgrade hoge.cc to hoge2.cc discard this comment :)
8 years, 4 months ago (2012-08-23 01:59:47 UTC) #23
yoichio
Four safety, I add ScopedComInitializer http://codereview.chromium.org/10826223/diff/17001/base/message_pump_win.h File base/message_pump_win.h (right): http://codereview.chromium.org/10826223/diff/17001/base/message_pump_win.h#newcode137 base/message_pump_win.h:137: virtual BOOL DoPeekMessage(MSG* messge, ...
8 years, 4 months ago (2012-08-23 02:44:59 UTC) #24
yoichio
According to coding style, I changed BOOL to bool. PeekMessage returns binary BOOL unlike GetMessage.
8 years, 4 months ago (2012-08-23 07:32:25 UTC) #25
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/10826223/diff/26007/base/message_pump_win.cc File base/message_pump_win.cc (right): http://codereview.chromium.org/10826223/diff/26007/base/message_pump_win.cc#newcode123 base/message_pump_win.cc:123: I discussed it a bit with others and the ...
8 years, 4 months ago (2012-08-23 23:51:16 UTC) #26
rvargas (doing something else)
http://codereview.chromium.org/10826223/diff/26007/base/message_pump_win.cc File base/message_pump_win.cc (right): http://codereview.chromium.org/10826223/diff/26007/base/message_pump_win.cc#newcode123 base/message_pump_win.cc:123: The first option is actually quite simple. The filter ...
8 years, 4 months ago (2012-08-24 01:21:06 UTC) #27
yoichio
Just remove ScopedComInitializer from TextServicesMessageFilter.
8 years, 4 months ago (2012-08-24 06:43:14 UTC) #28
cpu_(ooo_6.6-7.5)
Replying to Ricardo's question: My gut reaction is that is not appropriate to forward all ...
8 years, 4 months ago (2012-08-24 21:34:55 UTC) #29
yoichio
Mainly I did - move TSF awareness from MessagePumpUI to ChromeBrowserMainPartsWin - use win32 PeekMessage ...
8 years, 3 months ago (2012-08-31 04:54:05 UTC) #30
rvargas (doing something else)
http://codereview.chromium.org/10826223/diff/38001/base/message_loop.h File base/message_loop.h (right): http://codereview.chromium.org/10826223/diff/38001/base/message_loop.h#newcode576 base/message_loop.h:576: void SetMessageFilter(base::MessagePumpForUI::MessageFilter* message_filter) { nit: Please add a typedef ...
8 years, 3 months ago (2012-08-31 21:39:49 UTC) #31
yoichio
http://codereview.chromium.org/10826223/diff/38001/base/message_loop.h File base/message_loop.h (right): http://codereview.chromium.org/10826223/diff/38001/base/message_loop.h#newcode576 base/message_loop.h:576: void SetMessageFilter(base::MessagePumpForUI::MessageFilter* message_filter) { On 2012/08/31 21:39:49, rvargas wrote: ...
8 years, 3 months ago (2012-09-03 04:45:08 UTC) #32
yoichio
Ping.
8 years, 3 months ago (2012-09-05 02:48:51 UTC) #33
rvargas (doing something else)
Version 17 LGTM after fixing the following issues. jar, cpu? http://codereview.chromium.org/10826223/diff/48001/base/message_pump_win.cc File base/message_pump_win.cc (right): http://codereview.chromium.org/10826223/diff/48001/base/message_pump_win.cc#newcode120 ...
8 years, 3 months ago (2012-09-05 21:25:03 UTC) #34
cpu_(ooo_6.6-7.5)
lgtm http://codereview.chromium.org/10826223/diff/48001/base/message_pump_win.cc File base/message_pump_win.cc (right): http://codereview.chromium.org/10826223/diff/48001/base/message_pump_win.cc#newcode121 base/message_pump_win.cc:121: +1
8 years, 3 months ago (2012-09-05 22:25:58 UTC) #35
yoichio
Thank you for a suite of much helpful reviewing! http://codereview.chromium.org/10826223/diff/48001/base/message_pump_win.cc File base/message_pump_win.cc (right): http://codereview.chromium.org/10826223/diff/48001/base/message_pump_win.cc#newcode120 base/message_pump_win.cc:120: ...
8 years, 3 months ago (2012-09-06 00:48:32 UTC) #36
yoichio
Add sky@ for an owner of chrome/ tree. Could you check this?
8 years, 3 months ago (2012-09-06 00:53:14 UTC) #37
Peter Kasting
darin@ might be a better reviewer for this than sky@ considering that he did a ...
8 years, 3 months ago (2012-09-06 01:02:12 UTC) #38
jar (doing other things)
LGTM for base (this looks much more reasonable now... and I'm rubber stamping the windows ...
8 years, 3 months ago (2012-09-06 02:07:09 UTC) #39
darin (slow to review)
Hmm...interesting. It seems like the condition for enabling this code is if we are running ...
8 years, 3 months ago (2012-09-06 03:56:55 UTC) #40
yoichio
> Hmm...interesting. It seems like the condition for enabling this code is if we > ...
8 years, 3 months ago (2012-09-06 09:40:22 UTC) #41
yoichio
http://codereview.chromium.org/10826223/diff/39012/base/message_pump_win.cc File base/message_pump_win.cc (right): http://codereview.chromium.org/10826223/diff/39012/base/message_pump_win.cc#newcode120 base/message_pump_win.cc:120: bool init = message_filter_->Init(); On 2012/09/06 03:56:55, darin wrote: ...
8 years, 3 months ago (2012-09-06 09:40:36 UTC) #42
rvargas (doing something else)
On 2012/09/06 03:56:55, darin wrote: > I'm curious why you didn't just add a mode ...
8 years, 3 months ago (2012-09-06 18:10:40 UTC) #43
darin (slow to review)
OK, makes sense. On Thu, Sep 6, 2012 at 11:10 AM, <rvargas@chromium.org> wrote: > On ...
8 years, 3 months ago (2012-09-07 05:26:44 UTC) #44
yoichio
Darin, thank you for review. When no any other points, I'm appreciate if you give ...
8 years, 3 months ago (2012-09-07 05:34:42 UTC) #45
darin (slow to review)
OK, LGTM http://codereview.chromium.org/10826223/diff/38010/base/message_pump_win.cc File base/message_pump_win.cc (right): http://codereview.chromium.org/10826223/diff/38010/base/message_pump_win.cc#newcode451 base/message_pump_win.cc:451: scoped_ptr<MessageFilter> message_filter) { nit: indent by 4 ...
8 years, 3 months ago (2012-09-07 07:33:51 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoichio@chromium.org/10826223/47015
8 years, 3 months ago (2012-09-07 07:45:10 UTC) #47
yoichio
Thank you all! http://codereview.chromium.org/10826223/diff/38010/base/message_pump_win.cc File base/message_pump_win.cc (right): http://codereview.chromium.org/10826223/diff/38010/base/message_pump_win.cc#newcode451 base/message_pump_win.cc:451: scoped_ptr<MessageFilter> message_filter) { On 2012/09/07 07:33:51, ...
8 years, 3 months ago (2012-09-07 07:51:36 UTC) #48
commit-bot: I haz the power
Try job failure for 10826223-47015 (retry) on mac_rel for step "sync_integration_tests". It's a second try, ...
8 years, 3 months ago (2012-09-07 10:07:49 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoichio@chromium.org/10826223/47015
8 years, 3 months ago (2012-09-07 12:45:16 UTC) #50
commit-bot: I haz the power
Try job failure for 10826223-47015 (retry) (retry) (retry) on mac_rel for step "sync_integration_tests". It's a ...
8 years, 3 months ago (2012-09-07 16:24:53 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoichio@chromium.org/10826223/47015
8 years, 3 months ago (2012-09-08 11:14:57 UTC) #52
commit-bot: I haz the power
8 years, 3 months ago (2012-09-08 17:46:18 UTC) #53
Change committed as 155589

Powered by Google App Engine
This is Rietveld 408576698