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

Unified Diff: ui/base/events/key_identifier_conversion.h

Issue 13957005: Move KeyIdentifier->KeyEvent conversion to src/ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/base/events/key_identifier_conversion.h
diff --git a/chrome/browser/extensions/key_identifier_conversion_views.h b/ui/base/events/key_identifier_conversion.h
similarity index 62%
rename from chrome/browser/extensions/key_identifier_conversion_views.h
rename to ui/base/events/key_identifier_conversion.h
index d13f47a5d89bfeb9d3dcbc750e150e6a77df0e19..1c8bc94728e5246c9ac5915b920f5df0f2594080 100644
--- a/chrome/browser/extensions/key_identifier_conversion_views.h
+++ b/ui/base/events/key_identifier_conversion.h
@@ -2,21 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_KEY_IDENTIFIER_CONVERSION_VIEWS_H_
-#define CHROME_BROWSER_EXTENSIONS_KEY_IDENTIFIER_CONVERSION_VIEWS_H_
-
-#include "ui/base/keycodes/keyboard_codes.h"
+#ifndef UI_BASE_EVENTS_KEY_IDENTIFIER_CONVERSION_H_
+#define UI_BASE_EVENTS_KEY_IDENTIFIER_CONVERSION_H_
#include <string>
+#include "ui/base/keycodes/keyboard_codes.h"
sadrul 2013/04/15 02:05:12 You probably don't need this include here?
bryeung 2013/04/15 15:34:13 Good catch. Done.
+#include "ui/base/ui_export.h"
+
namespace ui {
+
class KeyEvent;
-}
// Convert a KeyIdentifer (see Section 6.3.3 here:
// http://www.w3.org/TR/DOM-Level-3-Events/#keyset-keyidentifiers)
// to a ui::KeyEvent.
-const ui::KeyEvent& KeyEventFromKeyIdentifier(
+UI_EXPORT const ui::KeyEvent& KeyEventFromKeyIdentifier(
sadrul 2013/04/15 02:05:12 I wonder if there could be a KeyEvent constructor
bryeung 2013/04/15 15:34:13 It could, but I didn't for two reasons: - this is
sadrul 2013/04/15 16:53:28 Thanks for explaining. I now agree with you that h
const std::string& key_identifier);
-#endif // CHROME_BROWSER_EXTENSIONS_KEY_IDENTIFIER_CONVERSION_VIEWS_H_
+} // namespace ui
+
+#endif // UI_BASE_EVENTS_KEY_IDENTIFIER_CONVERSION_H_

Powered by Google App Engine
This is Rietveld 408576698