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

Unified Diff: ash/caps_lock_delegate_stub.h

Issue 10878058: Move functions for controlling Caps Lock to CapsLockDelegate from SystemTrayDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comment Created 8 years, 4 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: ash/caps_lock_delegate_stub.h
diff --git a/ash/caps_lock_delegate_stub.h b/ash/caps_lock_delegate_stub.h
new file mode 100644
index 0000000000000000000000000000000000000000..d701e47bc4801d3702edf18a668251a0d5509351
--- /dev/null
+++ b/ash/caps_lock_delegate_stub.h
@@ -0,0 +1,34 @@
+// 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_STUB_H_
+#define ASH_CAPS_LOCK_DELEGATE_STUB_H_
+
+#include "ash/ash_export.h"
+#include "ash/caps_lock_delegate.h"
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+
+namespace ash {
+
+// Stub implementation of CapsLockDelegate mainly for testing.
+class ASH_EXPORT CapsLockDelegateStub : public CapsLockDelegate {
+ public:
+ CapsLockDelegateStub();
+ virtual ~CapsLockDelegateStub();
+
+ // Overridden from CapsLockDelegate:
+ virtual bool IsCapsLockEnabled() const OVERRIDE;
+ virtual void SetCapsLockEnabled(bool enabled) OVERRIDE;
+ virtual void ToggleCapsLock() OVERRIDE;
+
+ private:
+ bool enabled_;
+
+ DISALLOW_COPY_AND_ASSIGN(CapsLockDelegateStub);
+};
+
+} // namespace ash
+
+#endif // ASH_CAPS_LOCK_DELEGATE_STUB

Powered by Google App Engine
This is Rietveld 408576698