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

Issue 11235023: Redesign: Remove TsfEventRouter interface. (Closed)

Created:
8 years, 2 months ago by Seigo Nonaka
Modified:
8 years, 1 month ago
CC:
chromium-reviews, James Su, penghuang+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@ominifix
Visibility:
Public.

Description

Redesign: Remove TsfEventRouter interface. I will rename all acronym from Tsf to TSF in the next change. BUG=156867 TEST=Manually done on Win8 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164481

Patch Set 1 : #

Patch Set 2 : Use ATL for COM object management #

Total comments: 68

Patch Set 3 : WIP #

Patch Set 4 : WIP #

Patch Set 5 : Patch for review #

Total comments: 4

Patch Set 6 : Address comments #

Total comments: 26

Patch Set 7 : Address comments #

Total comments: 12

Patch Set 8 : Address comments #

Patch Set 9 : fix nit #

Patch Set 10 : fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -249 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_win.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 2 3 4 5 6 5 chunks +6 lines, -10 lines 0 comments Download
M ui/base/ime/win/tsf_event_router.h View 1 2 3 4 5 6 7 2 chunks +36 lines, -24 lines 0 comments Download
M ui/base/ime/win/tsf_event_router.cc View 1 2 3 4 5 6 7 8 9 1 chunk +210 lines, -213 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Seigo Nonaka
8 years, 2 months ago (2012-10-22 05:07:41 UTC) #1
Yohei Yukawa
lgtm
8 years, 2 months ago (2012-10-22 05:16:47 UTC) #2
Seigo Nonaka
Yukawa: Thank you for your review! Adding pkasting as the owner of Omnibox.
8 years, 2 months ago (2012-10-22 05:34:24 UTC) #3
Seigo Nonaka
Yukawa: Thank you for your review! Adding pkasting as the owner of Omnibox.
8 years, 2 months ago (2012-10-22 05:34:38 UTC) #4
Peter Kasting
I'm still concerned that this is a ref-counted object (since you haven't changed any external ...
8 years, 2 months ago (2012-10-23 00:56:14 UTC) #5
Peter Kasting
OK, based on chromium-dev email thread, I suggest an outer class that is non-refcounted and ...
8 years, 2 months ago (2012-10-23 05:17:16 UTC) #6
Seigo Nonaka
pkasting@: sure, thank you for your suggestions. This is the new version which uses ATL ...
8 years, 2 months ago (2012-10-24 07:16:48 UTC) #7
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/11235023/diff/15001/ui/base/ime/win/tsf_event_router.h File ui/base/ime/win/tsf_event_router.h (right): https://codereview.chromium.org/11235023/diff/15001/ui/base/ime/win/tsf_event_router.h#newcode43 ui/base/ime/win/tsf_event_router.h:43: class ATL_NO_VTABLE TsfEventRouterDelegate : public ATL::CComObjectRoot, can you use ...
8 years, 2 months ago (2012-10-24 17:40:14 UTC) #8
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/11235023/diff/15001/ui/base/ime/win/tsf_event_router.h File ui/base/ime/win/tsf_event_router.h (right): https://codereview.chromium.org/11235023/diff/15001/ui/base/ime/win/tsf_event_router.h#newcode61 ui/base/ime/win/tsf_event_router.h:61: virtual STDMETHODIMP BeginUIElement(DWORD element_id, BOOL* is_show); if we are ...
8 years, 2 months ago (2012-10-24 17:48:14 UTC) #9
Peter Kasting
https://codereview.chromium.org/11235023/diff/15001/chrome/browser/ui/views/omnibox/omnibox_view_win.cc File chrome/browser/ui/views/omnibox/omnibox_view_win.cc (right): https://codereview.chromium.org/11235023/diff/15001/chrome/browser/ui/views/omnibox/omnibox_view_win.cc#newcode485 chrome/browser/ui/views/omnibox/omnibox_view_win.cc:485: ? new ui::TsfEventRouter() : NULL) { Nit: '?' goes ...
8 years, 2 months ago (2012-10-24 20:48:11 UTC) #10
cpu_(ooo_6.6-7.5)
Regarding STDMETHOD() I am fine either way, as long things are at least consistent in ...
8 years, 2 months ago (2012-10-24 21:48:29 UTC) #11
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/11235023/diff/15001/ui/base/ime/win/tsf_event_router.cc File ui/base/ime/win/tsf_event_router.cc (right): https://codereview.chromium.org/11235023/diff/15001/ui/base/ime/win/tsf_event_router.cc#newcode22 ui/base/ime/win/tsf_event_router.cc:22: &delegate))) { On 2012/10/24 20:48:11, Peter Kasting wrote: > ...
8 years, 2 months ago (2012-10-25 00:43:29 UTC) #12
cpu_(ooo_6.6-7.5)
"If I understand correctly, this would require that the inner class be handed a CComPtr* ...
8 years, 2 months ago (2012-10-25 01:00:16 UTC) #13
Peter Kasting
On 2012/10/25 00:43:29, cpu wrote: > I think is best to create it via CoCreateInstance ...
8 years, 2 months ago (2012-10-25 04:04:11 UTC) #14
Seigo Nonaka
http://codereview.chromium.org/11235023/diff/15001/chrome/browser/ui/views/omnibox/omnibox_view_win.cc File chrome/browser/ui/views/omnibox/omnibox_view_win.cc (right): http://codereview.chromium.org/11235023/diff/15001/chrome/browser/ui/views/omnibox/omnibox_view_win.cc#newcode485 chrome/browser/ui/views/omnibox/omnibox_view_win.cc:485: ? new ui::TsfEventRouter() : NULL) { On 2012/10/24 20:48:11, ...
8 years, 1 month ago (2012-10-25 14:37:15 UTC) #15
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/11235023/diff/24001/ui/base/ime/win/tsf_event_router.cc File ui/base/ime/win/tsf_event_router.cc (right): https://codereview.chromium.org/11235023/diff/24001/ui/base/ime/win/tsf_event_router.cc#newcode114 ui/base/ime/win/tsf_event_router.cc:114: return S_OK; if (!base::win::IsTsfAwareRequired()) return some_error; if (!delegate_) return ...
8 years, 1 month ago (2012-10-25 19:30:42 UTC) #16
Seigo Nonaka
http://codereview.chromium.org/11235023/diff/24001/ui/base/ime/win/tsf_event_router.cc File ui/base/ime/win/tsf_event_router.cc (right): http://codereview.chromium.org/11235023/diff/24001/ui/base/ime/win/tsf_event_router.cc#newcode114 ui/base/ime/win/tsf_event_router.cc:114: return S_OK; Sure, move DCHECK TsfEventRoter::TsfEventRouter() On 2012/10/25 19:30:42, ...
8 years, 1 month ago (2012-10-25 23:00:58 UTC) #17
Peter Kasting
OK, pretty close now! https://codereview.chromium.org/11235023/diff/12002/chrome/browser/ui/views/omnibox/omnibox_view_win.cc File chrome/browser/ui/views/omnibox/omnibox_view_win.cc (right): https://codereview.chromium.org/11235023/diff/12002/chrome/browser/ui/views/omnibox/omnibox_view_win.cc#newcode559 chrome/browser/ui/views/omnibox/omnibox_view_win.cc:559: tsf_event_router_->SetManager(NULL); Is this necessary? Can't ...
8 years, 1 month ago (2012-10-26 01:53:46 UTC) #18
Seigo Nonaka
http://codereview.chromium.org/11235023/diff/12002/chrome/browser/ui/views/omnibox/omnibox_view_win.cc File chrome/browser/ui/views/omnibox/omnibox_view_win.cc (right): http://codereview.chromium.org/11235023/diff/12002/chrome/browser/ui/views/omnibox/omnibox_view_win.cc#newcode559 chrome/browser/ui/views/omnibox/omnibox_view_win.cc:559: tsf_event_router_->SetManager(NULL); Yes! done. On 2012/10/26 01:53:47, Peter Kasting wrote: ...
8 years, 1 month ago (2012-10-26 02:23:10 UTC) #19
Peter Kasting
LGTM http://codereview.chromium.org/11235023/diff/20015/ui/base/ime/win/tsf_event_router.cc File ui/base/ime/win/tsf_event_router.cc (right): http://codereview.chromium.org/11235023/diff/20015/ui/base/ime/win/tsf_event_router.cc#newcode17 ui/base/ime/win/tsf_event_router.cc:17: Tiny nit: I suggest one more blank line ...
8 years, 1 month ago (2012-10-26 02:31:57 UTC) #20
Seigo Nonaka
pkasting@: Thank you for your kindly review! cpu@: PTAL? http://codereview.chromium.org/11235023/diff/20015/ui/base/ime/win/tsf_event_router.cc File ui/base/ime/win/tsf_event_router.cc (right): http://codereview.chromium.org/11235023/diff/20015/ui/base/ime/win/tsf_event_router.cc#newcode17 ui/base/ime/win/tsf_event_router.cc:17: ...
8 years, 1 month ago (2012-10-26 02:40:27 UTC) #21
cpu_(ooo_6.6-7.5)
lgtm
8 years, 1 month ago (2012-10-26 22:28:43 UTC) #22
Seigo Nonaka
Thanks! committing.
8 years, 1 month ago (2012-10-26 22:37:28 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nona@chromium.org/11235023/23017
8 years, 1 month ago (2012-10-26 22:39:33 UTC) #24
commit-bot: I haz the power
8 years, 1 month ago (2012-10-27 01:36:24 UTC) #25
Change committed as 164481

Powered by Google App Engine
This is Rietveld 408576698