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

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

Issue 19776016: Add files. Does not compile yet! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gtk links, may not work correctly Created 7 years, 5 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 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" 5 #include "content/browser/renderer_host/render_widget_host_view_gtk.h"
6 6
7 #include <cairo/cairo.h> 7 #include <cairo/cairo.h>
8 #include <gdk/gdk.h> 8 #include <gdk/gdk.h>
9 #include <gdk/gdkkeysyms.h> 9 #include <gdk/gdkkeysyms.h>
10 #include <gdk/gdkx.h> 10 #include <gdk/gdkx.h>
(...skipping 13 matching lines...) Expand all
24 #include "base/strings/utf_string_conversions.h" 24 #include "base/strings/utf_string_conversions.h"
25 #include "base/time/time.h" 25 #include "base/time/time.h"
26 #include "content/browser/accessibility/browser_accessibility_gtk.h" 26 #include "content/browser/accessibility/browser_accessibility_gtk.h"
27 #include "content/browser/accessibility/browser_accessibility_manager_gtk.h" 27 #include "content/browser/accessibility/browser_accessibility_manager_gtk.h"
28 #include "content/browser/renderer_host/backing_store_gtk.h" 28 #include "content/browser/renderer_host/backing_store_gtk.h"
29 #include "content/browser/renderer_host/gtk_im_context_wrapper.h" 29 #include "content/browser/renderer_host/gtk_im_context_wrapper.h"
30 #include "content/browser/renderer_host/gtk_key_bindings_handler.h" 30 #include "content/browser/renderer_host/gtk_key_bindings_handler.h"
31 #include "content/browser/renderer_host/gtk_window_utils.h" 31 #include "content/browser/renderer_host/gtk_window_utils.h"
32 #include "content/browser/renderer_host/render_view_host_delegate.h" 32 #include "content/browser/renderer_host/render_view_host_delegate.h"
33 #include "content/browser/renderer_host/render_view_host_impl.h" 33 #include "content/browser/renderer_host/render_view_host_impl.h"
34 #include "content/browser/renderer_host/web_input_event_factory_gtk.h"
34 #include "content/common/gpu/gpu_messages.h" 35 #include "content/common/gpu/gpu_messages.h"
35 #include "content/common/input_messages.h" 36 #include "content/common/input_messages.h"
36 #include "content/common/view_messages.h" 37 #include "content/common/view_messages.h"
37 #include "content/common/webplugin_geometry.h" 38 #include "content/common/webplugin_geometry.h"
38 #include "content/public/browser/native_web_keyboard_event.h" 39 #include "content/public/browser/native_web_keyboard_event.h"
39 #include "content/public/common/content_switches.h" 40 #include "content/public/common/content_switches.h"
40 #include "skia/ext/platform_canvas.h" 41 #include "skia/ext/platform_canvas.h"
41 #include "third_party/WebKit/public/web/WebInputEvent.h" 42 #include "third_party/WebKit/public/web/WebInputEvent.h"
42 #include "third_party/WebKit/public/web/WebScreenInfo.h" 43 #include "third_party/WebKit/public/web/WebScreenInfo.h"
43 #include "third_party/WebKit/public/web/gtk/WebInputEventFactory.h"
44 #include "ui/base/clipboard/scoped_clipboard_writer.h" 44 #include "ui/base/clipboard/scoped_clipboard_writer.h"
45 #include "ui/base/gtk/gtk_compat.h" 45 #include "ui/base/gtk/gtk_compat.h"
46 #include "ui/base/text/text_elider.h" 46 #include "ui/base/text/text_elider.h"
47 #include "ui/base/x/active_window_watcher_x.h" 47 #include "ui/base/x/active_window_watcher_x.h"
48 #include "ui/base/x/x11_util.h" 48 #include "ui/base/x/x11_util.h"
49 #include "ui/gfx/gtk_native_view_id_manager.h" 49 #include "ui/gfx/gtk_native_view_id_manager.h"
50 #include "ui/gfx/gtk_preserve_window.h" 50 #include "ui/gfx/gtk_preserve_window.h"
51 #include "webkit/common/cursors/webcursor_gtk_data.h" 51 #include "webkit/common/cursors/webcursor_gtk_data.h"
52 52
53 using WebKit::WebInputEventFactory;
54 using WebKit::WebMouseWheelEvent; 53 using WebKit::WebMouseWheelEvent;
55 using WebKit::WebScreenInfo; 54 using WebKit::WebScreenInfo;
56 55
57 namespace content { 56 namespace content {
58 namespace { 57 namespace {
59 58
60 // Paint rects on Linux are bounded by the maximum size of a shared memory 59 // Paint rects on Linux are bounded by the maximum size of a shared memory
61 // region. By default that's 32MB, but many distros increase it significantly 60 // region. By default that's 32MB, but many distros increase it significantly
62 // (i.e. to 256MB). 61 // (i.e. to 256MB).
63 // 62 //
(...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 gfx::PluginWindowHandle id) { 1574 gfx::PluginWindowHandle id) {
1576 plugin_container_manager_.CreatePluginContainer(id); 1575 plugin_container_manager_.CreatePluginContainer(id);
1577 } 1576 }
1578 1577
1579 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( 1578 void RenderWidgetHostViewGtk::OnDestroyPluginContainer(
1580 gfx::PluginWindowHandle id) { 1579 gfx::PluginWindowHandle id) {
1581 plugin_container_manager_.DestroyPluginContainer(id); 1580 plugin_container_manager_.DestroyPluginContainer(id);
1582 } 1581 }
1583 1582
1584 } // namespace content 1583 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698