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

Unified Diff: ash/mus/root_window_controller.cc

Issue 2150933003: mash: Add touch-hud app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sequence. Created 4 years, 5 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 | « no previous file | ash/touch_hud/mus/BUILD.gn » ('j') | ash/touch_hud/mus/DEPS » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/root_window_controller.cc
diff --git a/ash/mus/root_window_controller.cc b/ash/mus/root_window_controller.cc
index 3a3f0d17551dd066b1f005012b5c71e60fe2d8f4..49dd56e4a4eeb89010c2100212ca4a04e87f4bb4 100644
--- a/ash/mus/root_window_controller.cc
+++ b/ash/mus/root_window_controller.cc
@@ -180,6 +180,14 @@ gfx::Rect RootWindowController::CalculateDefaultBounds(
::ui::mojom::WindowManager::kInitialBounds_Property);
}
+ if (window->HasSharedProperty(
+ ::ui::mojom::WindowManager::kShowState_Property) &&
+ static_cast<::ui::mojom::ShowState>(window->GetSharedProperty<int32_t>(
+ ::ui::mojom::WindowManager::kShowState_Property)) ==
+ ui::mojom::ShowState::FULLSCREEN) {
+ return gfx::Rect(0, 0, root_->bounds().width(), root_->bounds().height());
sadrul 2016/07/15 15:01:10 Can you add a test for this code here? Add a TODO
riajiang 2016/07/15 17:01:27 Added a test in window_mananger_unittest for creat
+ }
+
int width, height;
const gfx::Size pref = GetWindowPreferredSize(window);
if (pref.IsEmpty()) {
« no previous file with comments | « no previous file | ash/touch_hud/mus/BUILD.gn » ('j') | ash/touch_hud/mus/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698