chromeos: dbus: add Bluetooth properties support
[chromium-blink-merge.git] / ash / caps_lock_delegate.h
blobdd843e7ff7a77b2eda400df025d52976156c33e6
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.
5 #ifndef ASH_CAPS_LOCK_DELEGATE_H_
6 #define ASH_CAPS_LOCK_DELEGATE_H_
7 #pragma once
9 namespace ash {
11 // Delegate for toggling Caps Lock.
12 class CapsLockDelegate {
13 public:
14 virtual ~CapsLockDelegate() {}
16 // A derived class should do either of the following: 1) toggle Caps Lock and
17 // return true, or 2) do nothing and return false (see crosbug.com/110127).
18 virtual bool HandleToggleCapsLock() = 0;
20 } // namespace ash
22 #endif // ASH_CAPS_LOCK_DELEGATE_H_