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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_CAPS_LOCK_DELEGATE_STUB_H_
6 #define ASH_CAPS_LOCK_DELEGATE_STUB_H_
7
8 #include "ash/ash_export.h"
9 #include "ash/caps_lock_delegate.h"
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12
13 namespace ash {
14
15 // Stub implementation of CapsLockDelegate mainly for testing.
16 class ASH_EXPORT CapsLockDelegateStub : public CapsLockDelegate {
17 public:
18 CapsLockDelegateStub();
19 virtual ~CapsLockDelegateStub();
20
21 // Overridden from CapsLockDelegate:
22 virtual bool IsCapsLockEnabled() OVERRIDE;
23 virtual void SetCapsLockEnabled(bool enabled) OVERRIDE;
24 virtual void ToggleCapsLock() OVERRIDE;
25
26 private:
27 bool enabled_;
28
29 DISALLOW_COPY_AND_ASSIGN(CapsLockDelegateStub);
30 };
31
32 } // namespace ash
33
34 #endif // ASH_CAPS_LOCK_DELEGATE_STUB
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698