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

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

Issue 10349013: Prevent browser thumbnailer from trying to read from frontbuffer (surface texture) when none exists. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 void RenderWidgetHostViewGtk::Blur() { 727 void RenderWidgetHostViewGtk::Blur() {
728 // TODO(estade): We should be clearing native focus as well, but I know of no 728 // TODO(estade): We should be clearing native focus as well, but I know of no
729 // way to do that without focusing another widget. 729 // way to do that without focusing another widget.
730 host_->Blur(); 730 host_->Blur();
731 } 731 }
732 732
733 bool RenderWidgetHostViewGtk::HasFocus() const { 733 bool RenderWidgetHostViewGtk::HasFocus() const {
734 return gtk_widget_is_focus(view_.get()); 734 return gtk_widget_is_focus(view_.get());
735 } 735 }
736 736
737 bool RenderWidgetHostViewGtk::HasSurface() const {
738 return false;
mazda 2012/05/03 19:57:31 return !!host_->GetBackingStore(false);
739 }
740
737 void RenderWidgetHostViewGtk::Show() { 741 void RenderWidgetHostViewGtk::Show() {
738 gtk_widget_show(view_.get()); 742 gtk_widget_show(view_.get());
739 } 743 }
740 744
741 void RenderWidgetHostViewGtk::Hide() { 745 void RenderWidgetHostViewGtk::Hide() {
742 gtk_widget_hide(view_.get()); 746 gtk_widget_hide(view_.get());
743 } 747 }
744 748
745 bool RenderWidgetHostViewGtk::IsShowing() { 749 bool RenderWidgetHostViewGtk::IsShowing() {
746 return gtk_widget_get_visible(view_.get()); 750 return gtk_widget_get_visible(view_.get());
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1397 return new RenderWidgetHostViewGtk(widget); 1401 return new RenderWidgetHostViewGtk(widget);
1398 } 1402 }
1399 1403
1400 // static 1404 // static
1401 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo( 1405 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo(
1402 WebKit::WebScreenInfo* results) { 1406 WebKit::WebScreenInfo* results) {
1403 GdkWindow* gdk_window = 1407 GdkWindow* gdk_window =
1404 gdk_display_get_default_group(gdk_display_get_default()); 1408 gdk_display_get_default_group(gdk_display_get_default());
1405 content::GetScreenInfoFromNativeWindow(gdk_window, results); 1409 content::GetScreenInfoFromNativeWindow(gdk_window, results);
1406 } 1410 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698