OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #include "ppapi/tests/test_fullscreen.h" | 5 #include "ppapi/tests/test_fullscreen.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <string.h> | 8 #include <string.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "ppapi/c/dev/ppb_testing_dev.h" | 11 #include "ppapi/c/dev/ppb_testing_dev.h" |
12 #include "ppapi/c/dev/ppb_fullscreen_dev.h" | 12 #include "ppapi/c/ppb_fullscreen.h" |
13 #include "ppapi/cpp/input_event.h" | 13 #include "ppapi/cpp/input_event.h" |
14 #include "ppapi/cpp/instance.h" | 14 #include "ppapi/cpp/instance.h" |
15 #include "ppapi/cpp/module.h" | 15 #include "ppapi/cpp/module.h" |
16 #include "ppapi/cpp/point.h" | 16 #include "ppapi/cpp/point.h" |
17 #include "ppapi/tests/test_utils.h" | 17 #include "ppapi/tests/test_utils.h" |
18 #include "ppapi/tests/testing_instance.h" | 18 #include "ppapi/tests/testing_instance.h" |
19 | 19 |
20 REGISTER_TEST_CASE(Fullscreen); | 20 REGISTER_TEST_CASE(Fullscreen); |
21 | 21 |
22 namespace { | 22 namespace { |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 pp::Module::Get()->core()->CallOnMainThread(0, fullscreen_callback_); | 217 pp::Module::Get()->core()->CallOnMainThread(0, fullscreen_callback_); |
218 } else if (normal_pending_) { | 218 } else if (normal_pending_) { |
219 normal_pending_ = false; | 219 normal_pending_ = false; |
220 if (screen_mode_.IsFullscreen()) | 220 if (screen_mode_.IsFullscreen()) |
221 error_ = "DidChangeview is in fullscreen"; | 221 error_ = "DidChangeview is in fullscreen"; |
222 else if (position != normal_position_) | 222 else if (position != normal_position_) |
223 error_ = "DidChangeView position is not normal"; | 223 error_ = "DidChangeView position is not normal"; |
224 pp::Module::Get()->core()->CallOnMainThread(0, normal_callback_); | 224 pp::Module::Get()->core()->CallOnMainThread(0, normal_callback_); |
225 } | 225 } |
226 } | 226 } |
OLD | NEW |