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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_text.h

Issue 2228843003: [LayoutNG] Change core/layout/ng to Chromium style and rename files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: third_party/WebKit/Source/core/layout/ng/ng_text.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_text.h b/third_party/WebKit/Source/core/layout/ng/ng_text.h
new file mode 100644
index 0000000000000000000000000000000000000000..2b92c4554abd9193d0413e3d132e567500214b6f
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/ng/ng_text.h
@@ -0,0 +1,39 @@
+// Copyright 2016 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 NGText_h
+#define NGText_h
+
+#include "core/CoreExport.h"
+#include "platform/LayoutUnit.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class CORE_EXPORT NGText final {
+ public:
+ NGText(LayoutUnit inlineSize, LayoutUnit blockSize);
+ ~NGText() {}
+
+ LayoutUnit inlineSize() const { return m_inlineSize; }
+ LayoutUnit blockSize() const { return m_blockSize; }
+
+ LayoutUnit inlineOffset() const { return m_inlineOffset; }
+ LayoutUnit blockOffset() const { return m_blockOffset; }
+
+ const String text() const { return String(); }
+
+ void setOffset(LayoutUnit inlineOffset, LayoutUnit blockOffset);
+
+ private:
+ LayoutUnit m_inlineSize;
+ LayoutUnit m_blockSize;
+
+ LayoutUnit m_inlineOffset;
+ LayoutUnit m_blockOffset;
+};
+
+} // namespace blink
+
+#endif // NGText_h
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_margin_strut.h ('k') | third_party/WebKit/Source/core/layout/ng/ng_text.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698