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

Side by Side Diff: components/mus/public/cpp/lib/view_private.h

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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_LIB_VIEW_PRIVATE_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_VIEW_PRIVATE_H_
6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_PRIVATE_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_VIEW_PRIVATE_H_
7 7
8 #include "components/view_manager/public/cpp/view.h" 8 #include "components/mus/public/cpp/view.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 11
12 // This class is a friend of a View and contains functions to mutate internal 12 // This class is a friend of a View and contains functions to mutate internal
13 // state of View. 13 // state of View.
14 class ViewPrivate { 14 class ViewPrivate {
15 public: 15 public:
16 explicit ViewPrivate(View* view); 16 explicit ViewPrivate(View* view);
17 ~ViewPrivate(); 17 ~ViewPrivate();
18 18
(...skipping 16 matching lines...) Expand all
35 35
36 void set_properties(const std::map<std::string, std::vector<uint8_t>>& data) { 36 void set_properties(const std::map<std::string, std::vector<uint8_t>>& data) {
37 view_->properties_ = data; 37 view_->properties_ = data;
38 } 38 }
39 39
40 void LocalSetViewportMetrics(const ViewportMetrics& old_metrics, 40 void LocalSetViewportMetrics(const ViewportMetrics& old_metrics,
41 const ViewportMetrics& new_metrics) { 41 const ViewportMetrics& new_metrics) {
42 view_->LocalSetViewportMetrics(new_metrics, new_metrics); 42 view_->LocalSetViewportMetrics(new_metrics, new_metrics);
43 } 43 }
44 44
45 void LocalDestroy() { 45 void LocalDestroy() { view_->LocalDestroy(); }
46 view_->LocalDestroy(); 46 void LocalAddChild(View* child) { view_->LocalAddChild(child); }
47 } 47 void LocalRemoveChild(View* child) { view_->LocalRemoveChild(child); }
48 void LocalAddChild(View* child) {
49 view_->LocalAddChild(child);
50 }
51 void LocalRemoveChild(View* child) {
52 view_->LocalRemoveChild(child);
53 }
54 void LocalReorder(View* relative, OrderDirection direction) { 48 void LocalReorder(View* relative, OrderDirection direction) {
55 view_->LocalReorder(relative, direction); 49 view_->LocalReorder(relative, direction);
56 } 50 }
57 void LocalSetBounds(const Rect& old_bounds, 51 void LocalSetBounds(const Rect& old_bounds, const Rect& new_bounds) {
58 const Rect& new_bounds) {
59 view_->LocalSetBounds(old_bounds, new_bounds); 52 view_->LocalSetBounds(old_bounds, new_bounds);
60 } 53 }
61 void LocalSetDrawn(bool drawn) { view_->LocalSetDrawn(drawn); } 54 void LocalSetDrawn(bool drawn) { view_->LocalSetDrawn(drawn); }
62 void LocalSetVisible(bool visible) { view_->LocalSetVisible(visible); } 55 void LocalSetVisible(bool visible) { view_->LocalSetVisible(visible); }
63 56
64 private: 57 private:
65 View* view_; 58 View* view_;
66 59
67 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewPrivate); 60 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewPrivate);
68 }; 61 };
69 62
70 } // namespace mojo 63 } // namespace mojo
71 64
72 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_PRIVATE_H_ 65 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_VIEW_PRIVATE_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/view_observer.cc ('k') | components/mus/public/cpp/lib/view_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698