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

Side by Side Diff: ppapi/tests/test_fullscreen.cc

Issue 8291002: PPAPI Fullscreen: move out of Dev. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/tests/test_fullscreen.h ('k') | ppapi/thunk/interfaces_ppb_public_dev.h » ('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) 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
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 }
OLDNEW
« no previous file with comments | « ppapi/tests/test_fullscreen.h ('k') | ppapi/thunk/interfaces_ppb_public_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698