• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "ash/caps_lock_delegate_stub.h"
6 
7 namespace ash {
8 
CapsLockDelegateStub()9 CapsLockDelegateStub::CapsLockDelegateStub()
10     : enabled_(false) {}
11 
~CapsLockDelegateStub()12 CapsLockDelegateStub::~CapsLockDelegateStub() {}
13 
IsCapsLockEnabled() const14 bool CapsLockDelegateStub::IsCapsLockEnabled() const {
15   return enabled_;
16 }
17 
SetCapsLockEnabled(bool enabled)18 void CapsLockDelegateStub::SetCapsLockEnabled(bool enabled) {
19   enabled_ = enabled;
20 }
21 
ToggleCapsLock()22 void CapsLockDelegateStub::ToggleCapsLock() {
23   enabled_ = !enabled_;
24 }
25 
26 }  // namespace ash
27