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

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

Issue 23866013: Make the RenderViewHostImpl update its visibility after a swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make the invidual implementations of RWHVX::Show() also show their associated views. Created 7 years, 3 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/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 bool RenderWidgetHostViewAura::HasFocus() const { 984 bool RenderWidgetHostViewAura::HasFocus() const {
985 return window_->HasFocus(); 985 return window_->HasFocus();
986 } 986 }
987 987
988 bool RenderWidgetHostViewAura::IsSurfaceAvailableForCopy() const { 988 bool RenderWidgetHostViewAura::IsSurfaceAvailableForCopy() const {
989 return CanCopyToBitmap() || !!host_->GetBackingStore(false); 989 return CanCopyToBitmap() || !!host_->GetBackingStore(false);
990 } 990 }
991 991
992 void RenderWidgetHostViewAura::Show() { 992 void RenderWidgetHostViewAura::Show() {
993 window_->Show(); 993 window_->Show();
994 WasShown();
994 } 995 }
995 996
996 void RenderWidgetHostViewAura::Hide() { 997 void RenderWidgetHostViewAura::Hide() {
997 window_->Hide(); 998 window_->Hide();
998 } 999 }
999 1000
1000 bool RenderWidgetHostViewAura::IsShowing() { 1001 bool RenderWidgetHostViewAura::IsShowing() {
1001 return window_->IsVisible(); 1002 return window_->IsVisible();
1002 } 1003 }
1003 1004
(...skipping 2298 matching lines...) Expand 10 before | Expand all | Expand 10 after
3302 RenderWidgetHost* widget) { 3303 RenderWidgetHost* widget) {
3303 return new RenderWidgetHostViewAura(widget); 3304 return new RenderWidgetHostViewAura(widget);
3304 } 3305 }
3305 3306
3306 // static 3307 // static
3307 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { 3308 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) {
3308 GetScreenInfoForWindow(results, NULL); 3309 GetScreenInfoForWindow(results, NULL);
3309 } 3310 }
3310 3311
3311 } // namespace content 3312 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698