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

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

Issue 1534303002: CustomButton cleanup: make protected members private, create accessors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy up Created 5 years 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/kennedy_scroll_bar.h
diff --git a/ui/views/controls/scrollbar/kennedy_scroll_bar.h b/ui/views/controls/scrollbar/kennedy_scroll_bar.h
deleted file mode 100644
index cb13732862f7dc4e485fe6e5a7485f3b005ead93..0000000000000000000000000000000000000000
--- a/ui/views/controls/scrollbar/kennedy_scroll_bar.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2013 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_KENNEDY_SCROLL_BAR_H_
-#define UI_VIEWS_CONTROLS_SCROLLBAR_KENNEDY_SCROLL_BAR_H_
-
-#include "ui/views/controls/scrollbar/base_scroll_bar.h"
-
-namespace views {
-
-// The scrollbar of kennedy style. Transparent track and grey rectangle
-// thumb. Right now it doesn't have the way to share the background,
-// so it will accept the background color instead.
-class VIEWS_EXPORT KennedyScrollBar : public BaseScrollBar {
- public:
- explicit KennedyScrollBar(bool horizontal);
- ~KennedyScrollBar() override;
-
- protected:
- // BaseScrollBar overrides:
- gfx::Rect GetTrackBounds() const override;
-
- // ScrollBar overrides:
- int GetLayoutSize() const override;
-
- // View overrides:
- gfx::Size GetPreferredSize() const override;
- void Layout() override;
- void OnPaint(gfx::Canvas* canvas) override;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(KennedyScrollBar);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_CONTROLS_SCROLLBAR_KENNEDY_SCROLL_BAR_H_

Powered by Google App Engine
This is Rietveld 408576698