| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SKY_ENGINE_CORE_HTML_HTMLIFRAMEELEMENT_H_ | 5 #ifndef SKY_ENGINE_CORE_HTML_HTMLIFRAMEELEMENT_H_ |
| 6 #define SKY_ENGINE_CORE_HTML_HTMLIFRAMEELEMENT_H_ | 6 #define SKY_ENGINE_CORE_HTML_HTMLIFRAMEELEMENT_H_ |
| 7 | 7 |
| 8 #include "gen/sky/core/HTMLNames.h" | 8 #include "gen/sky/core/HTMLNames.h" |
| 9 #include "mojo/services/public/cpp/view_manager/view_observer.h" | 9 #include "mojo/services/public/cpp/view_manager/view_observer.h" |
| 10 #include "sky/engine/core/dom/DOMURLUtils.h" | 10 #include "sky/engine/core/dom/DOMURLUtils.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 virtual ~HTMLIFrameElement(); | 25 virtual ~HTMLIFrameElement(); |
| 26 | 26 |
| 27 mojo::View* contentView() const { return m_contentView; } | 27 mojo::View* contentView() const { return m_contentView; } |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 explicit HTMLIFrameElement(Document&); | 30 explicit HTMLIFrameElement(Document&); |
| 31 | 31 |
| 32 // HTMLElement methods: | 32 // HTMLElement methods: |
| 33 virtual RenderObject* createRenderer(RenderStyle* style) override; | 33 virtual RenderObject* createRenderer(RenderStyle* style) override; |
| 34 | 34 |
| 35 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; | 35 virtual void insertedInto(ContainerNode*) override; |
| 36 virtual void removedFrom(ContainerNode*) override; | 36 virtual void removedFrom(ContainerNode*) override; |
| 37 | 37 |
| 38 // ViewObserver methods: | 38 // ViewObserver methods: |
| 39 void OnViewDestroyed(mojo::View* view) override; | 39 void OnViewDestroyed(mojo::View* view) override; |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 void createView(); | 42 void createView(); |
| 43 | 43 |
| 44 mojo::View* m_contentView; | 44 mojo::View* m_contentView; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace blink | 47 } // namespace blink |
| 48 | 48 |
| 49 #endif // SKY_ENGINE_CORE_HTML_HTMLIFRAMEELEMENT_H_ | 49 #endif // SKY_ENGINE_CORE_HTML_HTMLIFRAMEELEMENT_H_ |
| OLD | NEW |