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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 3106018: Reapplies all the IPC system work (reverts the revert r56272). (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 URLRequestStatus::Status. 9 // badly with URLRequestStatus::Status.
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
11 11
12 #include <gtk/gtk.h> 12 #include <gtk/gtk.h>
13 #include <gdk/gdk.h> 13 #include <gdk/gdk.h>
14 #include <gdk/gdkkeysyms.h> 14 #include <gdk/gdkkeysyms.h>
15 #include <gdk/gdkx.h> 15 #include <gdk/gdkx.h>
16 #include <cairo/cairo.h> 16 #include <cairo/cairo.h>
17 17
18 #include <algorithm> 18 #include <algorithm>
19 #include <string> 19 #include <string>
20 20
21 #include "app/l10n_util.h" 21 #include "app/l10n_util.h"
22 #include "app/x11_util.h" 22 #include "app/x11_util.h"
23 #include "base/command_line.h" 23 #include "base/command_line.h"
24 #include "base/logging.h" 24 #include "base/logging.h"
25 #include "base/histogram.h"
25 #include "base/message_loop.h" 26 #include "base/message_loop.h"
26 #include "base/string_number_conversions.h" 27 #include "base/string_number_conversions.h"
27 #include "base/task.h" 28 #include "base/task.h"
28 #include "base/time.h" 29 #include "base/time.h"
29 #include "chrome/browser/gtk/gtk_util.h" 30 #include "chrome/browser/gtk/gtk_util.h"
30 #include "chrome/browser/renderer_host/backing_store_x.h" 31 #include "chrome/browser/renderer_host/backing_store_x.h"
31 #include "chrome/browser/renderer_host/gpu_view_host.h" 32 #include "chrome/browser/renderer_host/gpu_view_host.h"
32 #include "chrome/browser/renderer_host/gtk_im_context_wrapper.h" 33 #include "chrome/browser/renderer_host/gtk_im_context_wrapper.h"
33 #include "chrome/browser/renderer_host/gtk_key_bindings_handler.h" 34 #include "chrome/browser/renderer_host/gtk_key_bindings_handler.h"
34 #include "chrome/browser/renderer_host/render_widget_host.h" 35 #include "chrome/browser/renderer_host/render_widget_host.h"
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 } 1018 }
1018 1019
1019 // static 1020 // static
1020 RenderWidgetHostView* 1021 RenderWidgetHostView*
1021 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 1022 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
1022 gfx::NativeView widget) { 1023 gfx::NativeView widget) {
1023 gpointer user_data = g_object_get_data(G_OBJECT(widget), 1024 gpointer user_data = g_object_get_data(G_OBJECT(widget),
1024 kRenderWidgetHostViewKey); 1025 kRenderWidgetHostViewKey);
1025 return reinterpret_cast<RenderWidgetHostView*>(user_data); 1026 return reinterpret_cast<RenderWidgetHostView*>(user_data);
1026 } 1027 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/resource_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698