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

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

Issue 12989006: Move HiDPI-related Pepper interfaces to stable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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/ppapi_tests.gypi ('k') | ppapi/tests/test_graphics_2d.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) 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_GRAPHICS_2D_H_ 5 #ifndef PPAPI_TESTS_TEST_GRAPHICS_2D_H_
6 #define PPAPI_TESTS_TEST_GRAPHICS_2D_H_ 6 #define PPAPI_TESTS_TEST_GRAPHICS_2D_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/c/pp_stdint.h" 10 #include "ppapi/c/pp_stdint.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Waits until we get a view change event. Note that it's possible to receive 89 // Waits until we get a view change event. Note that it's possible to receive
90 // an unexpected event, thus post_quit_on_view_changed_ is introduced so that 90 // an unexpected event, thus post_quit_on_view_changed_ is introduced so that
91 // DidChangeView can check whether the event is from here. 91 // DidChangeView can check whether the event is from here.
92 bool WaitUntilViewChanged(); 92 bool WaitUntilViewChanged();
93 93
94 std::string TestInvalidResource(); 94 std::string TestInvalidResource();
95 std::string TestInvalidSize(); 95 std::string TestInvalidSize();
96 std::string TestHumongous(); 96 std::string TestHumongous();
97 std::string TestInitToZero(); 97 std::string TestInitToZero();
98 std::string TestDescribe(); 98 std::string TestDescribe();
99 std::string TestScale();
99 std::string TestPaint(); 100 std::string TestPaint();
100 std::string TestScroll(); 101 std::string TestScroll();
101 std::string TestReplace(); 102 std::string TestReplace();
102 std::string TestFlush(); 103 std::string TestFlush();
103 std::string TestFlushOffscreenUpdate(); 104 std::string TestFlushOffscreenUpdate();
104 std::string TestDev(); 105 std::string TestDev();
105 std::string TestReplaceContentsCaching(); 106 std::string TestReplaceContentsCaching();
106 std::string TestBindNull(); 107 std::string TestBindNull();
107 108
108 // Used by the tests that access the C API directly. 109 // Used by the tests that access the C API directly.
109 const PPB_Graphics2D* graphics_2d_interface_; 110 const PPB_Graphics2D* graphics_2d_interface_;
110 const PPB_ImageData* image_data_interface_; 111 const PPB_ImageData* image_data_interface_;
111 112
112 // Used to indicate that DidChangeView has happened, in order to make plugin 113 // Used to indicate that DidChangeView has happened, in order to make plugin
113 // and ui synchronous. 114 // and ui synchronous.
114 bool is_view_changed_; 115 bool is_view_changed_;
115 116
116 // Set to true to request that the next invocation of DidChangeView should 117 // Set to true to request that the next invocation of DidChangeView should
117 // post a quit to the message loop. DidChangeView will also reset the flag so 118 // post a quit to the message loop. DidChangeView will also reset the flag so
118 // this will only happen once. 119 // this will only happen once.
119 bool post_quit_on_view_changed_; 120 bool post_quit_on_view_changed_;
120 }; 121 };
121 122
122 #endif // PPAPI_TESTS_TEST_GRAPHICS_2D_H_ 123 #endif // PPAPI_TESTS_TEST_GRAPHICS_2D_H_
OLDNEW
« no previous file with comments | « ppapi/ppapi_tests.gypi ('k') | ppapi/tests/test_graphics_2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698