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

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: remove OVERRIDE from .cc 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
« no previous file with comments | « chrome/browser/fullscreen_aura.cc ('k') | ui/aura/aura_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9cdd057e07da6128d9dcab886181e7023a7f84c7..d33521c293c2e49f7a65d3c19fcd859d927e1a72 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(
window_->Init(ui::Layer::LAYER_HAS_TEXTURE);
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
« no previous file with comments | « chrome/browser/fullscreen_aura.cc ('k') | ui/aura/aura_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698