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

Unified Diff: ash/shell.h

Issue 9838010: Automatically remap Command key on an Apple keyboard to Control [part 1 of 2 - Ash part] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 8 years, 9 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
« no previous file with comments | « ash/key_rewriter_delegate.h ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 5aac16a55f28a8629dd7c3ca2ddb276f6ae2dffa..d9ebeceaf1d67f40b4ddab46e8652aa9c2c5b4fb 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -63,6 +63,7 @@ class DragDropController;
class EventClientImpl;
class FocusCycler;
class InputMethodEventFilter;
+class KeyRewriterEventFilter;
class MonitorController;
class PartialScreenshotEventFilter;
class ResizeShadowController;
@@ -177,6 +178,9 @@ class ASH_EXPORT Shell {
internal::TooltipController* tooltip_controller() {
return tooltip_controller_.get();
}
+ internal::KeyRewriterEventFilter* key_rewriter_filter() {
+ return key_rewriter_filter_.get();
+ }
internal::PartialScreenshotEventFilter* partial_screenshot_filter() {
return partial_screenshot_filter_.get();
}
@@ -295,8 +299,8 @@ class ASH_EXPORT Shell {
scoped_ptr<internal::EventClientImpl> event_client_;
scoped_ptr<internal::MonitorController> monitor_controller_;
- // An event filter that pre-handles all key events to send them to an IME.
- scoped_ptr<internal::InputMethodEventFilter> input_method_filter_;
+ // An event filter that rewrites or drops a key event.
+ scoped_ptr<internal::KeyRewriterEventFilter> key_rewriter_filter_;
// An event filter that pre-handles key events while the partial
// screenshot UI is active.
@@ -307,6 +311,9 @@ class ASH_EXPORT Shell {
scoped_ptr<internal::AcceleratorFilter> accelerator_filter_;
#endif
+ // An event filter that pre-handles all key events to send them to an IME.
+ scoped_ptr<internal::InputMethodEventFilter> input_method_filter_;
+
// The shelf for managing the launcher and the status widget in non-compact
// mode. Shell does not own the shelf. Instead, it is owned by container of
// the status area.
« no previous file with comments | « ash/key_rewriter_delegate.h ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698