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

Unified Diff: chrome/browser/ui/views/autofill/autofill_popup_view_views.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
« no previous file with comments | « chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc ('k') | components/autofill/core/browser/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/autofill/autofill_popup_view_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc b/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc
index 02c2880164fcd107e4b03f6a3929462015a4a1cc..99a8f031355e169cfca2a75c7454eab2b4d7df8a 100644
--- a/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc
@@ -5,8 +5,8 @@
#include "chrome/browser/ui/views/autofill/autofill_popup_view_views.h"
#include "chrome/browser/ui/autofill/autofill_popup_controller.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/resource/resource_bundle.h"
#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/gfx/canvas.h"
@@ -18,8 +18,6 @@
#include "ui/views/border.h"
#include "ui/views/widget/widget.h"
-using blink::WebAutofillClient;
-
namespace autofill {
AutofillPopupViewViews::AutofillPopupViewViews(
@@ -54,8 +52,7 @@ void AutofillPopupViewViews::OnPaint(gfx::Canvas* canvas) {
for (size_t i = 0; i < controller_->names().size(); ++i) {
gfx::Rect line_rect = controller_->GetRowBounds(i);
- if (controller_->identifiers()[i] ==
- WebAutofillClient::MenuItemIDSeparator) {
+ if (controller_->identifiers()[i] == POPUP_ITEM_ID_SEPARATOR) {
canvas->DrawRect(line_rect, kItemTextColor);
} else {
DrawAutofillEntry(canvas, i, line_rect);
« no previous file with comments | « chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc ('k') | components/autofill/core/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698