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

Unified Diff: chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc

Issue 159853003: Moving the autofill enum from blink side to browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc b/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc
index 330d54acc55c2b6a7930f550ed467604391385ff..2b7603d7a7c2b4d90f1383d08905cbaebb08b09c 100644
--- a/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc
+++ b/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc
@@ -11,8 +11,8 @@
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/autofill/autofill_popup_controller.h"
#include "chrome/browser/ui/gtk/gtk_util.h"
+#include "components/autofill/core/browser/popup_item_ids.h"
#include "grit/ui_resources.h"
-#include "third_party/WebKit/public/web/WebAutofillClient.h"
#include "ui/base/gtk/gtk_hig_constants.h"
#include "ui/base/gtk/gtk_windowing.h"
#include "ui/base/resource/resource_bundle.h"
@@ -24,8 +24,6 @@
#include "ui/gfx/pango_util.h"
#include "ui/gfx/text_utils.h"
-using blink::WebAutofillClient;
-
namespace {
const GdkColor kBorderColor = GDK_COLOR_RGB(0xc7, 0xca, 0xce);
@@ -144,7 +142,7 @@ gboolean AutofillPopupViewGtk::HandleExpose(GtkWidget* widget,
if (!line_rect.Intersects(damage_rect))
continue;
- if (controller_->identifiers()[i] == WebAutofillClient::MenuItemIDSeparator)
+ if (controller_->identifiers()[i] == POPUP_ITEM_ID_SEPARATOR)
DrawSeparator(cr, line_rect);
else
DrawAutofillEntry(cr, i, line_rect);

Powered by Google App Engine
This is Rietveld 408576698