| OLD | NEW |
| 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 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" | 5 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" |
| 6 | 6 |
| 7 // If this gets included after the gtk headers, then a bunch of compiler | 7 // If this gets included after the gtk headers, then a bunch of compiler |
| 8 // errors happen because of a "#define Status int" in Xlib.h, which interacts | 8 // errors happen because of a "#define Status int" in Xlib.h, which interacts |
| 9 // badly with net::URLRequestStatus::Status. | 9 // badly with net::URLRequestStatus::Status. |
| 10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "base/utf_string_conversions.h" | 27 #include "base/utf_string_conversions.h" |
| 28 #include "chrome/browser/renderer_host/backing_store_x.h" | 28 #include "chrome/browser/renderer_host/backing_store_x.h" |
| 29 #include "chrome/browser/renderer_host/gtk_im_context_wrapper.h" | 29 #include "chrome/browser/renderer_host/gtk_im_context_wrapper.h" |
| 30 #include "chrome/browser/renderer_host/gtk_key_bindings_handler.h" | 30 #include "chrome/browser/renderer_host/gtk_key_bindings_handler.h" |
| 31 #include "chrome/browser/renderer_host/render_view_host.h" | 31 #include "chrome/browser/renderer_host/render_view_host.h" |
| 32 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 32 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
| 33 #include "chrome/browser/renderer_host/render_widget_host.h" | 33 #include "chrome/browser/renderer_host/render_widget_host.h" |
| 34 #include "chrome/browser/ui/gtk/gtk_util.h" | 34 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 35 #include "chrome/common/chrome_switches.h" | 35 #include "chrome/common/chrome_switches.h" |
| 36 #include "chrome/common/native_web_keyboard_event.h" | 36 #include "chrome/common/native_web_keyboard_event.h" |
| 37 #include "gfx/gtk_preserve_window.h" | |
| 38 #include "third_party/WebKit/Source/WebKit/chromium/public/gtk/WebInputEventFact
ory.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/gtk/WebInputEventFact
ory.h" |
| 39 #include "ui/base/l10n/l10n_util.h" | 38 #include "ui/base/l10n/l10n_util.h" |
| 40 #include "ui/base/x/x11_util.h" | 39 #include "ui/base/x/x11_util.h" |
| 40 #include "ui/gfx/gtk_preserve_window.h" |
| 41 #include "webkit/glue/webaccessibility.h" | 41 #include "webkit/glue/webaccessibility.h" |
| 42 #include "webkit/glue/webcursor_gtk_data.h" | 42 #include "webkit/glue/webcursor_gtk_data.h" |
| 43 #include "webkit/plugins/npapi/webplugin.h" | 43 #include "webkit/plugins/npapi/webplugin.h" |
| 44 | 44 |
| 45 #if defined(OS_CHROMEOS) | 45 #if defined(OS_CHROMEOS) |
| 46 #include "views/widget/tooltip_window_gtk.h" | 46 #include "views/widget/tooltip_window_gtk.h" |
| 47 #endif // defined(OS_CHROMEOS) | 47 #endif // defined(OS_CHROMEOS) |
| 48 | 48 |
| 49 namespace { | 49 namespace { |
| 50 | 50 |
| (...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1121 } | 1121 } |
| 1122 | 1122 |
| 1123 // static | 1123 // static |
| 1124 RenderWidgetHostView* | 1124 RenderWidgetHostView* |
| 1125 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( | 1125 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( |
| 1126 gfx::NativeView widget) { | 1126 gfx::NativeView widget) { |
| 1127 gpointer user_data = g_object_get_data(G_OBJECT(widget), | 1127 gpointer user_data = g_object_get_data(G_OBJECT(widget), |
| 1128 kRenderWidgetHostViewKey); | 1128 kRenderWidgetHostViewKey); |
| 1129 return reinterpret_cast<RenderWidgetHostView*>(user_data); | 1129 return reinterpret_cast<RenderWidgetHostView*>(user_data); |
| 1130 } | 1130 } |
| OLD | NEW |