summaryrefslogtreecommitdiffstats
path: root/ppapi/tests/test_fullscreen.h
diff options
context:
space:
mode:
authorpolina@google.com <polina@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 00:56:58 +0000
committerpolina@google.com <polina@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 00:56:58 +0000
commit0d7289b7f18d9292e1690e96ec53e933cf8387d3 (patch)
tree6e99bed1be3b3844eed527797c004928b0c1d022 /ppapi/tests/test_fullscreen.h
parent2b5ce8561b7c75c6939ccefc7e69ac778a87dd84 (diff)
downloadchromium_src-0d7289b7f18d9292e1690e96ec53e933cf8387d3.zip
chromium_src-0d7289b7f18d9292e1690e96ec53e933cf8387d3.tar.gz
chromium_src-0d7289b7f18d9292e1690e96ec53e933cf8387d3.tar.bz2
Resubmit 114881, but without a bad dependency on base.
Original code review: http://codereview.chromium.org/8954008 BUG=none TEST=ui_tests Review URL: http://codereview.chromium.org/8982004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115053 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests/test_fullscreen.h')
-rw-r--r--ppapi/tests/test_fullscreen.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/ppapi/tests/test_fullscreen.h b/ppapi/tests/test_fullscreen.h
index f326bc9..220b7e9 100644
--- a/ppapi/tests/test_fullscreen.h
+++ b/ppapi/tests/test_fullscreen.h
@@ -18,6 +18,8 @@ namespace pp {
class InputEvent;
} // namespace pp
+struct ColorPremul { uint32_t A, R, G, B; }; // Use premultipled Alpha.
+
class TestFullscreen : public TestCase {
public:
explicit TestFullscreen(TestingInstance* instance);
@@ -33,8 +35,11 @@ class TestFullscreen : public TestCase {
std::string TestNormalToFullscreenToNormal();
void SimulateUserGesture();
-
void FailFullscreenTest(const std::string& error);
+ void FailNormalTest(const std::string& error);
+ void PassFullscreenTest();
+ void PassNormalTest();
+ bool PaintPlugin(pp::Size size, ColorPremul color);
bool GotError();
std::string Error();
@@ -48,8 +53,7 @@ class TestFullscreen : public TestCase {
bool fullscreen_pending_;
bool normal_pending_;
bool saw_first_fullscreen_didchangeview;
- pp::Graphics2D graphics2d_fullscreen_;
- pp::Graphics2D graphics2d_normal_;
+ pp::Graphics2D graphics2d_;
TestCompletionCallback set_fullscreen_true_callback_;
TestCompletionCallback fullscreen_callback_;
TestCompletionCallback normal_callback_;