| 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 #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 14 matching lines...) Expand all Loading... |
| 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/input/web_input_event_builders_gtk.h" | 32 #include "content/browser/renderer_host/input/web_input_event_builders_gtk.h" |
| 33 #include "content/browser/renderer_host/render_view_host_delegate.h" | 33 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 34 #include "content/browser/renderer_host/render_view_host_impl.h" | 34 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 35 #include "content/common/cursors/webcursor_gtk_data.h" |
| 35 #include "content/common/gpu/gpu_messages.h" | 36 #include "content/common/gpu/gpu_messages.h" |
| 36 #include "content/common/input_messages.h" | 37 #include "content/common/input_messages.h" |
| 37 #include "content/common/view_messages.h" | 38 #include "content/common/view_messages.h" |
| 38 #include "content/common/webplugin_geometry.h" | 39 #include "content/common/webplugin_geometry.h" |
| 39 #include "content/public/browser/native_web_keyboard_event.h" | 40 #include "content/public/browser/native_web_keyboard_event.h" |
| 40 #include "content/public/common/content_switches.h" | 41 #include "content/public/common/content_switches.h" |
| 41 #include "skia/ext/platform_canvas.h" | 42 #include "skia/ext/platform_canvas.h" |
| 42 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 43 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
| 43 #include "third_party/WebKit/public/web/WebInputEvent.h" | 44 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 44 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 45 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
| 45 #include "ui/base/x/active_window_watcher_x.h" | 46 #include "ui/base/x/active_window_watcher_x.h" |
| 46 #include "ui/base/x/x11_util.h" | 47 #include "ui/base/x/x11_util.h" |
| 47 #include "ui/gfx/gtk_compat.h" | 48 #include "ui/gfx/gtk_compat.h" |
| 48 #include "ui/gfx/gtk_native_view_id_manager.h" | 49 #include "ui/gfx/gtk_native_view_id_manager.h" |
| 49 #include "ui/gfx/gtk_preserve_window.h" | 50 #include "ui/gfx/gtk_preserve_window.h" |
| 50 #include "ui/gfx/text_elider.h" | 51 #include "ui/gfx/text_elider.h" |
| 51 #include "webkit/common/cursors/webcursor_gtk_data.h" | |
| 52 | 52 |
| 53 using blink::WebMouseWheelEvent; | 53 using blink::WebMouseWheelEvent; |
| 54 using blink::WebScreenInfo; | 54 using blink::WebScreenInfo; |
| 55 | 55 |
| 56 namespace content { | 56 namespace content { |
| 57 namespace { | 57 namespace { |
| 58 | 58 |
| 59 // 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 |
| 60 // 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 |
| 61 // (i.e. to 256MB). | 61 // (i.e. to 256MB). |
| (...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1610 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( | 1610 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( |
| 1611 gfx::PluginWindowHandle id) { | 1611 gfx::PluginWindowHandle id) { |
| 1612 plugin_container_manager_.DestroyPluginContainer(id); | 1612 plugin_container_manager_.DestroyPluginContainer(id); |
| 1613 } | 1613 } |
| 1614 | 1614 |
| 1615 SkBitmap::Config RenderWidgetHostViewGtk::PreferredReadbackFormat() { | 1615 SkBitmap::Config RenderWidgetHostViewGtk::PreferredReadbackFormat() { |
| 1616 return SkBitmap::kARGB_8888_Config; | 1616 return SkBitmap::kARGB_8888_Config; |
| 1617 } | 1617 } |
| 1618 | 1618 |
| 1619 } // namespace content | 1619 } // namespace content |
| OLD | NEW |