| OLD | NEW |
| 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/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 17 #include "content/common/edit_command.h" | |
| 18 #include "content/public/browser/native_web_keyboard_event.h" | 17 #include "content/public/browser/native_web_keyboard_event.h" |
| 19 #include "content/public/common/content_paths.h" | 18 #include "content/public/common/content_paths.h" |
| 19 #include "content/public/common/edit_command.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 21 |
| 22 namespace content { | 22 namespace content { |
| 23 | 23 |
| 24 class GtkKeyBindingsHandlerTest : public testing::Test { | 24 class GtkKeyBindingsHandlerTest : public testing::Test { |
| 25 protected: | 25 protected: |
| 26 struct EditCommand { | 26 struct EditCommand { |
| 27 const char* name; | 27 const char* name; |
| 28 const char* value; | 28 const char* value; |
| 29 }; | 29 }; |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 kSelectAll, arraysize(kSelectAll)); | 217 kSelectAll, arraysize(kSelectAll)); |
| 218 | 218 |
| 219 static const EditCommand kSetAnchor[] = { | 219 static const EditCommand kSetAnchor[] = { |
| 220 { "SetMark", "" } | 220 { "SetMark", "" } |
| 221 }; | 221 }; |
| 222 TestKeyBinding(NewNativeWebKeyboardEvent(GDK_9, GDK_CONTROL_MASK), | 222 TestKeyBinding(NewNativeWebKeyboardEvent(GDK_9, GDK_CONTROL_MASK), |
| 223 kSetAnchor, arraysize(kSetAnchor)); | 223 kSetAnchor, arraysize(kSetAnchor)); |
| 224 } | 224 } |
| 225 | 225 |
| 226 } // namespace content | 226 } // namespace content |
| OLD | NEW |