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

Issue 9187009: Basic Drawn text for new GTK Autofill popup. (Closed)

Created:
8 years, 11 months ago by csharp
Modified:
8 years, 11 months ago
CC:
chromium-reviews, GeorgeY, dhollowa+watch_chromium.org, Ilya Sherman, dyu1
Visibility:
Public.

Description

Basic Drawn text for new GTK Autofill popup. Begins draws the text (value and label) in the popup when displayed. This doesn't handle most of the complex issue (such as RTL) since this is more intended to give visiable feedback while working on ohter new autofill features. BUG=51644 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=118497

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use Cairo #

Total comments: 44

Patch Set 3 : Responding to comments #

Total comments: 7

Patch Set 4 : Responding to Comments #

Total comments: 20

Patch Set 5 : Responding to comments #

Patch Set 6 : Fixing mac compile error #

Patch Set 7 : Replacing header with typedefs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -27 lines) Patch
M chrome/browser/autofill/autofill_popup_view.h View 1 2 3 4 5 4 chunks +34 lines, -5 lines 0 comments Download
M chrome/browser/autofill/autofill_popup_view.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_popup_view_browsertest.cc View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.h View 1 2 3 4 5 6 2 chunks +20 lines, -9 lines 0 comments Download
M chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc View 1 2 3 4 4 chunks +133 lines, -8 lines 0 comments Download
M chrome/browser/ui/gtk/gtk_util.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/gtk_util.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
csharp
Most of this code is based off of omnibox_popup_view_gtk.cc so I might have misunderstood how ...
8 years, 11 months ago (2012-01-11 16:41:57 UTC) #1
Elliot Glaysher
http://codereview.chromium.org/9187009/diff/1/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc File chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc (right): http://codereview.chromium.org/9187009/diff/1/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc#newcode116 chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc:116: GdkGC* gc = gdk_gc_new(drawable); Please don't use GdkGC or ...
8 years, 11 months ago (2012-01-11 19:01:46 UTC) #2
csharp
http://codereview.chromium.org/9187009/diff/1/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc File chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc (right): http://codereview.chromium.org/9187009/diff/1/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc#newcode116 chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc:116: GdkGC* gc = gdk_gc_new(drawable); On 2012/01/11 19:01:47, Elliot Glaysher ...
8 years, 11 months ago (2012-01-11 22:40:04 UTC) #3
Ilya Sherman
Hmm, no new tests? http://codereview.chromium.org/9187009/diff/4001/chrome/browser/autofill/autofill_popup_view.h File chrome/browser/autofill/autofill_popup_view.h (right): http://codereview.chromium.org/9187009/diff/4001/chrome/browser/autofill/autofill_popup_view.h#newcode30 chrome/browser/autofill/autofill_popup_view.h:30: // Platform independent work. nit: ...
8 years, 11 months ago (2012-01-11 23:36:28 UTC) #4
csharp
Yup, there are no new tests. I'm not sure how to add tests here, in ...
8 years, 11 months ago (2012-01-12 19:39:08 UTC) #5
Elliot Glaysher
one more thing. http://codereview.chromium.org/9187009/diff/4001/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc File chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc (right): http://codereview.chromium.org/9187009/diff/4001/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc#newcode128 chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc:128: COMPILE_ASSERT(kBorderThickness == 1, border_1px_implied); On 2012/01/11 ...
8 years, 11 months ago (2012-01-12 20:34:11 UTC) #6
Ilya Sherman
http://codereview.chromium.org/9187009/diff/4001/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc File chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc (right): http://codereview.chromium.org/9187009/diff/4001/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc#newcode68 chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc:68: row_height_ = font_.GetHeight(); On 2012/01/12 19:39:11, csharp wrote: > ...
8 years, 11 months ago (2012-01-13 02:45:36 UTC) #7
csharp
http://codereview.chromium.org/9187009/diff/4001/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc File chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc (right): http://codereview.chromium.org/9187009/diff/4001/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc#newcode160 chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc:160: line_rect.y() + ((row_height_ - actual_content_height) / 2)); On 2012/01/13 ...
8 years, 11 months ago (2012-01-13 18:09:03 UTC) #8
Elliot Glaysher
lgtm http://codereview.chromium.org/9187009/diff/4001/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc File chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc (right): http://codereview.chromium.org/9187009/diff/4001/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc#newcode160 chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc:160: line_rect.y() + ((row_height_ - actual_content_height) / 2)); On ...
8 years, 11 months ago (2012-01-13 20:39:30 UTC) #9
Ilya Sherman
LGTM. Thanks for your patience on this review. http://codereview.chromium.org/9187009/diff/15001/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc File chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc (right): http://codereview.chromium.org/9187009/diff/15001/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc#newcode21 chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc:21: // ...
8 years, 11 months ago (2012-01-20 07:26:46 UTC) #10
csharp
http://codereview.chromium.org/9187009/diff/15001/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc File chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc (right): http://codereview.chromium.org/9187009/diff/15001/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc#newcode21 chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc:21: // The amount of minimum padding between the autofill ...
8 years, 11 months ago (2012-01-20 16:20:44 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/csharp@chromium.org/9187009/23001
8 years, 11 months ago (2012-01-20 16:21:02 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/csharp@chromium.org/9187009/24003
8 years, 11 months ago (2012-01-20 18:09:33 UTC) #13
commit-bot: I haz the power
Try job failure for 9187009-24003 on mac_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=10764 Step "update" is always ...
8 years, 11 months ago (2012-01-20 18:11:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/csharp@chromium.org/9187009/24003
8 years, 11 months ago (2012-01-20 18:15:14 UTC) #15
Elliot Glaysher
http://codereview.chromium.org/9187009/diff/15001/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.h File chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.h (right): http://codereview.chromium.org/9187009/diff/15001/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.h#newcode9 chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.h:9: #include <gtk/gtk.h> On 2012/01/20 16:20:44, csharp wrote: > On ...
8 years, 11 months ago (2012-01-20 18:43:59 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/csharp@chromium.org/9187009/19008
8 years, 11 months ago (2012-01-20 19:06:58 UTC) #17
commit-bot: I haz the power
Change committed as 118497
8 years, 11 months ago (2012-01-20 21:17:24 UTC) #18
csharp
8 years, 11 months ago (2012-01-20 21:20:00 UTC) #19
Forgot to publish this draft, the change did make it in to the code just
submitted.

http://codereview.chromium.org/9187009/diff/15001/chrome/browser/ui/gtk/autof...
File chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.h (right):

http://codereview.chromium.org/9187009/diff/15001/chrome/browser/ui/gtk/autof...
chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.h:9: #include <gtk/gtk.h>
On 2012/01/20 18:43:59, Elliot Glaysher wrote:
> On 2012/01/20 16:20:44, csharp wrote:
> > On 2012/01/20 07:26:47, Ilya Sherman wrote:
> > > nit: Just noticed -- can the GTK classes be forward-declared rather than
> > > #included here?
> > 
> > I don't think they can, I tried and ran into error messages like this, 
> > /usr/include/gtk-2.0/gdk/gdkevents.h:48: error: 'GdkEventExpose' has a
> previous
> > declaration here
> > 
> > Not exactly sure why, but I suspect it is because I had to include the font
> > header
> 
> So:
> 
> typedef struct _GdkEventExpose GdkEventExpose;
> typedef struct _GtkWidget GtkWidget;
> 
> don't work?

Oops, they do. I was just using class GtkWidget. Updated the code and
resubmitting

Powered by Google App Engine
This is Rietveld 408576698