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

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

Issue 10456055: Stop using "+chromeos(...)" in an XKB layout name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 13 matching lines...) Expand all
24 const std::string& layout_name) OVERRIDE; 24 const std::string& layout_name) OVERRIDE;
25 virtual bool ReapplyCurrentKeyboardLayout() OVERRIDE; 25 virtual bool ReapplyCurrentKeyboardLayout() OVERRIDE;
26 virtual void ReapplyCurrentModifierLockStatus() OVERRIDE; 26 virtual void ReapplyCurrentModifierLockStatus() OVERRIDE;
27 virtual void SetLockedModifiers( 27 virtual void SetLockedModifiers(
28 ModifierLockStatus new_caps_lock_status, 28 ModifierLockStatus new_caps_lock_status,
29 ModifierLockStatus new_num_lock_status) OVERRIDE; 29 ModifierLockStatus new_num_lock_status) OVERRIDE;
30 virtual void SetNumLockEnabled(bool enable_num_lock) OVERRIDE; 30 virtual void SetNumLockEnabled(bool enable_num_lock) OVERRIDE;
31 virtual void SetCapsLockEnabled(bool enable_caps_lock) OVERRIDE; 31 virtual void SetCapsLockEnabled(bool enable_caps_lock) OVERRIDE;
32 virtual bool NumLockIsEnabled() OVERRIDE; 32 virtual bool NumLockIsEnabled() OVERRIDE;
33 virtual bool CapsLockIsEnabled() OVERRIDE; 33 virtual bool CapsLockIsEnabled() OVERRIDE;
34 virtual std::string CreateFullXkbLayoutName(
35 const std::string& layout_name) OVERRIDE;
36 virtual unsigned int GetNumLockMask() OVERRIDE; 34 virtual unsigned int GetNumLockMask() OVERRIDE;
37 virtual void GetLockedModifiers(bool* out_caps_lock_enabled, 35 virtual void GetLockedModifiers(bool* out_caps_lock_enabled,
38 bool* out_num_lock_enabled) OVERRIDE; 36 bool* out_num_lock_enabled) OVERRIDE;
39 37
40 int set_current_keyboard_layout_by_name_count_; 38 int set_current_keyboard_layout_by_name_count_;
41 std::string last_layout_; 39 std::string last_layout_;
42 bool caps_lock_is_enabled_; 40 bool caps_lock_is_enabled_;
43 bool num_lock_is_enabled_; 41 bool num_lock_is_enabled_;
44 // TODO(yusukes): Add more variables for counting the numbers of the API calls 42 // TODO(yusukes): Add more variables for counting the numbers of the API calls
45 43
46 private: 44 private:
47 DISALLOW_COPY_AND_ASSIGN(MockXKeyboard); 45 DISALLOW_COPY_AND_ASSIGN(MockXKeyboard);
48 }; 46 };
49 47
50 // TODO(yusukes): Use the mock in ui/views/ash/caps_lock_handler_browsertest.cc. 48 // TODO(yusukes): Use the mock in ui/views/ash/caps_lock_handler_browsertest.cc.
51 49
52 } // namespace input_method 50 } // namespace input_method
53 } // namespace chromeos 51 } // namespace chromeos
54 52
55 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_XKEYBOARD_H_ 53 #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