OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_SIMPLE_PS_INSTANCE_H_ | 5 #ifndef PPAPI_SIMPLE_PS_INSTANCE_H_ |
6 #define PPAPI_SIMPLE_PS_INSTANCE_H_ | 6 #define PPAPI_SIMPLE_PS_INSTANCE_H_ |
7 | 7 |
8 #include <stdarg.h> | 8 #include <stdarg.h> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // launching the 'ppapi_main' thread. | 117 // launching the 'ppapi_main' thread. |
118 virtual bool ProcessProperties(); | 118 virtual bool ProcessProperties(); |
119 | 119 |
120 private: | 120 private: |
121 static void* MainThreadThunk(void *start_info); | 121 static void* MainThreadThunk(void *start_info); |
122 | 122 |
123 protected: | 123 protected: |
124 pp::MessageLoop* main_loop_; | 124 pp::MessageLoop* main_loop_; |
125 | 125 |
126 PropertyMap_t properties_; | 126 PropertyMap_t properties_; |
127 ThreadSafeQueue<PSEvent> event_queue_; | 127 sdk_util::ThreadSafeQueue<PSEvent> event_queue_; |
128 uint32_t events_enabled_; | 128 uint32_t events_enabled_; |
129 Verbosity verbosity_; | 129 Verbosity verbosity_; |
130 int fd_tty_; | 130 int fd_tty_; |
131 | 131 |
132 PSMainFunc_t main_cb_; | 132 PSMainFunc_t main_cb_; |
133 | 133 |
134 const PPB_Core* ppb_core_; | 134 const PPB_Core* ppb_core_; |
135 const PPB_Var* ppb_var_; | 135 const PPB_Var* ppb_var_; |
136 const PPB_View* ppb_view_; | 136 const PPB_View* ppb_view_; |
137 | |
138 friend class PSGraphics3DClient; | |
139 friend class PSMouseLock; | |
140 }; | 137 }; |
141 | 138 |
142 #endif // PPAPI_MAIN_PS_INSTANCE_H_ | 139 #endif // PPAPI_MAIN_PS_INSTANCE_H_ |
OLD | NEW |