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

Unified Diff: ui/views/examples/multiline_elision_example.h

Issue 1953133002: [WIP: not for review] Reduce re-layout Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: ui/views/examples/multiline_elision_example.h
diff --git a/ui/views/examples/multiline_elision_example.h b/ui/views/examples/multiline_elision_example.h
new file mode 100644
index 0000000000000000000000000000000000000000..edb1792e6c8a56bc2cf156e87920817c584e40b6
--- /dev/null
+++ b/ui/views/examples/multiline_elision_example.h
@@ -0,0 +1,33 @@
+// 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 UI_VIEWS_EXAMPLES_MULTILINE_ELISION_EXAMPLE_H_
+#define UI_VIEWS_EXAMPLES_MULTILINE_ELISION_EXAMPLE_H_
+
+#include "ui/views/examples/multiline_example.h"
+
+namespace views {
+namespace examples {
+
+// An example that compares the multiline elision rendering of different
+// controls.
+class VIEWS_EXAMPLES_EXPORT MultilineElisionExample : public MultilineExample {
+ public:
+ MultilineElisionExample();
+ ~MultilineElisionExample() override;
+
+ protected:
+ class ElidedRenderTextView;
+
+ // MultilineExample:
+ RenderTextView* CreateTextView() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MultilineElisionExample);
+};
+
+} // namespace examples
+} // namespace views
+
+#endif // UI_VIEWS_EXAMPLES_MULTILINE_ELISION_EXAMPLE_H_

Powered by Google App Engine
This is Rietveld 408576698