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

Side by Side Diff: ui/aura/client/animation_host.cc

Issue 12342028: make menus, bubbles, etc. top level windows on aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/client/animation_host.h ('k') | ui/compositor/layer.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 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/aura/client/animation_host.h"
6
7 #include "base/compiler_specific.h"
8 #include "ui/aura/aura_export.h"
9
10 #include "ui/aura/env.h"
11 #include "ui/aura/root_window.h"
12 #include "ui/aura/window_property.h"
13
14 DECLARE_WINDOW_PROPERTY_TYPE(aura::client::AnimationHost*)
15
16 namespace aura {
17 namespace client {
18
19 DEFINE_WINDOW_PROPERTY_KEY(AnimationHost*, kRootWindowAnimationHostKey, NULL);
20
21 void SetAnimationHost(Window* window, AnimationHost* animation_host) {
22 DCHECK(window);
23 window->SetProperty(kRootWindowAnimationHostKey, animation_host);
24 }
25
26 AnimationHost* GetAnimationHost(Window* window) {
27 DCHECK(window);
28 return window->GetProperty(kRootWindowAnimationHostKey);
29 }
30
31 } // namespace client
32 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/client/animation_host.h ('k') | ui/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698