1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PAPPI_TESTS_TEST_SCROLLBAR_H_
6 #define PAPPI_TESTS_TEST_SCROLLBAR_H_
8 #include "ppapi/cpp/dev/scrollbar_dev.h"
9 #include "ppapi/cpp/dev/widget_client_dev.h"
10 #include "ppapi/cpp/dev/widget_dev.h"
11 #include "ppapi/tests/test_case.h"
13 class TestScrollbar
: public TestCase
,
14 public pp::WidgetClient_Dev
{
16 TestScrollbar(TestingInstance
* instance
);
18 // TestCase implementation.
20 virtual void RunTests(const std::string
& filter
);
23 std::string
TestHandleEvent();
25 virtual void InvalidateWidget(pp::Widget_Dev widget
,
26 const pp::Rect
& dirty_rect
);
27 virtual void ScrollbarValueChanged(pp::Scrollbar_Dev scrollbar
,
29 virtual void ScrollbarOverlayChanged(pp::Scrollbar_Dev scrollbar
,
32 pp::Scrollbar_Dev scrollbar_
;
33 bool scrollbar_value_changed_
;
36 #endif // PAPPI_TESTS_TEST_SCROLLBAR_H_