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

Side by Side Diff: content/browser/renderer_host/gtk_key_bindings_handler_unittest.cc

Issue 10383239: Move NativeWebKeyboardEvent to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 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 | Annotate | Revision Log
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 #include "content/browser/renderer_host/gtk_key_bindings_handler.h" 5 #include "content/browser/renderer_host/gtk_key_bindings_handler.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/file_util.h" 13 #include "base/file_util.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "base/string_util.h" 16 #include "base/string_util.h"
17 #include "content/common/edit_command.h" 17 #include "content/common/edit_command.h"
18 #include "content/public/browser/native_web_keyboard_event.h" 18 #include "content/public/browser/native_web_keyboard_event.h"
19 #include "content/public/common/content_paths.h" 19 #include "content/public/common/content_paths.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 21
22 using content::NativeWebKeyboardEvent;
23
22 class GtkKeyBindingsHandlerTest : public testing::Test { 24 class GtkKeyBindingsHandlerTest : public testing::Test {
23 protected: 25 protected:
24 struct EditCommand { 26 struct EditCommand {
25 const char* name; 27 const char* name;
26 const char* value; 28 const char* value;
27 }; 29 };
28 30
29 GtkKeyBindingsHandlerTest() 31 GtkKeyBindingsHandlerTest()
30 : window_(gtk_window_new(GTK_WINDOW_TOPLEVEL)), 32 : window_(gtk_window_new(GTK_WINDOW_TOPLEVEL)),
31 handler_(NULL) { 33 handler_(NULL) {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 }; 215 };
214 TestKeyBinding(NewNativeWebKeyboardEvent(GDK_8, GDK_CONTROL_MASK), 216 TestKeyBinding(NewNativeWebKeyboardEvent(GDK_8, GDK_CONTROL_MASK),
215 kSelectAll, arraysize(kSelectAll)); 217 kSelectAll, arraysize(kSelectAll));
216 218
217 static const EditCommand kSetAnchor[] = { 219 static const EditCommand kSetAnchor[] = {
218 { "SetMark", "" } 220 { "SetMark", "" }
219 }; 221 };
220 TestKeyBinding(NewNativeWebKeyboardEvent(GDK_9, GDK_CONTROL_MASK), 222 TestKeyBinding(NewNativeWebKeyboardEvent(GDK_9, GDK_CONTROL_MASK),
221 kSetAnchor, arraysize(kSetAnchor)); 223 kSetAnchor, arraysize(kSetAnchor));
222 } 224 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698