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

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: incorporated all review comments by Sky and Tfarina 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
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..241b3a8c31e9f5850262ddf892d95fc0dab1a29a
--- /dev/null
+++ b/views/examples/double_split_view_example.h
@@ -0,0 +1,33 @@
+// 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 "views/controls/single_split_view.h"
tfarina 2011/09/09 15:15:31 Please, instead of including this here, just forwa
Gajen 2011/09/12 15:13:44 Done.
+#include "views/examples/example_base.h"
+
+namespace examples {
+
+class DoubleSplitViewExample : public ExampleBase {
+ public:
+ explicit DoubleSplitViewExample(ExamplesMain* main);
+ virtual ~DoubleSplitViewExample();
+
+ // Overridden from ExampleBase:
+ virtual std::wstring GetExampleTitle() OVERRIDE;
tfarina 2011/09/09 15:15:31 could you include base/compiler_specific.h for OVE
Gajen 2011/09/12 15:13:44 Done.
+ virtual void CreateExampleView(views::View* container) OVERRIDE;
+
+ private:
+ // The SinleSplitViews to be embedded.
+ views::SingleSplitView* outer_single_split_view_;
+ views::SingleSplitView* inner_single_split_view_;
+
+ DISALLOW_COPY_AND_ASSIGN(DoubleSplitViewExample);
tfarina 2011/09/09 15:15:31 could you include base/basictypes.h for DISALLOW?
Gajen 2011/09/12 15:13:44 Done.
+};
+
+} // namespace examples
+
+#endif // VIEWS_EXAMPLES_DOUBLE_SPLIT_VIEW_EXAMPLE_H_

Powered by Google App Engine
This is Rietveld 408576698