OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/examples/pepper_container_app/mojo_ppapi_globals.h" | 5 #include "mojo/examples/pepper_container_app/mojo_ppapi_globals.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "mojo/examples/pepper_container_app/plugin_instance.h" | 10 #include "mojo/examples/pepper_container_app/plugin_instance.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 return NULL; | 148 return NULL; |
149 } | 149 } |
150 | 150 |
151 PP_Module MojoPpapiGlobals::GetModuleForInstance(PP_Instance instance) { | 151 PP_Module MojoPpapiGlobals::GetModuleForInstance(PP_Instance instance) { |
152 NOTIMPLEMENTED(); | 152 NOTIMPLEMENTED(); |
153 return 0; | 153 return 0; |
154 } | 154 } |
155 | 155 |
156 ppapi::MessageLoopShared* MojoPpapiGlobals::GetCurrentMessageLoop() { | 156 ppapi::MessageLoopShared* MojoPpapiGlobals::GetCurrentMessageLoop() { |
157 if (base::MessageLoopProxy::current().get() == GetMainThreadMessageLoop()) { | 157 if (base::MessageLoopProxy::current().get() == GetMainThreadMessageLoop()) { |
158 if (!main_thread_message_loop_resource_) { | 158 if (!main_thread_message_loop_resource_.get()) { |
159 main_thread_message_loop_resource_ = new MainThreadMessageLoopResource( | 159 main_thread_message_loop_resource_ = new MainThreadMessageLoopResource( |
160 GetMainThreadMessageLoop()); | 160 GetMainThreadMessageLoop()); |
161 } | 161 } |
162 return main_thread_message_loop_resource_.get(); | 162 return main_thread_message_loop_resource_.get(); |
163 } | 163 } |
164 | 164 |
165 NOTIMPLEMENTED(); | 165 NOTIMPLEMENTED(); |
166 return NULL; | 166 return NULL; |
167 } | 167 } |
168 | 168 |
169 base::TaskRunner* MojoPpapiGlobals::GetFileTaskRunner() { | 169 base::TaskRunner* MojoPpapiGlobals::GetFileTaskRunner() { |
170 NOTIMPLEMENTED(); | 170 NOTIMPLEMENTED(); |
171 return NULL; | 171 return NULL; |
172 } | 172 } |
173 | 173 |
174 std::string MojoPpapiGlobals::GetCmdLine() { | 174 std::string MojoPpapiGlobals::GetCmdLine() { |
175 NOTIMPLEMENTED(); | 175 NOTIMPLEMENTED(); |
176 return std::string(); | 176 return std::string(); |
177 } | 177 } |
178 | 178 |
179 void MojoPpapiGlobals::PreCacheFontForFlash(const void* logfontw) { | 179 void MojoPpapiGlobals::PreCacheFontForFlash(const void* logfontw) { |
180 NOTIMPLEMENTED(); | 180 NOTIMPLEMENTED(); |
181 } | 181 } |
182 | 182 |
183 } // namespace examples | 183 } // namespace examples |
184 } // namespace mojo | 184 } // namespace mojo |
OLD | NEW |