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

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

Issue 795593004: Update mojo sdk to rev cc531b32182099a5a034a99daff35ed5d38a61c8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More workarounds for MSVC Created 5 years, 11 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_LIB_VIEW_PRIVATE_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_PRIVATE_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_PRIVATE_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_PRIVATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 #include "mojo/services/view_manager/public/cpp/view.h" 10 #include "mojo/services/view_manager/public/cpp/view.h"
(...skipping 13 matching lines...) Expand all
24 ObserverList<ViewObserver>* observers() { return &view_->observers_; } 24 ObserverList<ViewObserver>* observers() { return &view_->observers_; }
25 25
26 void ClearParent() { view_->parent_ = NULL; } 26 void ClearParent() { view_->parent_ = NULL; }
27 27
28 void set_visible(bool visible) { view_->visible_ = visible; } 28 void set_visible(bool visible) { view_->visible_ = visible; }
29 29
30 void set_drawn(bool drawn) { view_->drawn_ = drawn; } 30 void set_drawn(bool drawn) { view_->drawn_ = drawn; }
31 31
32 void set_id(Id id) { view_->id_ = id; } 32 void set_id(Id id) { view_->id_ = id; }
33 33
34 ViewManager* view_manager() { return view_->manager_; }
35 void set_view_manager(ViewManager* manager) { 34 void set_view_manager(ViewManager* manager) {
36 view_->manager_ = manager; 35 view_->manager_ = manager;
37 } 36 }
38 37
39 void set_properties(const std::map<std::string, std::vector<uint8_t>>& data) { 38 void set_properties(const std::map<std::string, std::vector<uint8_t>>& data) {
40 view_->properties_ = data; 39 view_->properties_ = data;
41 } 40 }
42 41
43 void LocalDestroy() { 42 void LocalDestroy() {
44 view_->LocalDestroy(); 43 view_->LocalDestroy();
(...skipping 15 matching lines...) Expand all
60 59
61 private: 60 private:
62 View* view_; 61 View* view_;
63 62
64 DISALLOW_COPY_AND_ASSIGN(ViewPrivate); 63 DISALLOW_COPY_AND_ASSIGN(ViewPrivate);
65 }; 64 };
66 65
67 } // namespace mojo 66 } // namespace mojo
68 67
69 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_PRIVATE_H_ 68 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698