mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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
37 lines
901 B
C++
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
|