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

Side by Side Diff: ui/views/corewm/wm_state.cc

Issue 105813013: Adds views::corewm::WMState to install common state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix viewseventtestbase Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 "ui/views/corewm/wm_state.h"
6
7 #include "ui/views/corewm/transient_window_stacking_client.h"
8
9 namespace views {
10 namespace corewm {
11
12 WMState::WMState()
13 : window_stacking_client_(new TransientWindowStackingClient) {
14 aura::client::SetWindowStackingClient(window_stacking_client_.get());
15 }
16
17 WMState::~WMState() {
18 if (aura::client::GetWindowStackingClient() == window_stacking_client_.get())
19 aura::client::SetWindowStackingClient(NULL);
20 }
21
22 } // namespace corewm
23 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/corewm/wm_state.h ('k') | ui/views/examples/content_client/examples_browser_main_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698