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

Unified Diff: views/examples/single_split_view_example.cc

Issue 8351036: views/examples: Make SingleSplitViewExample a listener of SingleSplitView control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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/examples/single_split_view_example.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/examples/single_split_view_example.cc
diff --git a/views/examples/single_split_view_example.cc b/views/examples/single_split_view_example.cc
index 35932c79bcaf23799acffff2bd4b77a9123e9300..46047c408d96500d4cbe71f7edefd175655cc1ae 100644
--- a/views/examples/single_split_view_example.cc
+++ b/views/examples/single_split_view_example.cc
@@ -69,7 +69,7 @@ void SingleSplitViewExample::CreateExampleView(views::View* container) {
single_split_view_ = new views::SingleSplitView(
splitted_view_1, splitted_view_2,
views::SingleSplitView::HORIZONTAL_SPLIT,
- NULL);
+ this);
views::GridLayout* layout = new views::GridLayout(container);
container->SetLayoutManager(layout);
@@ -81,4 +81,9 @@ void SingleSplitViewExample::CreateExampleView(views::View* container) {
layout->AddView(single_split_view_);
}
+bool SingleSplitViewExample::SplitHandleMoved(views::SingleSplitView* sender) {
+ PrintStatus("Splitter moved");
+ return true;
+}
+
} // namespace examples
« no previous file with comments | « views/examples/single_split_view_example.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698