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

Issue 6245003: Views-implementation of AutocompleteEditView (Closed)

Created:
9 years, 11 months ago by oshima
Modified:
9 years, 6 months ago
Reviewers:
Peter Kasting, sky
CC:
chromium-reviews, Paweł Hajdan Jr., varunjain
Visibility:
Public.

Description

Views-implementation of AutocompleteEditView. This is based on GTK implementation. Please see the header file for features that are not implemented yet. Textfield changes (files under views/controls/textfield) are being reviewed by Ben in separate CL (http://codereview.chromium.org/6314012/), so you don't have to review them (but you're welcome to do so). * Updated factory method in AutocompleteEditViewGtk to return views-implementation when TextfieldViews is enabled. * Added new option to FillLayout so that it lays out its child inside border. * Added missing GD_PK_Delete to keycode conversion. * Enabled tests in autodomplete_edit_view_browsertests for views-implementation as well. I moved the test body to the class and then called them from each test class to avoid having another test configuration on bots. Let me know if there is better way. BUG=none TEST=Enabled autocomplete_edit_view_browsertest for views-implementation. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72113

Patch Set 1 #

Patch Set 2 : " #

Patch Set 3 : " #

Total comments: 26

Patch Set 4 : address comment. revert FillLayout change and add Layout to AutocompleteEditViewViews #

Patch Set 5 : run try #

Patch Set 6 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1334 lines, -369 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_browsertest.cc View 1 2 3 4 5 5 chunks +475 lines, -369 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
A chrome/browser/autocomplete/autocomplete_edit_view_views.h View 1 2 3 1 chunk +207 lines, -0 lines 0 comments Download
A chrome/browser/autocomplete/autocomplete_edit_view_views.cc View 1 2 3 1 chunk +635 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/keycodes/keyboard_code_conversion_gtk.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
oshima
9 years, 11 months ago (2011-01-20 16:33:21 UTC) #1
Peter Kasting
LGTM http://codereview.chromium.org/6245003/diff/58001/chrome/browser/autocomplete/autocomplete_edit_view_views.cc File chrome/browser/autocomplete/autocomplete_edit_view_views.cc (right): http://codereview.chromium.org/6245003/diff/58001/chrome/browser/autocomplete/autocomplete_edit_view_views.cc#newcode123 chrome/browser/autocomplete/autocomplete_edit_view_views.cc:123: set_border(views::Border::CreateEmptyBorder(kAutocompleteVerticalMargin, Nit: Just put the zeros on the ...
9 years, 11 months ago (2011-01-20 19:44:37 UTC) #2
oshima
Peter, I reverted FillLayout change and add Layout to AutocompleteEditView as this is only user ...
9 years, 11 months ago (2011-01-20 21:35:48 UTC) #3
Peter Kasting
Not going to re-review, I trust you. http://codereview.chromium.org/6245003/diff/58001/views/controls/textfield/native_textfield_views_unittest.cc File views/controls/textfield/native_textfield_views_unittest.cc (right): http://codereview.chromium.org/6245003/diff/58001/views/controls/textfield/native_textfield_views_unittest.cc#newcode26 views/controls/textfield/native_textfield_views_unittest.cc:26: EXPECT_EQ(ASCIIToWide(ascii), UTF16ToWide(utf16)) ...
9 years, 11 months ago (2011-01-20 21:41:15 UTC) #4
oshima
On 2011/01/20 21:41:15, Peter Kasting wrote: > Not going to re-review, I trust you. > ...
9 years, 11 months ago (2011-01-21 00:19:25 UTC) #5
oshima
9 years, 11 months ago (2011-01-21 08:12:39 UTC) #6
On 2011/01/21 00:19:25, oshima wrote:
> On 2011/01/20 21:41:15, Peter Kasting wrote:
> > Not going to re-review, I trust you.
> > 
> >
>
http://codereview.chromium.org/6245003/diff/58001/views/controls/textfield/na...
> > File views/controls/textfield/native_textfield_views_unittest.cc (right):
> > 
> >
>
http://codereview.chromium.org/6245003/diff/58001/views/controls/textfield/na...
> > views/controls/textfield/native_textfield_views_unittest.cc:26:
> > EXPECT_EQ(ASCIIToWide(ascii), UTF16ToWide(utf16))
> > On 2011/01/20 21:35:48, oshima wrote:
> > > On 2011/01/20 19:44:37, Peter Kasting wrote:
> > > > Nit: Why not just ASCIIToUTF16() instead of converting both to wide?
> > > > 
> > > > Also, frankly, I'd probably prefer to just write
> > > EXPECT_XX(ASCIIToUTF16("foo"),
> > > > ...); than use these macros, but whatever.
> > > 
> > > Scott suggested to use this in order to be able to print the string as
> > readable
> > > string when check failed because string16 is printed as { 0x80, ... }
> instead
> > of
> > > "abc" on linux.
> > 
> > Then we should write an appropriate operator<<() for string16.  Otherwise
> > everyone everywhere suffers from this problem.
> > 
> > Can you either fix this or file a bug on doing so, and note that we should
> > remove all these kinds of macros when we fix it?
> 
> I'll file a bug to add operator<<().

Looks like what we need is gtest function but not operator. I'll look into more
details tomorrow.

Powered by Google App Engine
This is Rietveld 408576698