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

Side by Side Diff: components/mus/public/cpp/lib/window_private.h

Issue 1923983003: Makes WorkspaceLayoutManager use ash/wm/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "components/mus/public/cpp/window.h" 13 #include "components/mus/public/cpp/window.h"
14 #include "mojo/public/cpp/bindings/array.h" 14 #include "mojo/public/cpp/bindings/array.h"
15 15
16 namespace mus { 16 namespace mus {
17 17
18 // This class is a friend of a Window and contains functions to mutate internal 18 // This class is a friend of a Window and contains functions to mutate internal
19 // state of Window. 19 // state of Window.
20 class WindowPrivate { 20 class WindowPrivate {
21 public: 21 public:
22 explicit WindowPrivate(Window* window); 22 explicit WindowPrivate(Window* window);
23 ~WindowPrivate(); 23 ~WindowPrivate();
24 24
25 // Creates and returns a new Window. Caller owns the return value. 25 // Creates and returns a new Window. Caller owns the return value.
26 static Window* LocalCreate(); 26 static Window* LocalCreate();
27 27
28 base::ObserverList<WindowObserver>* observers() { 28 base::ObserverList<WindowObserver, true>* observers() {
29 return &window_->observers_; 29 return &window_->observers_;
30 } 30 }
31 31
32 void ClearParent() { window_->parent_ = nullptr; } 32 void ClearParent() { window_->parent_ = nullptr; }
33 33
34 void ClearTransientParent() { window_->transient_parent_ = nullptr; } 34 void ClearTransientParent() { window_->transient_parent_ = nullptr; }
35 35
36 void set_visible(bool visible) { window_->visible_ = visible; } 36 void set_visible(bool visible) { window_->visible_ = visible; }
37 37
38 void set_parent_drawn(bool drawn) { window_->parent_drawn_ = drawn; } 38 void set_parent_drawn(bool drawn) { window_->parent_drawn_ = drawn; }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 private: 93 private:
94 Window* window_; 94 Window* window_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(WindowPrivate); 96 DISALLOW_COPY_AND_ASSIGN(WindowPrivate);
97 }; 97 };
98 98
99 } // namespace mus 99 } // namespace mus
100 100
101 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 101 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698