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

Issue 10535046: Add Windows commandline switch --enable-views-textfield. (Closed)

Created:
8 years, 6 months ago by msw
Modified:
8 years, 6 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, tfarina, James Su, penghuang+watch_chromium.org, yusukes+watch_chromium.org, Ben Goodger (Google), Alexei Svitkine (slow)
Visibility:
Public.

Description

Add Windows commandline switch --enable-views-textfield. This switch controls use of NativeTextfield[Win|Views]. Enable and fix NativeTextfieldViewsTest on Windows. Add switch&strings; hook up NativeThemeWin FocusableBorder colors. Create InputMethodWin for --enable-views-textfield (or USE_AURA). Consolidate NativeTextfieldWrapper::CreateWrapper impls. TODO(followup): Fix 2*RequestFocus in unit test setup. TODO(followup): Also toggle OmniboxView[Win|Views]. BUG=131660 TEST=NativeTextfieldViewsTest.*, use the flag to flip the find bar, bookmark bubble/edit, etc. (not omnibox yet) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141272

Patch Set 1 #

Patch Set 2 : Hook up kColorId_[F|Unf]ocusedBorderColor and InputMethodWin. #

Patch Set 3 : Fix CrOS build; update strings/comments; cleanup, etc. #

Total comments: 4

Patch Set 4 : Remove unused includes. #

Total comments: 2

Patch Set 5 : Revert TextfieldController change. #

Total comments: 2

Patch Set 6 : Revert IsNumPadDigit changes for CrOS / simplicity. #

Patch Set 7 : Only create InputMethodWin on USE_AURA and --enable-views-textfield. #

Patch Set 8 : Revert allocator.gyp change for Win build, it must be just a local issue. #

Patch Set 9 : Sync and merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -50 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M ui/base/native_theme/native_theme_win.cc View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M ui/base/ui_base_switches.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/ui_base_switches.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/native_textfield_views.cc View 2 chunks +0 lines, -9 lines 0 comments Download
M ui/views/controls/textfield/native_textfield_views_unittest.cc View 8 chunks +11 lines, -13 lines 0 comments Download
M ui/views/controls/textfield/native_textfield_win.cc View 1 2 3 4 5 3 chunks +0 lines, -15 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 5 5 chunks +26 lines, -3 lines 0 comments Download
M ui/views/events/event.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -3 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/widget/native_widget_win.cc View 1 2 3 4 5 6 2 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
msw
Hey Scott and Oshima, please take a look; thanks! Note my two planned followup TODOs ...
8 years, 6 months ago (2012-06-07 20:24:01 UTC) #1
oshima
switch changes LGTM with nits. http://codereview.chromium.org/10535046/diff/4002/ui/views/controls/textfield/native_textfield_win.cc File ui/views/controls/textfield/native_textfield_win.cc (right): http://codereview.chromium.org/10535046/diff/4002/ui/views/controls/textfield/native_textfield_win.cc#newcode9 ui/views/controls/textfield/native_textfield_win.cc:9: #include "base/command_line.h" do you ...
8 years, 6 months ago (2012-06-07 21:11:41 UTC) #2
msw
http://codereview.chromium.org/10535046/diff/4002/ui/views/controls/textfield/native_textfield_win.cc File ui/views/controls/textfield/native_textfield_win.cc (right): http://codereview.chromium.org/10535046/diff/4002/ui/views/controls/textfield/native_textfield_win.cc#newcode9 ui/views/controls/textfield/native_textfield_win.cc:9: #include "base/command_line.h" On 2012/06/07 21:11:41, oshima wrote: > do ...
8 years, 6 months ago (2012-06-07 21:43:37 UTC) #3
sky
http://codereview.chromium.org/10535046/diff/11004/ui/views/controls/textfield/textfield_controller.h File ui/views/controls/textfield/textfield_controller.h (right): http://codereview.chromium.org/10535046/diff/11004/ui/views/controls/textfield/textfield_controller.h#newcode57 ui/views/controls/textfield/textfield_controller.h:57: virtual bool IsCommandIdEnabled(int command_id) const { return false; } ...
8 years, 6 months ago (2012-06-07 22:26:16 UTC) #4
msw
http://codereview.chromium.org/10535046/diff/11004/ui/views/controls/textfield/textfield_controller.h File ui/views/controls/textfield/textfield_controller.h (right): http://codereview.chromium.org/10535046/diff/11004/ui/views/controls/textfield/textfield_controller.h#newcode57 ui/views/controls/textfield/textfield_controller.h:57: virtual bool IsCommandIdEnabled(int command_id) const { return false; } ...
8 years, 6 months ago (2012-06-07 23:44:06 UTC) #5
tfarina
http://codereview.chromium.org/10535046/diff/5023/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): http://codereview.chromium.org/10535046/diff/5023/ui/views/controls/textfield/textfield.cc#newcode485 ui/views/controls/textfield/textfield.cc:485: if (!UseNativeTextfieldViews()) nit: what happens if this is true? ...
8 years, 6 months ago (2012-06-08 00:15:00 UTC) #6
msw
http://codereview.chromium.org/10535046/diff/5023/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): http://codereview.chromium.org/10535046/diff/5023/ui/views/controls/textfield/textfield.cc#newcode485 ui/views/controls/textfield/textfield.cc:485: if (!UseNativeTextfieldViews()) On 2012/06/08 00:15:00, tfarina wrote: > nit: ...
8 years, 6 months ago (2012-06-08 00:23:48 UTC) #7
sky
LGTM
8 years, 6 months ago (2012-06-08 03:01:48 UTC) #8
msw
I made the CL a bit more prudent in creating new InputMethodWin objects. Now it ...
8 years, 6 months ago (2012-06-08 06:11:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10535046/6020
8 years, 6 months ago (2012-06-08 08:21:11 UTC) #10
commit-bot: I haz the power
Try job failure for 10535046-6020 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-08 09:31:43 UTC) #11
msw
My local and "win" views_unittests build errors are confusing. Without the allocator.gyp change, I get ...
8 years, 6 months ago (2012-06-08 15:45:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10535046/6021
8 years, 6 months ago (2012-06-08 17:15:15 UTC) #13
commit-bot: I haz the power
Failed to apply patch for ui/base/ui_base_switches.h: While running patch -p1 --forward --force; patching file ui/base/ui_base_switches.h ...
8 years, 6 months ago (2012-06-08 18:22:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10535046/25
8 years, 6 months ago (2012-06-08 19:20:56 UTC) #15
commit-bot: I haz the power
8 years, 6 months ago (2012-06-08 20:25:47 UTC) #16
Change committed as 141272

Powered by Google App Engine
This is Rietveld 408576698