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

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

Issue 7136001: GPU compositing surface handle is no longer sent to renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/renderer_host/render_widget_host_view_gtk.h" 5 #include "chrome/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 "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 parent_(NULL), 508 parent_(NULL),
509 is_popup_first_mouse_release_(true), 509 is_popup_first_mouse_release_(true),
510 was_focused_before_grab_(false), 510 was_focused_before_grab_(false),
511 do_x_grab_(false), 511 do_x_grab_(false),
512 is_fullscreen_(false), 512 is_fullscreen_(false),
513 destroy_handler_id_(0), 513 destroy_handler_id_(0),
514 dragged_at_horizontal_edge_(0), 514 dragged_at_horizontal_edge_(0),
515 dragged_at_vertical_edge_(0), 515 dragged_at_vertical_edge_(0),
516 compositing_surface_(gfx::kNullPluginWindow), 516 compositing_surface_(gfx::kNullPluginWindow),
517 last_mouse_down_(NULL) { 517 last_mouse_down_(NULL) {
518 host_->set_view(this); 518 host_->SetView(this);
519 } 519 }
520 520
521 RenderWidgetHostViewGtk::~RenderWidgetHostViewGtk() { 521 RenderWidgetHostViewGtk::~RenderWidgetHostViewGtk() {
522 set_last_mouse_down(NULL); 522 set_last_mouse_down(NULL);
523 view_.Destroy(); 523 view_.Destroy();
524 } 524 }
525 525
526 void RenderWidgetHostViewGtk::InitAsChild() { 526 void RenderWidgetHostViewGtk::InitAsChild() {
527 DoSharedInit(); 527 DoSharedInit();
528 overlay_animation_.SetDuration(kFadeEffectDuration); 528 overlay_animation_.SetDuration(kFadeEffectDuration);
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 } 1187 }
1188 1188
1189 // static 1189 // static
1190 RenderWidgetHostView* 1190 RenderWidgetHostView*
1191 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 1191 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
1192 gfx::NativeView widget) { 1192 gfx::NativeView widget) {
1193 gpointer user_data = g_object_get_data(G_OBJECT(widget), 1193 gpointer user_data = g_object_get_data(G_OBJECT(widget),
1194 kRenderWidgetHostViewKey); 1194 kRenderWidgetHostViewKey);
1195 return reinterpret_cast<RenderWidgetHostView*>(user_data); 1195 return reinterpret_cast<RenderWidgetHostView*>(user_data);
1196 } 1196 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/balloon_host.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698