flutter_flutter/engine/core/html/HTMLIFrameElement.h
Matt Perry 694cabc454 Initial work on a new <view> element backed by a mojo::View.
This CL introduces an HTMLViewElement which, when inserted into a document,
causes a mojo::View to be created and navigated to the provided URL. No
compositing is done, but the view manager handles the rendering (as I
understand it).

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/708903002
2014-11-07 14:34:07 -05:00

37 lines
901 B
C++

// Copyright 2014 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 HTMLIFrameElement_h
#define HTMLIFrameElement_h
#include "core/HTMLNames.h"
#include "core/dom/DOMURLUtils.h"
#include "core/dom/Document.h"
#include "core/html/HTMLElement.h"
namespace blink {
class HTMLIFrameElement : public HTMLElement {
DEFINE_WRAPPERTYPEINFO();
public:
static PassRefPtr<HTMLIFrameElement> create(Document&);
virtual ~HTMLIFrameElement();
private:
explicit HTMLIFrameElement(Document&);
virtual RenderObject* createRenderer(RenderStyle* style) override;
virtual InsertionNotificationRequest insertedInto(ContainerNode*) override;
virtual void removedFrom(ContainerNode*) override;
private:
void createView();
};
} // namespace blink
#endif // HTMLIFrameElement_h