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

Unified Diff: ash/caps_lock_delegate.h

Issue 9242003: Handle Caps Lock short cut (Shift+Search) in ash [part 1 of 2]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 8 years, 11 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/ash.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/caps_lock_delegate.h
diff --git a/ash/caps_lock_delegate.h b/ash/caps_lock_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..dd843e7ff7a77b2eda400df025d52976156c33e6
--- /dev/null
+++ b/ash/caps_lock_delegate.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_CAPS_LOCK_DELEGATE_H_
+#define ASH_CAPS_LOCK_DELEGATE_H_
+#pragma once
+
+namespace ash {
+
+// Delegate for toggling Caps Lock.
+class CapsLockDelegate {
+ public:
+ virtual ~CapsLockDelegate() {}
+
+ // A derived class should do either of the following: 1) toggle Caps Lock and
+ // return true, or 2) do nothing and return false (see crosbug.com/110127).
+ virtual bool HandleToggleCapsLock() = 0;
+};
+} // namespace ash
+
+#endif // ASH_CAPS_LOCK_DELEGATE_H_
« no previous file with comments | « ash/ash.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698