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

Unified Diff: ui/views/controls/scrollbar/scroll_bar.cc

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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 | « ui/views/controls/scrollbar/scroll_bar.h ('k') | ui/views/controls/scrollbar/scrollbar_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/scrollbar/scroll_bar.cc
diff --git a/ui/views/controls/scrollbar/scroll_bar.cc b/ui/views/controls/scrollbar/scroll_bar.cc
deleted file mode 100644
index 014cf3b53fa42d76165f03e79e10c7070cdf0184..0000000000000000000000000000000000000000
--- a/ui/views/controls/scrollbar/scroll_bar.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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.
-
-#include "ui/views/controls/scrollbar/scroll_bar.h"
-
-#include "ui/accessibility/ax_view_state.h"
-
-namespace views {
-
-ScrollBar::~ScrollBar() {
-}
-
-void ScrollBar::GetAccessibleState(ui::AXViewState* state) {
- state->role = ui::AX_ROLE_SCROLL_BAR;
-}
-
-bool ScrollBar::IsHorizontal() const {
- return is_horiz_;
-}
-
-void ScrollBar::Update(int viewport_size, int content_size, int current_pos) {
- max_pos_ = std::max(0, content_size - viewport_size);
-}
-
-int ScrollBar::GetMaxPosition() const {
- return max_pos_;
-}
-
-int ScrollBar::GetMinPosition() const {
- return 0;
-}
-
-int ScrollBar::GetContentOverlapSize() const {
- return 0;
-}
-
-void ScrollBar::OnMouseEnteredScrollView(const ui::MouseEvent& event) {
-}
-
-void ScrollBar::OnMouseExitedScrollView(const ui::MouseEvent& event) {
-}
-
-ScrollBar::ScrollBar(bool is_horiz)
- : is_horiz_(is_horiz),
- controller_(NULL),
- max_pos_(0) {
-}
-
-} // namespace views
« no previous file with comments | « ui/views/controls/scrollbar/scroll_bar.h ('k') | ui/views/controls/scrollbar/scrollbar_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698