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

Unified Diff: chrome/browser/extensions/extension_input_api.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/extensions/extension_input_api.cc
===================================================================
--- chrome/browser/extensions/extension_input_api.cc (revision 150588)
+++ chrome/browser/extensions/extension_input_api.cc (working copy)
@@ -14,6 +14,7 @@
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/common/chrome_notification_types.h"
+#include "ui/base/event.h"
#include "ui/views/events/event.h"
#include "ui/views/ime/input_method.h"
#include "ui/views/views_delegate.h"
@@ -93,8 +94,7 @@
EXTENSION_FUNCTION_VALIDATE(args->GetString(kKeyIdentifier, &identifier));
TrimWhitespaceASCII(identifier, TRIM_ALL, &identifier);
- const views::KeyEvent& prototype_event =
- KeyEventFromKeyIdentifier(identifier);
+ const ui::KeyEvent& prototype_event = KeyEventFromKeyIdentifier(identifier);
uint16 character = 0;
if (prototype_event.key_code() == ui::VKEY_UNKNOWN) {
// Check if |identifier| is "U+NNNN" format.
@@ -124,7 +124,7 @@
return false;
}
- views::KeyEvent event(type, prototype_event.key_code(), flags);
+ ui::KeyEvent event(type, prototype_event.key_code(), flags);
if (character) {
event.set_character(character);
event.set_unmodified_character(character);
« no previous file with comments | « chrome/browser/chromeos/options/wimax_config_view.cc ('k') | chrome/browser/extensions/key_identifier_conversion_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698