diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-10 01:27:19 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-10 01:27:19 +0000 |
commit | 1e9fe06dea94cdce23077fff7bc3e6487577a96d (patch) | |
tree | 3b52fd3f6ab060493bf467d5a5b4de613fd710bb | |
parent | 1952565c98b3312c1f429aa60e48c9417a0564c5 (diff) | |
download | chromium_src-1e9fe06dea94cdce23077fff7bc3e6487577a96d.zip chromium_src-1e9fe06dea94cdce23077fff7bc3e6487577a96d.tar.gz chromium_src-1e9fe06dea94cdce23077fff7bc3e6487577a96d.tar.bz2 |
aura: Fix creation of fullscreen RenderWidgetHostView.
I'm making the fullscreen RenderWidgetHostViewAura be a
"normal" window rather than a popup.
Note that the fullscreen window still remains black when I
put a Pepper Flash plugin into fullscreen mode. This looks
like it may be due to an issue with accelerated compositing
under Aura; the problem goes away when I disable creation of
the 3D context.
BUG=101848
TEST=manual: fullscreen window is visible again now
Review URL: http://codereview.chromium.org/8457001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109356 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | content/browser/renderer_host/render_widget_host_view_aura.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc index 69ff5e4..48b6d87 100644 --- a/content/browser/renderer_host/render_widget_host_view_aura.cc +++ b/content/browser/renderer_host/render_widget_host_view_aura.cc @@ -134,15 +134,12 @@ void RenderWidgetHostViewAura::InitAsPopup( void RenderWidgetHostViewAura::InitAsFullscreen( RenderWidgetHostView* reference_host_view) { is_fullscreen_ = true; - window_->SetType(aura::WINDOW_TYPE_POPUP); + window_->SetType(aura::WINDOW_TYPE_NORMAL); window_->Init(ui::Layer::LAYER_HAS_TEXTURE); - - window_->SetParent(NULL); window_->SetIntProperty(aura::kShowStateKey, ui::SHOW_STATE_FULLSCREEN); + window_->SetParent(NULL); Show(); Focus(); - // TODO(derat): The window is visible but it's not being updated. Figure out - // why. } RenderWidgetHost* RenderWidgetHostViewAura::GetRenderWidgetHost() const { |