Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: chrome/browser/chromeos/input_method/mock_xkeyboard.h

Issue 10008107: Improve MockXKeyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/mock_xkeyboard.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_XKEYBOARD_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_XKEYBOARD_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_XKEYBOARD_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_XKEYBOARD_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/chromeos/input_method/xkeyboard.h" 9 #include "chrome/browser/chromeos/input_method/xkeyboard.h"
10 10
(...skipping 23 matching lines...) Expand all
34 virtual bool CapsLockIsEnabled() OVERRIDE; 34 virtual bool CapsLockIsEnabled() OVERRIDE;
35 virtual std::string CreateFullXkbLayoutName( 35 virtual std::string CreateFullXkbLayoutName(
36 const std::string& layout_name, 36 const std::string& layout_name,
37 const ModifierMap& modifire_map) OVERRIDE; 37 const ModifierMap& modifire_map) OVERRIDE;
38 virtual unsigned int GetNumLockMask() OVERRIDE; 38 virtual unsigned int GetNumLockMask() OVERRIDE;
39 virtual void GetLockedModifiers(bool* out_caps_lock_enabled, 39 virtual void GetLockedModifiers(bool* out_caps_lock_enabled,
40 bool* out_num_lock_enabled) OVERRIDE; 40 bool* out_num_lock_enabled) OVERRIDE;
41 41
42 int set_current_keyboard_layout_by_name_count_; 42 int set_current_keyboard_layout_by_name_count_;
43 std::string last_layout_; 43 std::string last_layout_;
44 bool caps_lock_is_enabled_;
45 bool num_lock_is_enabled_;
44 // TODO(yusukes): Add more variables for counting the numbers of the API calls 46 // TODO(yusukes): Add more variables for counting the numbers of the API calls
45 47
46 private: 48 private:
47 DISALLOW_COPY_AND_ASSIGN(MockXKeyboard); 49 DISALLOW_COPY_AND_ASSIGN(MockXKeyboard);
48 }; 50 };
49 51
50 // TODO(yusukes): Use the mock in ui/views/ash/caps_lock_handler_browsertest.cc. 52 // TODO(yusukes): Use the mock in ui/views/ash/caps_lock_handler_browsertest.cc.
51 53
52 } // namespace input_method 54 } // namespace input_method
53 } // namespace chromeos 55 } // namespace chromeos
54 56
55 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_XKEYBOARD_H_ 57 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_XKEYBOARD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/mock_xkeyboard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698