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

Side by Side Diff: chrome/browser/chromeos/input_method/ibus_keymap.cc

Issue 7324020: Fix undefined reference errors in input_method_engine.cc for Chrome OS build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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 | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/input_method/ibus_keymap.h" 5 #include "chrome/browser/chromeos/input_method/ibus_keymap.h"
6 6
7 #if defined(HAVE_IBUS) 7 #if defined(HAVE_IBUS)
8 #include <ibus.h> 8 #include <ibus.h>
9 #endif 9 #endif
10 10
11 namespace chromeos {
12 namespace input_method {
13
11 #if defined(HAVE_IBUS) 14 #if defined(HAVE_IBUS)
12 std::string GetIBusKey(int keyval) { 15 std::string GetIBusKey(int keyval) {
13 // TODO: Ensure all keys are supported. 16 // TODO: Ensure all keys are supported.
14 switch (keyval) { 17 switch (keyval) {
15 case IBUS_Escape: 18 case IBUS_Escape:
16 return "Esc"; 19 return "Esc";
17 case IBUS_F1: 20 case IBUS_F1:
18 return "HistoryBack"; 21 return "HistoryBack";
19 case IBUS_F2: 22 case IBUS_F2:
20 return "HistoryForward"; 23 return "HistoryForward";
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 82 }
80 #else 83 #else
81 std::string GetIBusKey(int keyval, int keycode) { 84 std::string GetIBusKey(int keyval, int keycode) {
82 return ""; 85 return "";
83 } 86 }
84 87
85 std::string GetIBusKeyCode(int keyval, int keycode) { 88 std::string GetIBusKeyCode(int keyval, int keycode) {
86 return ""; 89 return "";
87 } 90 }
88 #endif // HAVE_IBUS 91 #endif // HAVE_IBUS
92
93 } // namespace input_method
94 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698