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

Unified Diff: ui/views/win/hwnd_message_handler.cc

Issue 1138383008: Support the full-screen state when showing a chrome window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass the test case without condition for Windows Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.cc
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
index b48a4db5ddb2d27be422bc3af4cf0ca18a0701a8..13cc62cbfbbe0db0a62cf78f37d39da3f0e2ce33 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -569,6 +569,10 @@ void HWNDMessageHandler::ShowWindowWithState(ui::WindowShowState show_state) {
case ui::SHOW_STATE_NORMAL:
native_show_state = SW_SHOWNORMAL;
break;
+ case ui::SHOW_STATE_FULLSCREEN:
+ native_show_state = SW_SHOWNORMAL;
+ SetFullscreen(true);
sky 2015/05/19 04:20:04 I'm a bit nervous about invoking this before the w
joone 2015/05/19 17:40:49 When SetFullscreen is called after ShowWindow, we
+ break;
default:
native_show_state = delegate_->GetInitialShowState();
break;
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698