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

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

Issue 880743002: Plumb ViewportMetrics change notifications around the world and back. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix typo Created 5 years, 10 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 MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 int64 value, 146 int64 value,
147 int64 default_value); 147 int64 default_value);
148 int64 GetLocalPropertyInternal(const void* key, int64 default_value) const; 148 int64 GetLocalPropertyInternal(const void* key, int64 default_value) const;
149 149
150 void LocalDestroy(); 150 void LocalDestroy();
151 void LocalAddChild(View* child); 151 void LocalAddChild(View* child);
152 void LocalRemoveChild(View* child); 152 void LocalRemoveChild(View* child);
153 // Returns true if the order actually changed. 153 // Returns true if the order actually changed.
154 bool LocalReorder(View* relative, OrderDirection direction); 154 bool LocalReorder(View* relative, OrderDirection direction);
155 void LocalSetBounds(const Rect& old_bounds, const Rect& new_bounds); 155 void LocalSetBounds(const Rect& old_bounds, const Rect& new_bounds);
156 void LocalSetViewportMetrics(const ViewportMetrics& old_metrics,
157 const ViewportMetrics& new_metrics);
156 void LocalSetDrawn(bool drawn); 158 void LocalSetDrawn(bool drawn);
157 159
158 // Methods implementing visibility change notifications. See ViewObserver 160 // Methods implementing visibility change notifications. See ViewObserver
159 // for more details. 161 // for more details.
160 void NotifyViewVisibilityChanged(View* target); 162 void NotifyViewVisibilityChanged(View* target);
161 // Notifies this view's observers. Returns false if |this| was deleted during 163 // Notifies this view's observers. Returns false if |this| was deleted during
162 // the call (by an observer), otherwise true. 164 // the call (by an observer), otherwise true.
163 bool NotifyViewVisibilityChangedAtReceiver(View* target); 165 bool NotifyViewVisibilityChangedAtReceiver(View* target);
164 // Notifies this view and its child hierarchy. Returns false if |this| was 166 // Notifies this view and its child hierarchy. Returns false if |this| was
165 // deleted during the call (by an observer), otherwise true. 167 // deleted during the call (by an observer), otherwise true.
(...skipping 29 matching lines...) Expand all
195 }; 197 };
196 198
197 std::map<const void*, Value> prop_map_; 199 std::map<const void*, Value> prop_map_;
198 200
199 DISALLOW_COPY_AND_ASSIGN(View); 201 DISALLOW_COPY_AND_ASSIGN(View);
200 }; 202 };
201 203
202 } // namespace mojo 204 } // namespace mojo
203 205
204 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ 206 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/public/cpp/lib/view_private.cc ('k') | mojo/services/view_manager/public/cpp/view_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698