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

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

Issue 557693002: [Ash] Only snap windows that can maximize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change ash_test_base.cc Created 6 years, 3 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: ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc b/ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc
index 986d041da11a1a2e511c4cb534db032f87da0be1..3cd7e6c10b4b165890972078190abeb9c910d57e 100644
--- a/ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc
+++ b/ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc
@@ -119,12 +119,9 @@ class MaximizeModeWindowManagerTest : public test::AshTestBase {
bool can_maximize,
bool can_resize) {
aura::test::TestWindowDelegate* delegate = NULL;
- if (!can_maximize) {
- delegate = aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate();
oshima 2014/09/11 17:25:49 I wonder why this is done only when the window can
Mr4D (OOO till 08-26) 2014/09/11 20:24:17 There are two reasons for this delegate: 1. Allow
jackhou1 2014/09/18 02:54:59 Done.
- delegate->set_window_component(HTCAPTION);
- if (!max_size.IsEmpty())
- delegate->set_maximum_size(max_size);
- }
+ delegate = aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate();
+ delegate->set_window_component(HTCAPTION);
+ delegate->set_maximum_size(max_size);
aura::Window* window = aura::test::CreateTestWindowWithDelegateAndType(
delegate, type, 0, bounds, NULL);
window->SetProperty(aura::client::kCanMaximizeKey, can_maximize);
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | ash/wm/window_state.cc » ('j') | ash/wm/window_state.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698