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

Side by Side Diff: content/browser/renderer_host/gtk_key_bindings_handler.h

Issue 213283004: linux_aura: Port GtkKeybindingsHandler to Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "content/common/edit_command.h"
13 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/public/common/edit_command.h"
14 #include "ui/base/gtk/owned_widget_gtk.h" 14 #include "ui/base/gtk/owned_widget_gtk.h"
15 15
16 namespace content { 16 namespace content {
17 struct NativeWebKeyboardEvent; 17 struct NativeWebKeyboardEvent;
18 18
19 // This class is a convenience class for handling editor key bindings defined 19 // This class is a convenience class for handling editor key bindings defined
20 // in gtk keyboard theme. 20 // in gtk keyboard theme.
21 // In gtk, only GtkEntry and GtkTextView support customizing editor key bindings 21 // In gtk, only GtkEntry and GtkTextView support customizing editor key bindings
22 // through keyboard theme. And in gtk keyboard theme definition file, each key 22 // through keyboard theme. And in gtk keyboard theme definition file, each key
23 // binding must be bound to a specific class or object. So existing keyboard 23 // binding must be bound to a specific class or object. So existing keyboard
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 ui::OwnedWidgetGtk handler_; 124 ui::OwnedWidgetGtk handler_;
125 125
126 // Buffer to store the match results. 126 // Buffer to store the match results.
127 EditCommands edit_commands_; 127 EditCommands edit_commands_;
128 }; 128 };
129 129
130 } // namespace content 130 } // namespace content
131 131
132 #endif // CONTENT_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_ 132 #endif // CONTENT_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698