Put View APIs under a build flag

This commit is contained in:
Cheng Zhao 2018-05-24 15:35:50 +09:00
parent 2c8dc9e0bd
commit 0f7c25fc63
6 changed files with 35 additions and 8 deletions

View file

@ -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_; }