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

Side by Side Diff: views/controls/scroll_view.cc

Issue 3066014: Cleanup: Remove unneeded headers from app/ (part 2) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 10 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "views/controls/scroll_view.h" 5 #include "views/controls/scroll_view.h"
6 6
7 #include "app/resource_bundle.h"
8 #include "base/logging.h" 7 #include "base/logging.h"
9 #include "views/controls/scrollbar/native_scroll_bar.h" 8 #include "views/controls/scrollbar/native_scroll_bar.h"
10 #include "views/widget/root_view.h" 9 #include "views/widget/root_view.h"
11 10
12 namespace views { 11 namespace views {
13 12
14 const char* const ScrollView::kViewClassName = "views/ScrollView"; 13 const char* const ScrollView::kViewClassName = "views/ScrollView";
15 14
16 // Viewport contains the contents View of the ScrollView. 15 // Viewport contains the contents View of the ScrollView.
17 class Viewport : public View { 16 class Viewport : public View {
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 501
503 VariableRowHeightScrollHelper::RowInfo 502 VariableRowHeightScrollHelper::RowInfo
504 FixedRowHeightScrollHelper::GetRowInfo(int y) { 503 FixedRowHeightScrollHelper::GetRowInfo(int y) {
505 if (y < top_margin_) 504 if (y < top_margin_)
506 return RowInfo(0, top_margin_); 505 return RowInfo(0, top_margin_);
507 return RowInfo((y - top_margin_) / row_height_ * row_height_ + top_margin_, 506 return RowInfo((y - top_margin_) / row_height_ * row_height_ + top_margin_,
508 row_height_); 507 row_height_);
509 } 508 }
510 509
511 } // namespace views 510 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/progress_bar_unittest.cc ('k') | views/controls/tabbed_pane/native_tabbed_pane_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698