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

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

Issue 2419413002: Deleted CONTENT_SETTINGS_TYPE_FULLSCREEN and MOUSELOCK. (Closed)
Patch Set: Fix more things. Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 PPAPI_TESTS_TEST_MOUSE_LOCK_H_ 5 #ifndef PPAPI_TESTS_TEST_MOUSE_LOCK_H_
6 #define PPAPI_TESTS_TEST_MOUSE_LOCK_H_ 6 #define PPAPI_TESTS_TEST_MOUSE_LOCK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/cpp/mouse_lock.h" 10 #include "ppapi/cpp/mouse_lock.h"
11 #include "ppapi/cpp/rect.h" 11 #include "ppapi/cpp/rect.h"
12 #include "ppapi/tests/test_case.h" 12 #include "ppapi/tests/test_case.h"
13 #include "ppapi/tests/test_utils.h" 13 #include "ppapi/tests/test_utils.h"
14 14
15 class TestMouseLock: public TestCase, public pp::MouseLock { 15 class TestMouseLock: public TestCase, public pp::MouseLock {
16 public: 16 public:
17 explicit TestMouseLock(TestingInstance* instance); 17 explicit TestMouseLock(TestingInstance* instance);
18 virtual ~TestMouseLock(); 18 virtual ~TestMouseLock();
19 19
20 // TestCase implementation. 20 // TestCase implementation.
21 virtual bool Init(); 21 virtual bool Init();
22 virtual void RunTests(const std::string& filter); 22 virtual void RunTests(const std::string& filter);
23 virtual void DidChangeView(const pp::View& view); 23 virtual void DidChangeView(const pp::View& view);
24 24
25 // pp::MouseLock implementation. 25 // pp::MouseLock implementation.
26 virtual void MouseLockLost(); 26 virtual void MouseLockLost();
27 27
28 private: 28 private:
29 std::string TestSucceedWhenAllowed(); 29 std::string TestSucceedWhenAllowed();
30 std::string TestFailWhenBlocked();
31 30
32 void SimulateUserGesture(); 31 void SimulateUserGesture();
33 32
34 pp::Rect position_; 33 pp::Rect position_;
35 34
36 NestedEvent nested_event_; 35 NestedEvent nested_event_;
37 }; 36 };
38 37
39 #endif // PPAPI_TESTS_TEST_MOUSE_LOCK_H_ 38 #endif // PPAPI_TESTS_TEST_MOUSE_LOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698