Put View APIs under a build flag
This commit is contained in:
parent
2c8dc9e0bd
commit
0f7c25fc63
6 changed files with 35 additions and 8 deletions
|
@ -23,9 +23,11 @@ class View : public mate::TrackableObject<View> {
|
|||
static void BuildPrototype(v8::Isolate* isolate,
|
||||
v8::Local<v8::FunctionTemplate> prototype);
|
||||
|
||||
#if defined(ENABLE_VIEW_API)
|
||||
void SetLayoutManager(mate::Handle<LayoutManager> layout_manager);
|
||||
void AddChildView(mate::Handle<View> view);
|
||||
void AddChildViewAt(mate::Handle<View> view, size_t index);
|
||||
#endif
|
||||
|
||||
views::View* view() const { return view_; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue