summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-04 20:26:59 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-04 20:26:59 +0000
commitc6959f825761fc056b1976162861776c95782af1 (patch)
tree1d5ce58844cc2a5f0e1028d5ff82f513a3234021 /webkit
parentb353dd675b61d968d9494e71d3d75be0c857d0ad (diff)
downloadchromium_src-c6959f825761fc056b1976162861776c95782af1.zip
chromium_src-c6959f825761fc056b1976162861776c95782af1.tar.gz
chromium_src-c6959f825761fc056b1976162861776c95782af1.tar.bz2
Cleanup editor_client_impl.cc after http://codereview.chromium.org/8677/show
I realised that some of the comments and namespacing does not apply anymore. patch from Paweł Hajdan jr <phajdan.jr@gmail.com> in http://codereview.chromium.org/9109 Review URL: http://codereview.chromium.org/9343 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4639 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/editor_client_impl.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc
index 0f7c8f2..bcc431d 100644
--- a/webkit/glue/editor_client_impl.cc
+++ b/webkit/glue/editor_client_impl.cc
@@ -385,18 +385,6 @@ struct KeyPressEntry {
const char* name;
};
-// On Linux & OS X, the Windows virtual keycode constants are defined in the
-// WebCore namespace. In order not to import all of the WebCore namespace into
-// this file we need to wrap the keyDownEntries definition in it's own
-// namespace.
-namespace key_lookup_table {
-
-// On non-windows platforms, native key codes are translated into their Windows
-// counterparts.
-// We define the editor commands in terms of the Windows key codes on all
-// platforms so we can reuse the dispatch table.
-using namespace WebCore;
-
static const KeyDownEntry keyDownEntries[] = {
{ WebCore::VKEY_LEFT, 0, "MoveLeft" },
{ WebCore::VKEY_LEFT, ShiftKey, "MoveLeftAndModifySelection" },
@@ -509,8 +497,6 @@ static const KeyDownEntry keyDownEntries[] = {
#endif
};
-} // namespace key_lookup_table
-
static const KeyPressEntry keyPressEntries[] = {
{ '\t', 0, "InsertTab" },
{ '\t', ShiftKey, "InsertBacktab" },
@@ -534,7 +520,6 @@ const char* EditorClientImpl::interpretKeyEvent(
keyDownCommandsMap = new HashMap<int, const char*>;
keyPressCommandsMap = new HashMap<int, const char*>;
- using key_lookup_table::keyDownEntries;
for (unsigned i = 0; i < arraysize(keyDownEntries); i++) {
keyDownCommandsMap->set(
keyDownEntries[i].modifiers << 16 | keyDownEntries[i].virtualKey,