From f4c92b381a0aaba5f36c6f5afdac572bee389b39 Mon Sep 17 00:00:00 2001 From: "mazda@chromium.org" Date: Tue, 28 Aug 2012 00:59:59 +0000 Subject: 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 --- ash/caps_lock_delegate_stub.cc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ash/caps_lock_delegate_stub.cc (limited to 'ash/caps_lock_delegate_stub.cc') 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 -- cgit v1.1