diff options
author | mazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-28 00:59:59 +0000 |
---|---|---|
committer | mazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-28 00:59:59 +0000 |
commit | f4c92b381a0aaba5f36c6f5afdac572bee389b39 (patch) | |
tree | 90d68de6efd62ade78148dfa5b8af5f46a00be32 /ash/caps_lock_delegate_stub.cc | |
parent | 76ab62b1527261a8547c59b7c81cf53a2af4b387 (diff) | |
download | chromium_src-f4c92b381a0aaba5f36c6f5afdac572bee389b39.zip chromium_src-f4c92b381a0aaba5f36c6f5afdac572bee389b39.tar.gz chromium_src-f4c92b381a0aaba5f36c6f5afdac572bee389b39.tar.bz2 |
Move functions for controlling Caps Lock to CapsLockDelegate from SystemTrayDelegate.
- Add functions for controlling Caps Lock to CapsLockDelegate
- Move the ownership of CapsLockDelegate to Shell from AcceleratorController
- Add ShellDelegate::CreateCapsLockDelegate
BUG=144474
Review URL: https://chromiumcodereview.appspot.com/10878058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153597 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/caps_lock_delegate_stub.cc')
-rw-r--r-- | ash/caps_lock_delegate_stub.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ash/caps_lock_delegate_stub.cc b/ash/caps_lock_delegate_stub.cc new file mode 100644 index 0000000..8dc61cf --- /dev/null +++ b/ash/caps_lock_delegate_stub.cc @@ -0,0 +1,26 @@ +// 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. + +#include "ash/caps_lock_delegate_stub.h" + +namespace ash { + +CapsLockDelegateStub::CapsLockDelegateStub() + : enabled_(false) {} + +CapsLockDelegateStub::~CapsLockDelegateStub() {} + +bool CapsLockDelegateStub::IsCapsLockEnabled() const { + return enabled_; +} + +void CapsLockDelegateStub::SetCapsLockEnabled(bool enabled) { + enabled_ = enabled; +} + +void CapsLockDelegateStub::ToggleCapsLock() { + enabled_ = !enabled_; +} + +} // namespace ash |