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

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

Issue 9582003: Support browser side thumbnailing for GPU composited pages on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 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 // 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 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 1040
1041 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { 1041 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() {
1042 } 1042 }
1043 1043
1044 1044
1045 void RenderWidgetHostViewGtk::SetBackground(const SkBitmap& background) { 1045 void RenderWidgetHostViewGtk::SetBackground(const SkBitmap& background) {
1046 content::RenderWidgetHostViewBase::SetBackground(background); 1046 content::RenderWidgetHostViewBase::SetBackground(background);
1047 host_->Send(new ViewMsg_SetBackground(host_->GetRoutingID(), background)); 1047 host_->Send(new ViewMsg_SetBackground(host_->GetRoutingID(), background));
1048 } 1048 }
1049 1049
1050 bool RenderWidgetHostViewGtk::CopyFromCompositingSurface(
1051 const gfx::Size& size,
1052 skia::PlatformCanvas* output) {
1053 // TODO(mazda): Implement this.
1054 NOTIMPLEMENTED();
1055 return false;
1056 }
1057
1050 void RenderWidgetHostViewGtk::ModifyEventForEdgeDragging( 1058 void RenderWidgetHostViewGtk::ModifyEventForEdgeDragging(
1051 GtkWidget* widget, GdkEventMotion* event) { 1059 GtkWidget* widget, GdkEventMotion* event) {
1052 // If the widget is aligned with an edge of the monitor its on and the user 1060 // If the widget is aligned with an edge of the monitor its on and the user
1053 // attempts to drag past that edge we track the number of times it has 1061 // attempts to drag past that edge we track the number of times it has
1054 // occurred, so that we can force the widget to scroll when it otherwise 1062 // occurred, so that we can force the widget to scroll when it otherwise
1055 // would be unable to, by modifying the (x,y) position in the drag 1063 // would be unable to, by modifying the (x,y) position in the drag
1056 // event that we forward on to webkit. If we get a move that's no longer a 1064 // event that we forward on to webkit. If we get a move that's no longer a
1057 // drag or a drag indicating the user is no longer at that edge we stop 1065 // drag or a drag indicating the user is no longer at that edge we stop
1058 // altering the drag events. 1066 // altering the drag events.
1059 int new_dragged_at_horizontal_edge = 0; 1067 int new_dragged_at_horizontal_edge = 0;
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1426 return new RenderWidgetHostViewGtk(widget); 1434 return new RenderWidgetHostViewGtk(widget);
1427 } 1435 }
1428 1436
1429 // static 1437 // static
1430 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo( 1438 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo(
1431 WebKit::WebScreenInfo* results) { 1439 WebKit::WebScreenInfo* results) {
1432 GdkWindow* gdk_window = 1440 GdkWindow* gdk_window =
1433 gdk_display_get_default_group(gdk_display_get_default()); 1441 gdk_display_get_default_group(gdk_display_get_default());
1434 content::GetScreenInfoFromNativeWindow(gdk_window, results); 1442 content::GetScreenInfoFromNativeWindow(gdk_window, results);
1435 } 1443 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698