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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 8400063: Move maximize/fullscreen/restore to shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments, property_util Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
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 170d871e3bfb196f2c96f05bbdb364496037078e..a0a1148f1c1068f31797cedb8b676970f5a0c5c6 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -17,6 +17,7 @@
#include "ui/aura/hit_test.h"
#include "ui/aura/window.h"
#include "ui/aura/window_types.h"
+#include "ui/base/ui_base_types.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/compositor/layer.h"
#include "ui/gfx/screen.h"
@@ -118,7 +119,7 @@ void RenderWidgetHostViewAura::InitAsFullscreen(
Init();
window_->SetParent(NULL);
- window_->Fullscreen();
+ window_->SetIntProperty(aura::kShowStateKey, ui::SHOW_STATE_FULLSCREEN);
Show();
Focus();
// TODO(derat): The window is visible but it's not being updated. Figure out

Powered by Google App Engine
This is Rietveld 408576698