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

Side by Side Diff: ui/aura/window.h

Issue 2033843003: Makes ash/mus use RootWindowControllerCommon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_mash_wm
Patch Set: merge fail Created 4 years, 6 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 | « ash/wm/ash_focus_rules.cc ('k') | ui/aura/window.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 #ifndef UI_AURA_WINDOW_H_ 5 #ifndef UI_AURA_WINDOW_H_
6 #define UI_AURA_WINDOW_H_ 6 #define UI_AURA_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 67
68 // Aura window implementation. Interesting events are sent to the 68 // Aura window implementation. Interesting events are sent to the
69 // WindowDelegate. 69 // WindowDelegate.
70 // TODO(beng): resolve ownership. 70 // TODO(beng): resolve ownership.
71 class AURA_EXPORT Window : public ui::LayerDelegate, 71 class AURA_EXPORT Window : public ui::LayerDelegate,
72 public ui::LayerOwner, 72 public ui::LayerOwner,
73 public ui::EventTarget, 73 public ui::EventTarget,
74 public ui::GestureConsumer { 74 public ui::GestureConsumer {
75 public: 75 public:
76 // Initial value of id() for newly created windows.
77 static constexpr int kInitialId = -1;
78
76 // Used when stacking windows. 79 // Used when stacking windows.
77 enum StackDirection { 80 enum StackDirection {
78 STACK_ABOVE, 81 STACK_ABOVE,
79 STACK_BELOW 82 STACK_BELOW
80 }; 83 };
81 84
82 typedef std::vector<Window*> Windows; 85 typedef std::vector<Window*> Windows;
83 86
84 explicit Window(WindowDelegate* delegate); 87 explicit Window(WindowDelegate* delegate);
85 ~Window() override; 88 ~Window() override;
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 }; 523 };
521 524
522 std::map<const void*, Value> prop_map_; 525 std::map<const void*, Value> prop_map_;
523 526
524 DISALLOW_COPY_AND_ASSIGN(Window); 527 DISALLOW_COPY_AND_ASSIGN(Window);
525 }; 528 };
526 529
527 } // namespace aura 530 } // namespace aura
528 531
529 #endif // UI_AURA_WINDOW_H_ 532 #endif // UI_AURA_WINDOW_H_
OLDNEW
« no previous file with comments | « ash/wm/ash_focus_rules.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698