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

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

Issue 331563003: Launching + Views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 | Annotate | Revision Log
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_TREE_NODE_H_ 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_H_
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_H_ 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void MoveToBack(); 58 void MoveToBack();
59 59
60 bool Contains(ViewTreeNode* child) const; 60 bool Contains(ViewTreeNode* child) const;
61 61
62 ViewTreeNode* GetChildById(Id id); 62 ViewTreeNode* GetChildById(Id id);
63 63
64 // View. 64 // View.
65 void SetActiveView(View* view); 65 void SetActiveView(View* view);
66 View* active_view() { return active_view_; } 66 View* active_view() { return active_view_; }
67 67
68 // Focus.
69 void SetFocus();
70
68 // Embedding. 71 // Embedding.
69 void Embed(const String& url); 72 void Embed(const String& url);
70 73
71 protected: 74 protected:
72 // This class is subclassed only by test classes that provide a public ctor. 75 // This class is subclassed only by test classes that provide a public ctor.
73 ViewTreeNode(); 76 ViewTreeNode();
74 ~ViewTreeNode(); 77 ~ViewTreeNode();
75 78
76 private: 79 private:
77 friend class ViewTreeNodePrivate; 80 friend class ViewTreeNodePrivate;
(...skipping 18 matching lines...) Expand all
96 gfx::Rect bounds_; 99 gfx::Rect bounds_;
97 View* active_view_; 100 View* active_view_;
98 101
99 DISALLOW_COPY_AND_ASSIGN(ViewTreeNode); 102 DISALLOW_COPY_AND_ASSIGN(ViewTreeNode);
100 }; 103 };
101 104
102 } // namespace view_manager 105 } // namespace view_manager
103 } // namespace mojo 106 } // namespace mojo
104 107
105 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_H_ 108 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_H_
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/view_manager/lib/view_tree_node.cc ('k') | mojo/services/public/interfaces/launcher/launcher.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698