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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.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: Providing implementations for the other platforms 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_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 } 322 }
323 323
324 void RenderWidgetHostViewAura::Blur() { 324 void RenderWidgetHostViewAura::Blur() {
325 window_->Blur(); 325 window_->Blur();
326 } 326 }
327 327
328 bool RenderWidgetHostViewAura::HasFocus() const { 328 bool RenderWidgetHostViewAura::HasFocus() const {
329 return window_->HasFocus(); 329 return window_->HasFocus();
330 } 330 }
331 331
332 bool RenderWidgetHostViewAura::HasSurface() const {
333 return current_surface_ != 0;
334 }
335
332 void RenderWidgetHostViewAura::Show() { 336 void RenderWidgetHostViewAura::Show() {
333 window_->Show(); 337 window_->Show();
334 } 338 }
335 339
336 void RenderWidgetHostViewAura::Hide() { 340 void RenderWidgetHostViewAura::Hide() {
337 window_->Hide(); 341 window_->Hide();
338 } 342 }
339 343
340 bool RenderWidgetHostViewAura::IsShowing() { 344 bool RenderWidgetHostViewAura::IsShowing() {
341 return window_->IsVisible(); 345 return window_->IsVisible();
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget( 1319 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget(
1316 RenderWidgetHost* widget) { 1320 RenderWidgetHost* widget) {
1317 return new RenderWidgetHostViewAura(widget); 1321 return new RenderWidgetHostViewAura(widget);
1318 } 1322 }
1319 1323
1320 // static 1324 // static
1321 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo( 1325 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo(
1322 WebKit::WebScreenInfo* results) { 1326 WebKit::WebScreenInfo* results) {
1323 GetScreenInfoForWindow(results, NULL); 1327 GetScreenInfoForWindow(results, NULL);
1324 } 1328 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698