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

Unified Diff: ui/wm/core/accelerator_delegate.h

Issue 2147013003: Mark POWER key as system key so that it won't be passed to regular apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 4 years, 5 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/accelerators/accelerator_delegate.cc ('k') | ui/wm/core/accelerator_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/accelerator_delegate.h
diff --git a/ui/wm/core/accelerator_delegate.h b/ui/wm/core/accelerator_delegate.h
index 886d7dba44554b167ccc9e68df49f750bc02c5f2..a225a0e01b31d305fe72c0a2d5a8e9b4dc93f799 100644
--- a/ui/wm/core/accelerator_delegate.h
+++ b/ui/wm/core/accelerator_delegate.h
@@ -16,16 +16,9 @@ class AcceleratorDelegate {
public:
virtual ~AcceleratorDelegate() {}
- // Type of keys that triggers accelerators.
- enum KeyType {
- KEY_TYPE_SYSTEM,
- KEY_TYPE_OTHER,
- };
-
// Return true if the |accelerator| has been processed.
virtual bool ProcessAccelerator(const ui::KeyEvent& event,
- const ui::Accelerator& accelerator,
- KeyType key_type) = 0;
+ const ui::Accelerator& accelerator) = 0;
};
} // namespace wm
« no previous file with comments | « ash/accelerators/accelerator_delegate.cc ('k') | ui/wm/core/accelerator_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698