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

Unified Diff: chrome/browser/ui/ash/event_rewriter.h

Issue 11417144: Use rewriting to make ChromeOS keyboard F<number> keys produce extended keycodes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/ui/ash/event_rewriter.h
diff --git a/chrome/browser/ui/ash/event_rewriter.h b/chrome/browser/ui/ash/event_rewriter.h
index c0e81a9e6f2c6750f65f006cc769acd8a051a8a2..54b67fe0ec0b913b17a198018d098135984f062d 100644
--- a/chrome/browser/ui/ash/event_rewriter.h
+++ b/chrome/browser/ui/ash/event_rewriter.h
@@ -126,6 +126,11 @@ class EventRewriter : public ash::EventRewriterDelegate,
// Returns true whn the |event| is rewritten.
bool RewriteBackspaceAndArrowKeys(ui::KeyEvent* event);
+ // When the Search key acts as a function key, it remaps Search+1
+ // through Search+= to F1 through F12. Returns true whn the |event| is
+ // rewritten.
+ bool RewriteFunctionKeys(ui::KeyEvent* event);
+
#if defined(OS_CHROMEOS)
// When the Search key acts as a function key, it drops Search key presses,
// and drops the release as well if any key is pressed while Search was down.
@@ -202,6 +207,17 @@ class EventRewriter : public ash::EventRewriterDelegate,
unsigned int f10_xkeycode_;
unsigned int f11_xkeycode_;
unsigned int f12_xkeycode_;
+ unsigned int browser_back_xkeycode_;
+ unsigned int browser_forward_xkeycode_;
+ unsigned int browser_refresh_xkeycode_;
+ unsigned int media_launch_app1_xkeycode_;
+ unsigned int media_launch_app2_xkeycode_;
+ unsigned int brightness_down_xkeycode_;
+ unsigned int brightness_up_xkeycode_;
+ unsigned int volume_mute_xkeycode_;
+ unsigned int volume_down_xkeycode_;
+ unsigned int volume_up_xkeycode_;
+ unsigned int power_xkeycode_;
chromeos::input_method::XKeyboard* xkeyboard_; // for testing.
#endif

Powered by Google App Engine
This is Rietveld 408576698