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

Unified Diff: ash/wm/maximize_mode/maximize_mode_window_state.cc

Issue 2955203002: Cros Tablet Window management - Split Screen part II (Closed)
Patch Set: Fix the failed ash_unittest. Created 3 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 | « ash/BUILD.gn ('k') | ash/wm/overview/overview_animation_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_mode/maximize_mode_window_state.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_window_state.cc b/ash/wm/maximize_mode/maximize_mode_window_state.cc
index 260ad80e466f6d27bd94cf80a3295ba70d7777b1..4b9e6eba24684e2c71772fc5377d7bf8e9934e2f 100644
--- a/ash/wm/maximize_mode/maximize_mode_window_state.cc
+++ b/ash/wm/maximize_mode/maximize_mode_window_state.cc
@@ -87,7 +87,7 @@ gfx::Rect GetBoundsInMaximizedMode(wm::WindowState* state_object) {
return Shell::Get()
->split_view_controller()
->GetSnappedWindowBoundsInParent(state_object->window(),
- SplitViewController::LEFT_SNAPPED);
+ SplitViewController::LEFT);
}
if (state_object->GetStateType() == wm::WINDOW_STATE_TYPE_RIGHT_SNAPPED) {
@@ -95,7 +95,7 @@ gfx::Rect GetBoundsInMaximizedMode(wm::WindowState* state_object) {
return Shell::Get()
->split_view_controller()
->GetSnappedWindowBoundsInParent(state_object->window(),
- SplitViewController::RIGHT_SNAPPED);
+ SplitViewController::RIGHT);
}
gfx::Rect bounds_in_parent;
@@ -338,11 +338,11 @@ void MaximizeModeWindowState::UpdateWindow(wm::WindowState* window_state,
} else if (target_state == wm::WINDOW_STATE_TYPE_LEFT_SNAPPED) {
window_state->SetBoundsDirectAnimated(
Shell::Get()->split_view_controller()->GetSnappedWindowBoundsInParent(
- window_state->window(), SplitViewController::LEFT_SNAPPED));
+ window_state->window(), SplitViewController::LEFT));
} else if (target_state == wm::WINDOW_STATE_TYPE_RIGHT_SNAPPED) {
window_state->SetBoundsDirectAnimated(
Shell::Get()->split_view_controller()->GetSnappedWindowBoundsInParent(
- window_state->window(), SplitViewController::RIGHT_SNAPPED));
+ window_state->window(), SplitViewController::RIGHT));
} else {
UpdateBounds(window_state, animated);
}
« no previous file with comments | « ash/BUILD.gn ('k') | ash/wm/overview/overview_animation_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698