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

Side by Side Diff: ash/test/wm_window_test_api.cc

Issue 2901663003: chromeos: converts WindowState to aura::Window (Closed)
Patch Set: feedback Created 3 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 unified diff | Download patch
« no previous file with comments | « ash/test/wm_window_test_api.h ('k') | ash/wm/default_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ash/test/wm_window_test_api.h"
6
7 namespace ash {
8
9 // static
10 int WmWindowTestApi::GlobalMinimumSizeLock::instance_count_ = 0;
11
12 WmWindowTestApi::GlobalMinimumSizeLock::GlobalMinimumSizeLock() {
13 if (instance_count_ == 0)
14 WmWindowTestApi::SetDefaultUseEmptyMinimumSizeForTesting(true);
15 instance_count_++;
16 }
17
18 WmWindowTestApi::GlobalMinimumSizeLock::~GlobalMinimumSizeLock() {
19 DCHECK_GT(instance_count_, 0);
20 instance_count_--;
21 if (instance_count_ == 0)
22 WmWindowTestApi::SetDefaultUseEmptyMinimumSizeForTesting(false);
23 }
24
25 // static
26 void WmWindowTestApi::SetDefaultUseEmptyMinimumSizeForTesting(bool value) {
27 WmWindow::default_use_empty_minimum_size_for_testing_ = value;
28 }
29
30 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/wm_window_test_api.h ('k') | ash/wm/default_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698