blob: e30d3315b0196bd0e100e27be4626cf7bce30d3c [file] [log] [blame]
// 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/macros.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.
ScrollableView* scrollable_;
// The scroll view to test.
ScrollView* scroll_view_;
};
} // namespace examples
} // namespace views
#endif // UI_VIEWS_EXAMPLES_SCROLL_VIEW_EXAMPLE_H_