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

Side by Side Diff: ppapi/tests/test_scrollbar.h

Issue 7538006: Pepper and WebKit API change to support a plugin knowing if a scrollbar is an overlay one. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync and take out WebKit changes Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/instance.h ('k') | ppapi/tests/test_scrollbar.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PAPPI_TESTS_TEST_SCROLLBAR_H_ 5 #ifndef PAPPI_TESTS_TEST_SCROLLBAR_H_
6 #define PAPPI_TESTS_TEST_SCROLLBAR_H_ 6 #define PAPPI_TESTS_TEST_SCROLLBAR_H_
7 7
8 #include "ppapi/cpp/dev/scrollbar_dev.h" 8 #include "ppapi/cpp/dev/scrollbar_dev.h"
9 #include "ppapi/cpp/dev/widget_client_dev.h" 9 #include "ppapi/cpp/dev/widget_client_dev.h"
10 #include "ppapi/cpp/dev/widget_dev.h" 10 #include "ppapi/cpp/dev/widget_dev.h"
11 #include "ppapi/tests/test_case.h" 11 #include "ppapi/tests/test_case.h"
12 12
13 class TestScrollbar : public TestCase, 13 class TestScrollbar : public TestCase,
14 public pp::WidgetClient_Dev { 14 public pp::WidgetClient_Dev {
15 public: 15 public:
16 TestScrollbar(TestingInstance* instance); 16 TestScrollbar(TestingInstance* instance);
17 17
18 // TestCase implementation. 18 // TestCase implementation.
19 virtual bool Init(); 19 virtual bool Init();
20 virtual void RunTest(); 20 virtual void RunTest();
21 21
22 private: 22 private:
23 std::string TestHandleEvent(); 23 std::string TestHandleEvent();
24 24
25 virtual void InvalidateWidget(pp::Widget_Dev widget, 25 virtual void InvalidateWidget(pp::Widget_Dev widget,
26 const pp::Rect& dirty_rect); 26 const pp::Rect& dirty_rect);
27 virtual void ScrollbarValueChanged(pp::Scrollbar_Dev scrollbar, 27 virtual void ScrollbarValueChanged(pp::Scrollbar_Dev scrollbar,
28 uint32_t value); 28 uint32_t value);
29 virtual void ScrollbarOverlayChanged(pp::Scrollbar_Dev scrollbar,
30 bool type);
29 31
30 pp::Scrollbar_Dev scrollbar_; 32 pp::Scrollbar_Dev scrollbar_;
31 bool scrollbar_value_changed_; 33 bool scrollbar_value_changed_;
32 }; 34 };
33 35
34 #endif // PAPPI_TESTS_TEST_SCROLLBAR_H_ 36 #endif // PAPPI_TESTS_TEST_SCROLLBAR_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/instance.h ('k') | ppapi/tests/test_scrollbar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698