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

Side by Side Diff: components/mus/public/cpp/window.h

Issue 1848653006: Random wm frame painting fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: override Created 4 years, 8 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
« no previous file with comments | « components/mus/public/cpp/lib/window.cc ('k') | mash/task_viewer/task_viewer.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 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_WINDOW_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 void AddChild(Window* child); 166 void AddChild(Window* child);
167 void RemoveChild(Window* child); 167 void RemoveChild(Window* child);
168 const Children& children() const { return children_; } 168 const Children& children() const { return children_; }
169 169
170 void Reorder(Window* relative, mojom::OrderDirection direction); 170 void Reorder(Window* relative, mojom::OrderDirection direction);
171 void MoveToFront(); 171 void MoveToFront();
172 void MoveToBack(); 172 void MoveToBack();
173 173
174 // Returns true if |child| is this or a descendant of this. 174 // Returns true if |child| is this or a descendant of this.
175 bool Contains(Window* child) const; 175 bool Contains(const Window* child) const;
176 176
177 void AddTransientWindow(Window* transient_window); 177 void AddTransientWindow(Window* transient_window);
178 void RemoveTransientWindow(Window* transient_window); 178 void RemoveTransientWindow(Window* transient_window);
179 179
180 // TODO(fsamuel): Figure out if we want to refactor transient window 180 // TODO(fsamuel): Figure out if we want to refactor transient window
181 // management into a separate class. 181 // management into a separate class.
182 // Transient tree. 182 // Transient tree.
183 Window* transient_parent() { return transient_parent_; } 183 Window* transient_parent() { return transient_parent_; }
184 const Window* transient_parent() const { return transient_parent_; } 184 const Window* transient_parent() const { return transient_parent_; }
185 const Children& transient_children() const { return transient_children_; } 185 const Children& transient_children() const { return transient_children_; }
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 }; 331 };
332 332
333 std::map<const void*, Value> prop_map_; 333 std::map<const void*, Value> prop_map_;
334 334
335 DISALLOW_COPY_AND_ASSIGN(Window); 335 DISALLOW_COPY_AND_ASSIGN(Window);
336 }; 336 };
337 337
338 } // namespace mus 338 } // namespace mus
339 339
340 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ 340 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/window.cc ('k') | mash/task_viewer/task_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698