blob: fbe948784d8505a12abced4f4ca14129a2cc3b6c [file]
// 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.
#ifndef UI_VIEWS_EXAMPLES_SCROLL_VIEW_EXAMPLE_H_
#define UI_VIEWS_EXAMPLES_SCROLL_VIEW_EXAMPLE_H_
#include "base/memory/raw_ptr.h"
#include "ui/views/controls/scroll_view.h"
#include "ui/views/examples/example_base.h"
namespace views {
namespace examples {
class VIEWS_EXAMPLES_EXPORT ScrollViewExample : public ExampleBase {
public:
ScrollViewExample();
ScrollViewExample(const ScrollViewExample&) = delete;
ScrollViewExample& operator=(const ScrollViewExample&) = delete;
~ScrollViewExample() override;
// ExampleBase:
void CreateExampleView(View* container) override;
private:
class ScrollableView;
void ButtonPressed(gfx::Rect bounds, SkColor from, SkColor to);
// The content of the scroll view.
raw_ptr<ScrollableView> scrollable_;
// The scroll view to test.
raw_ptr<ScrollView> scroll_view_;
};
} // namespace examples
} // namespace views
#endif // UI_VIEWS_EXAMPLES_SCROLL_VIEW_EXAMPLE_H_