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

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

Issue 7669040: content: Move render_widget_host_view_gtk to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos fix. Created 9 years, 4 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) 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 #ifndef CHROME_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_
6 #define CHROME_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "chrome/browser/ui/gtk/owned_widget_gtk.h"
14 #include "content/common/edit_command.h" 13 #include "content/common/edit_command.h"
14 #include "ui/base/gtk/owned_widget_gtk.h"
15 15
16 struct NativeWebKeyboardEvent; 16 struct NativeWebKeyboardEvent;
17 17
18 // This class is a convenience class for handling editor key bindings defined 18 // This class is a convenience class for handling editor key bindings defined
19 // in gtk keyboard theme. 19 // in gtk keyboard theme.
20 // In gtk, only GtkEntry and GtkTextView support customizing editor key bindings 20 // In gtk, only GtkEntry and GtkTextView support customizing editor key bindings
21 // through keyboard theme. And in gtk keyboard theme definition file, each key 21 // through keyboard theme. And in gtk keyboard theme definition file, each key
22 // binding must be bound to a specific class or object. So existing keyboard 22 // binding must be bound to a specific class or object. So existing keyboard
23 // themes only define editor key bindings exactly for GtkEntry and GtkTextView. 23 // themes only define editor key bindings exactly for GtkEntry and GtkTextView.
24 // Then, the only way for us to intercept editor key bindings defined in 24 // Then, the only way for us to intercept editor key bindings defined in
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 // Handler of "move-focus" signal. 119 // Handler of "move-focus" signal.
120 static void MoveFocus(GtkWidget* widget, GtkDirectionType arg1); 120 static void MoveFocus(GtkWidget* widget, GtkDirectionType arg1);
121 121
122 OwnedWidgetGtk handler_; 122 OwnedWidgetGtk handler_;
123 123
124 // Buffer to store the match results. 124 // Buffer to store the match results.
125 EditCommands edit_commands_; 125 EditCommands edit_commands_;
126 }; 126 };
127 127
128 #endif // CHROME_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_ 128 #endif // CONTENT_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/gtk_im_context_wrapper.cc ('k') | content/browser/renderer_host/gtk_key_bindings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698