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

Side by Side Diff: ash/mus/bridge/wm_window_mus_test_api.cc

Issue 2539363005: Converts ash to use aura-mus (Closed)
Patch Set: add overrides Created 4 years 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/mus/bridge/wm_window_mus_test_api.h ('k') | ash/mus/bridge/workspace_event_handler_mus.h » ('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/mus/bridge/wm_window_mus_test_api.h"
6
7 namespace ash {
8 namespace mus {
9
10 // static
11 int WmWindowMusTestApi::GlobalMinimumSizeLock::instance_count_ = 0;
12
13 WmWindowMusTestApi::GlobalMinimumSizeLock::GlobalMinimumSizeLock() {
14 if (instance_count_ == 0)
15 WmWindowMusTestApi::SetDefaultUseEmptyMinimumSizeForTesting(true);
16 instance_count_++;
17 }
18
19 WmWindowMusTestApi::GlobalMinimumSizeLock::~GlobalMinimumSizeLock() {
20 DCHECK_GT(instance_count_, 0);
21 instance_count_--;
22 if (instance_count_ == 0)
23 WmWindowMusTestApi::SetDefaultUseEmptyMinimumSizeForTesting(false);
24 }
25
26 // static
27 void WmWindowMusTestApi::SetDefaultUseEmptyMinimumSizeForTesting(bool value) {
28 WmWindowMus::default_use_empty_minimum_size_for_testing_ = value;
29 }
30
31 } // namespace mus
32 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_window_mus_test_api.h ('k') | ash/mus/bridge/workspace_event_handler_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698