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

Side by Side Diff: ui/wm/core/visibility_controller.h

Issue 194843004: Move files from ui/views/corewm to ui/wm/core (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
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 #ifndef UI_VIEWS_COREWM_VISIBILITY_CONTROLLER_H_ 5 #ifndef UI_WM_CORE_VISIBILITY_CONTROLLER_H_
6 #define UI_VIEWS_COREWM_VISIBILITY_CONTROLLER_H_ 6 #define UI_WM_CORE_VISIBILITY_CONTROLLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "ui/aura/client/visibility_client.h" 10 #include "ui/aura/client/visibility_client.h"
11 #include "ui/views/views_export.h" 11 #include "ui/wm/core/wm_core_export.h"
12 12
13 namespace views { 13 namespace views {
14 namespace corewm { 14 namespace corewm {
15 15
16 class VIEWS_EXPORT VisibilityController 16 class WM_CORE_EXPORT VisibilityController
17 : public aura::client::VisibilityClient { 17 : public aura::client::VisibilityClient {
18 public: 18 public:
19 VisibilityController(); 19 VisibilityController();
20 virtual ~VisibilityController(); 20 virtual ~VisibilityController();
21 21
22 protected: 22 protected:
23 // Subclasses override if they want to call a different implementation of 23 // Subclasses override if they want to call a different implementation of
24 // this function. 24 // this function.
25 // TODO(beng): potentially replace by an actual window animator class in 25 // TODO(beng): potentially replace by an actual window animator class in
26 // window_animations.h. 26 // window_animations.h.
(...skipping 14 matching lines...) Expand all
41 // Example: 41 // Example:
42 // 42 //
43 // void ViewName::UnanimatedAction() { 43 // void ViewName::UnanimatedAction() {
44 // SuspendChildWindowVisibilityAnimations suspend(parent); 44 // SuspendChildWindowVisibilityAnimations suspend(parent);
45 // // Perform unanimated action here. 45 // // Perform unanimated action here.
46 // // ... 46 // // ...
47 // // When the method finishes, visibility animations will return to their 47 // // When the method finishes, visibility animations will return to their
48 // // previous state. 48 // // previous state.
49 // } 49 // }
50 // 50 //
51 class VIEWS_EXPORT SuspendChildWindowVisibilityAnimations { 51 class WM_CORE_EXPORT SuspendChildWindowVisibilityAnimations {
52 public: 52 public:
53 // Suspend visibility animations of child windows. 53 // Suspend visibility animations of child windows.
54 explicit SuspendChildWindowVisibilityAnimations(aura::Window* window); 54 explicit SuspendChildWindowVisibilityAnimations(aura::Window* window);
55 55
56 // Restore visibility animations to their original state. 56 // Restore visibility animations to their original state.
57 ~SuspendChildWindowVisibilityAnimations(); 57 ~SuspendChildWindowVisibilityAnimations();
58 58
59 private: 59 private:
60 // The window to manage. 60 // The window to manage.
61 aura::Window* window_; 61 aura::Window* window_;
62 62
63 // Whether the visibility animations on child windows were originally enabled. 63 // Whether the visibility animations on child windows were originally enabled.
64 const bool original_enabled_; 64 const bool original_enabled_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(SuspendChildWindowVisibilityAnimations); 66 DISALLOW_COPY_AND_ASSIGN(SuspendChildWindowVisibilityAnimations);
67 }; 67 };
68 68
69 // Tells |window| to animate visibility changes to its children. 69 // Tells |window| to animate visibility changes to its children.
70 void VIEWS_EXPORT SetChildWindowVisibilityChangesAnimated(aura::Window* window); 70 void WM_CORE_EXPORT SetChildWindowVisibilityChangesAnimated(
71 aura::Window* window);
71 72
72 } // namespace corewm 73 } // namespace corewm
73 } // namespace views 74 } // namespace views
74 75
75 #endif // UI_VIEWS_COREWM_VISIBILITY_CONTROLLER_H_ 76 #endif // UI_WM_CORE_VISIBILITY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/wm/core/transient_window_stacking_client_unittest.cc ('k') | ui/wm/core/visibility_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698