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

Side by Side Diff: mojo/services/public/cpp/view_manager/view.h

Issue 737913002: Dispatch key events to the currently focused window. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Redo FocusController storage so that it is a local property on a view. Created 6 years, 1 month 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 MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 bool IsDrawn() const; 94 bool IsDrawn() const;
95 95
96 // Observation. 96 // Observation.
97 void AddObserver(ViewObserver* observer); 97 void AddObserver(ViewObserver* observer);
98 void RemoveObserver(ViewObserver* observer); 98 void RemoveObserver(ViewObserver* observer);
99 99
100 // Tree. 100 // Tree.
101 View* parent() { return parent_; } 101 View* parent() { return parent_; }
102 const View* parent() const { return parent_; } 102 const View* parent() const { return parent_; }
103 const Children& children() const { return children_; } 103 const Children& children() const { return children_; }
104 const View* GetRoot() const;
104 105
105 void AddChild(View* child); 106 void AddChild(View* child);
106 void RemoveChild(View* child); 107 void RemoveChild(View* child);
107 108
108 void Reorder(View* relative, OrderDirection direction); 109 void Reorder(View* relative, OrderDirection direction);
109 void MoveToFront(); 110 void MoveToFront();
110 void MoveToBack(); 111 void MoveToBack();
111 112
112 bool Contains(View* child) const; 113 bool Contains(View* child) const;
113 114
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 }; 179 };
179 180
180 std::map<const void*, Value> prop_map_; 181 std::map<const void*, Value> prop_map_;
181 182
182 DISALLOW_COPY_AND_ASSIGN(View); 183 DISALLOW_COPY_AND_ASSIGN(View);
183 }; 184 };
184 185
185 } // namespace mojo 186 } // namespace mojo
186 187
187 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ 188 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/view_manager/lib/view.cc ('k') | mojo/services/window_manager/basic_focus_rules.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698