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

Unified Diff: views/examples/double_split_view_example.h

Issue 7846010: Fixed crash when a SinglesplitView gets embdedded inside SingleSplitView (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Examples order changed Created 9 years, 3 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 | « views/controls/single_split_view.cc ('k') | views/examples/double_split_view_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/examples/double_split_view_example.h
diff --git a/views/examples/double_split_view_example.h b/views/examples/double_split_view_example.h
new file mode 100644
index 0000000000000000000000000000000000000000..1183bad8d183667071676f9b5fe5075e60e3fff1
--- /dev/null
+++ b/views/examples/double_split_view_example.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2011 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 VIEWS_EXAMPLES_DOUBLE_SPLIT_VIEW_EXAMPLE_H_
+#define VIEWS_EXAMPLES_DOUBLE_SPLIT_VIEW_EXAMPLE_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "views/examples/example_base.h"
+
+namespace views {
+class SingleSplitView;
+}
+
+namespace examples {
+
+class DoubleSplitViewExample : public ExampleBase {
+ public:
+ explicit DoubleSplitViewExample(ExamplesMain* main);
+ virtual ~DoubleSplitViewExample();
+
+ // Overridden from ExampleBase:
+ virtual std::wstring GetExampleTitle() OVERRIDE;
+ virtual void CreateExampleView(views::View* container) OVERRIDE;
+
+ private:
+ // The SingleSplitViews to be embedded.
+ views::SingleSplitView* outer_single_split_view_;
+ views::SingleSplitView* inner_single_split_view_;
+
+ DISALLOW_COPY_AND_ASSIGN(DoubleSplitViewExample);
+};
+
+} // namespace examples
+
+#endif // VIEWS_EXAMPLES_DOUBLE_SPLIT_VIEW_EXAMPLE_H_
« no previous file with comments | « views/controls/single_split_view.cc ('k') | views/examples/double_split_view_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698