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

Unified Diff: ui/views/controls/scrollbar/native_scroll_bar_views.h

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
Index: ui/views/controls/scrollbar/native_scroll_bar_views.h
diff --git a/ui/views/controls/scrollbar/native_scroll_bar_views.h b/ui/views/controls/scrollbar/native_scroll_bar_views.h
deleted file mode 100644
index 9dd6b6dec60d4727add08b1c8de64469499d1881..0000000000000000000000000000000000000000
--- a/ui/views/controls/scrollbar/native_scroll_bar_views.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_VIEWS_H_
-#define UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_VIEWS_H_
-
-#include "base/compiler_specific.h"
-#include "ui/gfx/point.h"
-#include "ui/native_theme/native_theme.h"
-#include "ui/views/controls/button/button.h"
-#include "ui/views/controls/scrollbar/base_scroll_bar.h"
-#include "ui/views/controls/scrollbar/native_scroll_bar_wrapper.h"
-#include "ui/views/view.h"
-
-namespace gfx {
-class Canvas;
-}
-
-namespace views {
-
-class NativeScrollBar;
-
-// Views implementation for the scrollbar.
-class VIEWS_EXPORT NativeScrollBarViews : public BaseScrollBar,
- public ButtonListener,
- public NativeScrollBarWrapper {
- public:
- static const char kViewClassName[];
-
- // Creates new scrollbar, either horizontal or vertical.
- explicit NativeScrollBarViews(NativeScrollBar* native_scroll_bar);
- virtual ~NativeScrollBarViews();
-
- private:
- // View overrides:
- virtual void Layout() override;
- virtual void OnPaint(gfx::Canvas* canvas) override;
- virtual gfx::Size GetPreferredSize() const override;
- virtual const char* GetClassName() const override;
-
- // ScrollBar overrides:
- virtual int GetLayoutSize() const override;
-
- // BaseScrollBar overrides:
- virtual void ScrollToPosition(int position) override;
- virtual int GetScrollIncrement(bool is_page, bool is_positive) override;
-
- // BaseButton::ButtonListener overrides:
- virtual void ButtonPressed(Button* sender,
- const ui::Event& event) override;
-
- // NativeScrollBarWrapper overrides:
- virtual int GetPosition() const override;
- virtual View* GetView() override;
- virtual void Update(int viewport_size,
- int content_size,
- int current_pos) override;
-
- // Returns the area for the track. This is the area of the scrollbar minus
- // the size of the arrow buttons.
- virtual gfx::Rect GetTrackBounds() const override;
-
- // The NativeScrollBar we are bound to.
- NativeScrollBar* native_scroll_bar_;
-
- // The scroll bar buttons (Up/Down, Left/Right).
- Button* prev_button_;
- Button* next_button_;
-
- ui::NativeTheme::ExtraParams params_;
- ui::NativeTheme::Part part_;
- ui::NativeTheme::State state_;
-
- DISALLOW_COPY_AND_ASSIGN(NativeScrollBarViews);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_VIEWS_H_
« no previous file with comments | « ui/views/controls/scrollbar/native_scroll_bar.cc ('k') | ui/views/controls/scrollbar/native_scroll_bar_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698