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

Side by Side Diff: content/test/mock_keyboard.cc

Issue 1995573004: Fix "unused variable" warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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 "content/test/mock_keyboard.h" 5 #include "content/test/mock_keyboard.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 MockKeyboard::MockKeyboard() 12 MockKeyboard::MockKeyboard() {}
13 : keyboard_layout_(LAYOUT_NULL),
14 keyboard_modifiers_(INVALID) {
15 }
16 13
17 MockKeyboard::~MockKeyboard() { 14 MockKeyboard::~MockKeyboard() {
18 } 15 }
19 16
20 int MockKeyboard::GetCharacters(Layout layout, 17 int MockKeyboard::GetCharacters(Layout layout,
21 int key_code, 18 int key_code,
22 Modifiers modifiers, 19 Modifiers modifiers,
23 std::wstring* output) { 20 std::wstring* output) {
24 #if defined(OS_WIN) 21 #if defined(OS_WIN)
25 CHECK(output); 22 CHECK(output);
(...skipping 17 matching lines...) Expand all
43 40
44 // Retrieve Unicode characters associate with the key code. 41 // Retrieve Unicode characters associate with the key code.
45 return driver_.GetCharacters(key_code, output); 42 return driver_.GetCharacters(key_code, output);
46 #else 43 #else
47 NOTIMPLEMENTED(); 44 NOTIMPLEMENTED();
48 return -1; 45 return -1;
49 #endif 46 #endif
50 } 47 }
51 48
52 } // namespace content 49 } // namespace content
OLDNEW
« content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc ('K') | « content/test/mock_keyboard.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698