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 13namespace ash { 14 15// Stub implementation of CapsLockDelegate mainly for testing. 16class ASH_EXPORT CapsLockDelegateStub : public CapsLockDelegate { 17 public: 18 CapsLockDelegateStub(); 19 virtual ~CapsLockDelegateStub(); 20 21 // Overridden from CapsLockDelegate: 22 virtual bool IsCapsLockEnabled() const 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 35