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

Side by Side Diff: components/view_manager/public/cpp/view.h

Issue 1314953002: Rename ViewManagerService,ViewManagerClient -> ViewTree,ViewTreeClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 3 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_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_
6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ 6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "components/view_manager/public/cpp/types.h" 12 #include "components/view_manager/public/cpp/types.h"
13 #include "components/view_manager/public/interfaces/surface_id.mojom.h" 13 #include "components/view_manager/public/interfaces/surface_id.mojom.h"
14 #include "components/view_manager/public/interfaces/view_manager.mojom.h"
15 #include "components/view_manager/public/interfaces/view_manager_constants.mojom .h" 14 #include "components/view_manager/public/interfaces/view_manager_constants.mojom .h"
15 #include "components/view_manager/public/interfaces/view_tree.mojom.h"
16 #include "mojo/application/public/interfaces/service_provider.mojom.h" 16 #include "mojo/application/public/interfaces/service_provider.mojom.h"
17 #include "third_party/mojo/src/mojo/public/cpp/bindings/array.h" 17 #include "third_party/mojo/src/mojo/public/cpp/bindings/array.h"
18 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" 18 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h"
19 #include "ui/mojo/geometry/geometry.mojom.h" 19 #include "ui/mojo/geometry/geometry.mojom.h"
20 20
21 namespace mojo { 21 namespace mojo {
22 22
23 class ServiceProviderImpl; 23 class ServiceProviderImpl;
24 class View; 24 class View;
25 class ViewManager; 25 class ViewManager;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 void SetSurfaceId(SurfaceIdPtr id); 126 void SetSurfaceId(SurfaceIdPtr id);
127 127
128 void SetTextInputState(TextInputStatePtr state); 128 void SetTextInputState(TextInputStatePtr state);
129 void SetImeVisibility(bool visible, TextInputStatePtr state); 129 void SetImeVisibility(bool visible, TextInputStatePtr state);
130 130
131 // Focus. 131 // Focus.
132 void SetFocus(); 132 void SetFocus();
133 bool HasFocus() const; 133 bool HasFocus() const;
134 134
135 // Embedding. See view_manager.mojom for details. 135 // Embedding. See view_tree.mojom for details.
136 void Embed(ViewManagerClientPtr client); 136 void Embed(ViewTreeClientPtr client);
137 void EmbedAllowingReembed(mojo::URLRequestPtr request); 137 void EmbedAllowingReembed(mojo::URLRequestPtr request);
138 138
139 protected: 139 protected:
140 // This class is subclassed only by test classes that provide a public ctor. 140 // This class is subclassed only by test classes that provide a public ctor.
141 View(); 141 View();
142 ~View(); 142 ~View();
143 143
144 private: 144 private:
145 friend class ViewPrivate; 145 friend class ViewPrivate;
146 friend class ViewManagerClientImpl; 146 friend class ViewTreeClientImpl;
147 147
148 View(ViewManager* manager, Id id); 148 View(ViewManager* manager, Id id);
149 149
150 // Called by the public {Set,Get,Clear}Property functions. 150 // Called by the public {Set,Get,Clear}Property functions.
151 int64_t SetLocalPropertyInternal(const void* key, 151 int64_t SetLocalPropertyInternal(const void* key,
152 const char* name, 152 const char* name,
153 PropertyDeallocator deallocator, 153 PropertyDeallocator deallocator,
154 int64_t value, 154 int64_t value,
155 int64_t default_value); 155 int64_t default_value);
156 int64_t GetLocalPropertyInternal(const void* key, 156 int64_t GetLocalPropertyInternal(const void* key,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 }; 211 };
212 212
213 std::map<const void*, Value> prop_map_; 213 std::map<const void*, Value> prop_map_;
214 214
215 MOJO_DISALLOW_COPY_AND_ASSIGN(View); 215 MOJO_DISALLOW_COPY_AND_ASSIGN(View);
216 }; 216 };
217 217
218 } // namespace mojo 218 } // namespace mojo
219 219
220 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ 220 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_
OLDNEW
« no previous file with comments | « components/view_manager/public/cpp/tests/view_manager_test_base.cc ('k') | components/view_manager/public/cpp/view_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698