| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VIEWS_CONTROLS_SINGLE_SPLIT_VIEW_H_ | 5 #ifndef VIEWS_CONTROLS_SINGLE_SPLIT_VIEW_H_ |
| 6 #define VIEWS_CONTROLS_SINGLE_SPLIT_VIEW_H_ | 6 #define VIEWS_CONTROLS_SINGLE_SPLIT_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "views/view.h" | 10 #include "views/view.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 | 13 |
| 14 // SingleSplitView lays out two views next to each other, either horizontally | 14 // SingleSplitView lays out two views next to each other, either horizontally |
| 15 // or vertically. A splitter exists between the two views that the user can | 15 // or vertically. A splitter exists between the two views that the user can |
| 16 // drag around to resize the views. | 16 // drag around to resize the views. |
| 17 // Observer's SplitHandleMoved notification helps to monitor user initiated | 17 // Observer's SplitHandleMoved notification helps to monitor user initiated |
| 18 // layout changes. | 18 // layout changes. |
| 19 class VIEWS_API SingleSplitView : public View { | 19 class VIEWS_EXPORT SingleSplitView : public View { |
| 20 public: | 20 public: |
| 21 enum Orientation { | 21 enum Orientation { |
| 22 HORIZONTAL_SPLIT, | 22 HORIZONTAL_SPLIT, |
| 23 VERTICAL_SPLIT | 23 VERTICAL_SPLIT |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 // Internal class name | 26 // Internal class name |
| 27 static const char kViewClassName[]; | 27 static const char kViewClassName[]; |
| 28 | 28 |
| 29 class Observer { | 29 class Observer { |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 // The accessible name of this view. | 137 // The accessible name of this view. |
| 138 string16 accessible_name_; | 138 string16 accessible_name_; |
| 139 | 139 |
| 140 DISALLOW_COPY_AND_ASSIGN(SingleSplitView); | 140 DISALLOW_COPY_AND_ASSIGN(SingleSplitView); |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 } // namespace views | 143 } // namespace views |
| 144 | 144 |
| 145 #endif // VIEWS_CONTROLS_SINGLE_SPLIT_VIEW_H_ | 145 #endif // VIEWS_CONTROLS_SINGLE_SPLIT_VIEW_H_ |
| OLD | NEW |