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 // 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 "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 int gpu_host_id) { | 1016 int gpu_host_id) { |
1017 RenderWidgetHost::AcknowledgeSwapBuffers(params.route_id, gpu_host_id); | 1017 RenderWidgetHost::AcknowledgeSwapBuffers(params.route_id, gpu_host_id); |
1018 } | 1018 } |
1019 | 1019 |
1020 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( | 1020 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( |
1021 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 1021 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
1022 int gpu_host_id) { | 1022 int gpu_host_id) { |
1023 RenderWidgetHost::AcknowledgePostSubBuffer(params.route_id, gpu_host_id); | 1023 RenderWidgetHost::AcknowledgePostSubBuffer(params.route_id, gpu_host_id); |
1024 } | 1024 } |
1025 | 1025 |
| 1026 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { |
| 1027 } |
| 1028 |
| 1029 |
1026 void RenderWidgetHostViewGtk::SetBackground(const SkBitmap& background) { | 1030 void RenderWidgetHostViewGtk::SetBackground(const SkBitmap& background) { |
1027 RenderWidgetHostView::SetBackground(background); | 1031 RenderWidgetHostView::SetBackground(background); |
1028 host_->Send(new ViewMsg_SetBackground(host_->routing_id(), background)); | 1032 host_->Send(new ViewMsg_SetBackground(host_->routing_id(), background)); |
1029 } | 1033 } |
1030 | 1034 |
1031 void RenderWidgetHostViewGtk::ModifyEventForEdgeDragging( | 1035 void RenderWidgetHostViewGtk::ModifyEventForEdgeDragging( |
1032 GtkWidget* widget, GdkEventMotion* event) { | 1036 GtkWidget* widget, GdkEventMotion* event) { |
1033 // If the widget is aligned with an edge of the monitor its on and the user | 1037 // If the widget is aligned with an edge of the monitor its on and the user |
1034 // attempts to drag past that edge we track the number of times it has | 1038 // attempts to drag past that edge we track the number of times it has |
1035 // occurred, so that we can force the widget to scroll when it otherwise | 1039 // occurred, so that we can force the widget to scroll when it otherwise |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1405 return new RenderWidgetHostViewGtk(widget); | 1409 return new RenderWidgetHostViewGtk(widget); |
1406 } | 1410 } |
1407 | 1411 |
1408 // static | 1412 // static |
1409 void RenderWidgetHostView::GetDefaultScreenInfo( | 1413 void RenderWidgetHostView::GetDefaultScreenInfo( |
1410 WebKit::WebScreenInfo* results) { | 1414 WebKit::WebScreenInfo* results) { |
1411 GdkWindow* gdk_window = | 1415 GdkWindow* gdk_window = |
1412 gdk_display_get_default_group(gdk_display_get_default()); | 1416 gdk_display_get_default_group(gdk_display_get_default()); |
1413 content::GetScreenInfoFromNativeWindow(gdk_window, results); | 1417 content::GetScreenInfoFromNativeWindow(gdk_window, results); |
1414 } | 1418 } |
OLD | NEW |