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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gdk/gdk.h> | 9 #include <gdk/gdk.h> |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "ui/base/gtk/gtk_signal.h" | 21 #include "ui/base/gtk/gtk_signal.h" |
22 #include "ui/base/gtk/gtk_signal_registrar.h" | 22 #include "ui/base/gtk/gtk_signal_registrar.h" |
23 #include "ui/base/gtk/owned_widget_gtk.h" | 23 #include "ui/base/gtk/owned_widget_gtk.h" |
24 #include "ui/gfx/native_widget_types.h" | 24 #include "ui/gfx/native_widget_types.h" |
25 #include "ui/gfx/point.h" | 25 #include "ui/gfx/point.h" |
26 #include "ui/gfx/rect.h" | 26 #include "ui/gfx/rect.h" |
27 #include "webkit/glue/webcursor.h" | 27 #include "webkit/glue/webcursor.h" |
28 #include "webkit/plugins/npapi/gtk_plugin_container_manager.h" | 28 #include "webkit/plugins/npapi/gtk_plugin_container_manager.h" |
29 | 29 |
30 class GtkIMContextWrapper; | 30 class GtkIMContextWrapper; |
31 struct NativeWebKeyboardEvent; | |
32 | 31 |
33 namespace content { | 32 namespace content { |
34 class RenderWidgetHost; | 33 class RenderWidgetHost; |
35 class RenderWidgetHostImpl; | 34 class RenderWidgetHostImpl; |
| 35 struct NativeWebKeyboardEvent; |
36 } | 36 } |
37 | 37 |
38 class GtkKeyBindingsHandler; | 38 class GtkKeyBindingsHandler; |
39 | 39 |
40 typedef struct _GtkClipboard GtkClipboard; | 40 typedef struct _GtkClipboard GtkClipboard; |
41 typedef struct _GtkSelectionData GtkSelectionData; | 41 typedef struct _GtkSelectionData GtkSelectionData; |
42 | 42 |
43 // ----------------------------------------------------------------------------- | 43 // ----------------------------------------------------------------------------- |
44 // See comments in render_widget_host_view.h about this class and its members. | 44 // See comments in render_widget_host_view.h about this class and its members. |
45 // ----------------------------------------------------------------------------- | 45 // ----------------------------------------------------------------------------- |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 void ModifyEventMovementAndCoords(WebKit::WebMouseEvent* event); | 138 void ModifyEventMovementAndCoords(WebKit::WebMouseEvent* event); |
139 | 139 |
140 void Paint(const gfx::Rect&); | 140 void Paint(const gfx::Rect&); |
141 | 141 |
142 // Called by GtkIMContextWrapper to forward a keyboard event to renderer. | 142 // Called by GtkIMContextWrapper to forward a keyboard event to renderer. |
143 // On Linux (not ChromeOS): | 143 // On Linux (not ChromeOS): |
144 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method | 144 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method |
145 // calls GtkKeyBindingsHandler::Match() against the event and send matched | 145 // calls GtkKeyBindingsHandler::Match() against the event and send matched |
146 // edit commands to renderer by calling | 146 // edit commands to renderer by calling |
147 // RenderWidgetHost::ForwardEditCommandsForNextKeyEvent(). | 147 // RenderWidgetHost::ForwardEditCommandsForNextKeyEvent(). |
148 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event); | 148 void ForwardKeyboardEvent(const content::NativeWebKeyboardEvent& event); |
149 | 149 |
150 bool RetrieveSurrounding(std::string* text, size_t* cursor_index); | 150 bool RetrieveSurrounding(std::string* text, size_t* cursor_index); |
151 | 151 |
152 // BrowserAccessibilityDelegate implementation. | 152 // BrowserAccessibilityDelegate implementation. |
153 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; | 153 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; |
154 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; | 154 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; |
155 virtual void AccessibilityScrollToMakeVisible( | 155 virtual void AccessibilityScrollToMakeVisible( |
156 int acc_obj_id, gfx::Rect subfocus) OVERRIDE; | 156 int acc_obj_id, gfx::Rect subfocus) OVERRIDE; |
157 virtual void AccessibilityScrollToPoint( | 157 virtual void AccessibilityScrollToPoint( |
158 int acc_obj_id, gfx::Point point) OVERRIDE; | 158 int acc_obj_id, gfx::Point point) OVERRIDE; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 GdkEventButton* last_mouse_down_; | 304 GdkEventButton* last_mouse_down_; |
305 | 305 |
306 // Instance of accessibility information for the root of the AtkObject | 306 // Instance of accessibility information for the root of the AtkObject |
307 // tree representation of the WebKit render tree. | 307 // tree representation of the WebKit render tree. |
308 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 308 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
309 | 309 |
310 ui::GtkSignalRegistrar signals_; | 310 ui::GtkSignalRegistrar signals_; |
311 }; | 311 }; |
312 | 312 |
313 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 313 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
OLD | NEW |