Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1005)

Unified Diff: Source/core/html/HTMLImport.h

Issue 18467003: Refactoring: Introduce HTMLImport interface to form import tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added missing checks and a clearance. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/html/HTMLImport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLImport.h
diff --git a/Source/modules/webmidi/MIDIClient.h b/Source/core/html/HTMLImport.h
similarity index 81%
copy from Source/modules/webmidi/MIDIClient.h
copy to Source/core/html/HTMLImport.h
index 5c797c4fb22a1b126728355b4f091546ec007d5f..afcec1728d0471c54f5b1418f10a27561a2d1004 100644
--- a/Source/modules/webmidi/MIDIClient.h
+++ b/Source/core/html/HTMLImport.h
@@ -28,27 +28,26 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef MIDIClient_h
-#define MIDIClient_h
-
-#include "wtf/PassRefPtr.h"
+#ifndef HTMLImport_h
+#define HTMLImport_h
namespace WebCore {
-class MIDIAccess;
-class Page;
+class Document;
+class HTMLImportsController;
-class MIDIClient {
+class HTMLImport {
public:
- virtual void requestSysExPermission(PassRefPtr<MIDIAccess>) = 0;
- virtual void cancelSysExPermissionRequest(MIDIAccess*) = 0;
+ virtual ~HTMLImport() { }
-protected:
- virtual ~MIDIClient() { }
-};
+ bool haveChildrenLoaded();
-void provideMIDITo(Page*, MIDIClient*);
+ virtual HTMLImportsController* controller() = 0;
+ virtual HTMLImport* parent() = 0;
+ virtual Document* document() = 0;
+ virtual void wasDetachedFromDocument() = 0;
+};
} // namespace WebCore
-#endif // MIDIClient_h
+#endif // HTMLImport_h
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/html/HTMLImport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698