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

Unified Diff: views/controls/single_split_view_listener.h

Issue 8351007: views: Factor out SingleSplitView Observer into SingleSplitViewListener. (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/controls/single_split_view.cc ('k') | views/controls/single_split_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/single_split_view_listener.h
diff --git a/views/controls/single_split_view_listener.h b/views/controls/single_split_view_listener.h
new file mode 100644
index 0000000000000000000000000000000000000000..6d38aad67327c8f6c5731806708c25a4cb8c2531
--- /dev/null
+++ b/views/controls/single_split_view_listener.h
@@ -0,0 +1,29 @@
+// 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_CONTROLS_SINGLE_SPLIT_VIEW_LISTENER_H_
+#define VIEWS_CONTROLS_SINGLE_SPLIT_VIEW_LISTENER_H_
+#pragma once
+
+namespace views {
+
+class SingleSplitView;
+
+// An interface implemented by objects that want to be notified when the
+// splitter moves.
+class SingleSplitViewListener {
+ public:
+ // Invoked when split handle is moved by the user. |sender|'s divider_offset
+ // is already set to the new value, but Layout has not happened yet.
+ // Returns false if the layout has been handled by the listener, returns
+ // true if |sender| should do it by itself.
+ virtual bool SplitHandleMoved(SingleSplitView* sender) = 0;
+
+ protected:
+ virtual ~SingleSplitViewListener() {}
+};
+
+} // namespace views
+
+#endif // VIEWS_CONTROLS_SINGLE_SPLIT_VIEW_LISTENER_H_
« no previous file with comments | « views/controls/single_split_view.cc ('k') | views/controls/single_split_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698