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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "ui/base/x/active_window_watcher_x.h" | 46 #include "ui/base/x/active_window_watcher_x.h" |
47 #include "ui/base/x/x11_util.h" | 47 #include "ui/base/x/x11_util.h" |
48 #include "ui/gfx/gtk_compat.h" | 48 #include "ui/gfx/gtk_compat.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 "ui/gfx/text_elider.h" | 51 #include "ui/gfx/text_elider.h" |
52 | 52 |
53 using blink::WebMouseWheelEvent; | 53 using blink::WebMouseWheelEvent; |
54 using blink::WebScreenInfo; | 54 using blink::WebScreenInfo; |
55 | 55 |
| 56 #error "The GTK+ port will be deleted later this week. If you are seeing this, y
ou are trying to compile it. Please check your gyp flags for 'use_aura=0' and re
move them." |
| 57 |
56 namespace content { | 58 namespace content { |
57 namespace { | 59 namespace { |
58 | 60 |
59 // Paint rects on Linux are bounded by the maximum size of a shared memory | 61 // 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 | 62 // region. By default that's 32MB, but many distros increase it significantly |
61 // (i.e. to 256MB). | 63 // (i.e. to 256MB). |
62 // | 64 // |
63 // We fetch the maximum value from /proc/sys/kernel/shmmax at runtime and, if | 65 // We fetch the maximum value from /proc/sys/kernel/shmmax at runtime and, if |
64 // we exceed that, then we limit the height of the paint rect in the renderer. | 66 // we exceed that, then we limit the height of the paint rect in the renderer. |
65 // | 67 // |
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1610 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( | 1612 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( |
1611 gfx::PluginWindowHandle id) { | 1613 gfx::PluginWindowHandle id) { |
1612 plugin_container_manager_.DestroyPluginContainer(id); | 1614 plugin_container_manager_.DestroyPluginContainer(id); |
1613 } | 1615 } |
1614 | 1616 |
1615 SkBitmap::Config RenderWidgetHostViewGtk::PreferredReadbackFormat() { | 1617 SkBitmap::Config RenderWidgetHostViewGtk::PreferredReadbackFormat() { |
1616 return SkBitmap::kARGB_8888_Config; | 1618 return SkBitmap::kARGB_8888_Config; |
1617 } | 1619 } |
1618 | 1620 |
1619 } // namespace content | 1621 } // namespace content |
OLD | NEW |