flutter_flutter/engine/core/rendering/RenderCustomLayout.h
Ojan Vafai aecc73f1f5 First iteration on custom layout.
This allows setting x/y/width/height directly on an element
during a synchronous layout callback. At the moment, you can do
dangerous things (e.g. change tree structure). In a followup patch
we'll make that impossible via an IDL guard.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1023753007
2015-04-01 19:16:29 -07:00

25 lines
664 B
C++

// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SKY_ENGINE_CORE_RENDERING_RENDERCUSTOMLAYOUT_H_
#define SKY_ENGINE_CORE_RENDERING_RENDERCUSTOMLAYOUT_H_
#include "sky/engine/core/rendering/RenderBlock.h"
namespace blink {
class RenderCustomLayout : public RenderBlock {
public:
explicit RenderCustomLayout(ContainerNode* node);
virtual void layout() override;
const char* renderName() const;
protected:
virtual ~RenderCustomLayout();
};
} // namespace blink
#endif // SKY_ENGINE_CORE_RENDERING_RENDERCUSTOMLAYOUT_H_