| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEW_H_ | 5 #ifndef VIEWS_VIEW_H_ |
| 6 #define VIEWS_VIEW_H_ | 6 #define VIEWS_VIEW_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 // to scroll by a default amount. | 929 // to scroll by a default amount. |
| 930 // | 930 // |
| 931 // See VariableRowHeightScrollHelper and FixedRowHeightScrollHelper for | 931 // See VariableRowHeightScrollHelper and FixedRowHeightScrollHelper for |
| 932 // implementations of common cases. | 932 // implementations of common cases. |
| 933 virtual int GetPageScrollIncrement(ScrollView* scroll_view, | 933 virtual int GetPageScrollIncrement(ScrollView* scroll_view, |
| 934 bool is_horizontal, bool is_positive); | 934 bool is_horizontal, bool is_positive); |
| 935 virtual int GetLineScrollIncrement(ScrollView* scroll_view, | 935 virtual int GetLineScrollIncrement(ScrollView* scroll_view, |
| 936 bool is_horizontal, bool is_positive); | 936 bool is_horizontal, bool is_positive); |
| 937 | 937 |
| 938 // Get the theme provider from the parent widget. | 938 // Get the theme provider from the parent widget. |
| 939 ThemeProvider* GetThemeProvider(); | 939 ThemeProvider* GetThemeProvider() const; |
| 940 | 940 |
| 941 protected: | 941 protected: |
| 942 // The id of this View. Used to find this View. | 942 // The id of this View. Used to find this View. |
| 943 int id_; | 943 int id_; |
| 944 | 944 |
| 945 // The group of this view. Some view subclasses use this id to find other | 945 // The group of this view. Some view subclasses use this id to find other |
| 946 // views of the same group. For example radio button uses this information | 946 // views of the same group. For example radio button uses this information |
| 947 // to find other radio buttons. | 947 // to find other radio buttons. |
| 948 int group_; | 948 int group_; |
| 949 | 949 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1233 // is going to be flipped horizontally (using the appropriate transform) on | 1233 // is going to be flipped horizontally (using the appropriate transform) on |
| 1234 // right-to-left locales for this View. | 1234 // right-to-left locales for this View. |
| 1235 bool flip_canvas_on_paint_for_rtl_ui_; | 1235 bool flip_canvas_on_paint_for_rtl_ui_; |
| 1236 | 1236 |
| 1237 DISALLOW_COPY_AND_ASSIGN(View); | 1237 DISALLOW_COPY_AND_ASSIGN(View); |
| 1238 }; | 1238 }; |
| 1239 | 1239 |
| 1240 } // namespace views | 1240 } // namespace views |
| 1241 | 1241 |
| 1242 #endif // VIEWS_VIEW_H_ | 1242 #endif // VIEWS_VIEW_H_ |
| OLD | NEW |