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

Unified Diff: ui/views/controls/textfield/native_textfield_win.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: ui/views/controls/textfield/native_textfield_win.cc
===================================================================
--- ui/views/controls/textfield/native_textfield_win.cc (revision 150588)
+++ ui/views/controls/textfield/native_textfield_win.cc (working copy)
@@ -17,6 +17,7 @@
#include "ui/base/accessibility/accessible_view_state.h"
#include "ui/base/clipboard/clipboard.h"
#include "ui/base/clipboard/scoped_clipboard_writer.h"
+#include "ui/base/event.h"
#include "ui/base/keycodes/keyboard_codes.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/l10n/l10n_util_win.h"
@@ -374,11 +375,11 @@
return 0U;
}
-bool NativeTextfieldWin::HandleKeyPressed(const views::KeyEvent& event) {
+bool NativeTextfieldWin::HandleKeyPressed(const ui::KeyEvent& event) {
return false;
}
-bool NativeTextfieldWin::HandleKeyReleased(const views::KeyEvent& event) {
+bool NativeTextfieldWin::HandleKeyReleased(const ui::KeyEvent& event) {
return false;
}
@@ -1015,7 +1016,7 @@
TextfieldController* controller = textfield_->GetController();
bool handled = false;
if (controller) {
- KeyEvent event(*msg);
+ ui::KeyEvent event(*msg, msg->message == WM_CHAR);
handled = controller->HandleKeyEvent(textfield_, event);
}
« no previous file with comments | « ui/views/controls/textfield/native_textfield_win.h ('k') | ui/views/controls/textfield/native_textfield_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698