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

Unified Diff: sky/engine/core/rendering/RenderRemote.h

Issue 708903002: Initial work on a new <view> element backed by a mojo::View. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
Index: sky/engine/core/rendering/RenderRemote.h
diff --git a/sky/engine/core/inspector/IdentifiersFactory.h b/sky/engine/core/rendering/RenderRemote.h
similarity index 73%
copy from sky/engine/core/inspector/IdentifiersFactory.h
copy to sky/engine/core/rendering/RenderRemote.h
index ae4308a1aa9b5aaef96f82e80ef9971dcd186c5d..46688b2cb8f70dbcdd5bd40cfb418c0e27b89694 100644
--- a/sky/engine/core/inspector/IdentifiersFactory.h
+++ b/sky/engine/core/rendering/RenderRemote.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
esprehn 2014/11/06 22:40:28 All the files should use the google 3 line copyrig
Matt Perry 2014/11/06 23:38:50 Done.
* modification, are permitted provided that the following conditions
@@ -23,25 +23,25 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef IdentifiersFactory_h
-#define IdentifiersFactory_h
+#ifndef RenderRemote_h
+#define RenderRemote_h
-#include "wtf/text/WTFString.h"
+#include "core/rendering/RenderReplaced.h"
namespace blink {
-class IdentifiersFactory {
+class HTMLViewElement;
+
+class RenderRemote : public RenderReplaced {
public:
- static void setProcessId(long processId) { s_processId = processId; }
- static String createIdentifier();
- static String requestId(unsigned long identifier);
-private:
- static String addProcessIdPrefixTo(const String& id);
+ explicit RenderRemote(HTMLViewElement*);
+ virtual ~RenderRemote();
- static long s_processId;
+private:
+ virtual LayerType layerTypeRequired() const override { return NormalLayer; }
+ virtual void paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOffset);
};
} // namespace blink
-
-#endif // IdentifiersFactory_h
+#endif // RenderRemote_h

Powered by Google App Engine
This is Rietveld 408576698