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

Side by Side Diff: views/view.h

Issue 341008: CompactLocationBar (Closed)
Patch Set: comment updated Created 11 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « chrome/chrome.gyp ('k') | views/view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698