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

Side by Side Diff: ui/aura/client/window_stacking_client.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
« no previous file with comments | « ui/aura/client/window_stacking_client.h ('k') | ui/views/corewm/focus_controller_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/aura/client/window_stacking_client.h" 5 #include "ui/aura/client/window_stacking_client.h"
6 6
7 namespace aura { 7 namespace aura {
8 namespace client { 8 namespace client {
9 9
10 namespace { 10 namespace {
11 11
12 WindowStackingClient* instance = NULL; 12 WindowStackingClient* instance = NULL;
13 13
14 } // namespace 14 } // namespace
15 15
16 void SetWindowStackingClient(WindowStackingClient* client) { 16 void SetWindowStackingClient(WindowStackingClient* client) {
17 delete instance;
18 instance = client; 17 instance = client;
19 } 18 }
20 19
21 WindowStackingClient* GetWindowStackingClient() { 20 WindowStackingClient* GetWindowStackingClient() {
22 return instance; 21 return instance;
23 } 22 }
24 23
25 } // namespace client 24 } // namespace client
26 } // namespace aura 25 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/client/window_stacking_client.h ('k') | ui/views/corewm/focus_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698