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

Side by Side Diff: ash/wm/visibility_controller.cc

Issue 10365007: ui: Move compositor/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/toplevel_window_event_filter.cc ('k') | ash/wm/visibility_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/wm/visibility_controller.h" 5 #include "ash/wm/visibility_controller.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/wm/window_animations.h" 8 #include "ash/wm/window_animations.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/aura/window_property.h" 10 #include "ui/aura/window_property.h"
11 #include "ui/gfx/compositor/layer.h" 11 #include "ui/compositor/layer.h"
12 12
13 DECLARE_WINDOW_PROPERTY_TYPE(bool) 13 DECLARE_WINDOW_PROPERTY_TYPE(bool)
14 14
15 namespace ash { 15 namespace ash {
16 namespace internal { 16 namespace internal {
17 // Property set on all windows whose child windows' visibility changes are 17 // Property set on all windows whose child windows' visibility changes are
18 // animated. 18 // animated.
19 DEFINE_LOCAL_WINDOW_PROPERTY_KEY( 19 DEFINE_LOCAL_WINDOW_PROPERTY_KEY(
20 bool, kChildWindowVisibilityChangesAnimatedKey, false); 20 bool, kChildWindowVisibilityChangesAnimatedKey, false);
21 21
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 window->layer()->SetVisible(visible); 59 window->layer()->SetVisible(visible);
60 } 60 }
61 61
62 } // namespace internal 62 } // namespace internal
63 63
64 void SetChildWindowVisibilityChangesAnimated(aura::Window* window) { 64 void SetChildWindowVisibilityChangesAnimated(aura::Window* window) {
65 window->SetProperty(internal::kChildWindowVisibilityChangesAnimatedKey, true); 65 window->SetProperty(internal::kChildWindowVisibilityChangesAnimatedKey, true);
66 } 66 }
67 67
68 } // namespace ash 68 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/toplevel_window_event_filter.cc ('k') | ash/wm/visibility_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698