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

Unified Diff: chrome/browser/chromeos/login/textfield_with_margin.cc

Issue 10825254: Remove views::KeyEvent, replacing uses of it with ui::KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/chromeos/login/textfield_with_margin.cc
===================================================================
--- chrome/browser/chromeos/login/textfield_with_margin.cc (revision 150588)
+++ chrome/browser/chromeos/login/textfield_with_margin.cc (working copy)
@@ -5,6 +5,7 @@
#include "chrome/browser/chromeos/login/textfield_with_margin.h"
#include "chrome/browser/chromeos/login/helper.h"
+#include "ui/base/event.h"
#include "ui/base/keycodes/keyboard_codes.h"
namespace {
@@ -35,7 +36,7 @@
views::Textfield::Layout();
}
-bool TextfieldWithMargin::OnKeyPressed(const views::KeyEvent& e) {
+bool TextfieldWithMargin::OnKeyPressed(const ui::KeyEvent& e) {
if (e.key_code() == ui::VKEY_ESCAPE && !text().empty()) {
SetText(string16());
return true;
« no previous file with comments | « chrome/browser/chromeos/login/textfield_with_margin.h ('k') | chrome/browser/chromeos/options/vpn_config_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698