OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "webkit/plugins/ppapi/mock_plugin_delegate.h" | 5 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" |
6 | 6 |
7 #include "base/message_loop_proxy.h" | 7 #include "base/message_loop_proxy.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 | 9 |
10 namespace webkit { | 10 namespace webkit { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 171 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
172 const gfx::Point& position) { | 172 const gfx::Point& position) { |
173 return PP_ERROR_FAILED; | 173 return PP_ERROR_FAILED; |
174 } | 174 } |
175 | 175 |
176 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer( | 176 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer( |
177 PluginInstance* instance) { | 177 PluginInstance* instance) { |
178 return NULL; | 178 return NULL; |
179 } | 179 } |
180 | 180 |
| 181 gfx::Size MockPluginDelegate::GetScreenSize() { |
| 182 return gfx::Size(1024, 768); |
| 183 } |
| 184 |
181 std::string MockPluginDelegate::GetDefaultEncoding() { | 185 std::string MockPluginDelegate::GetDefaultEncoding() { |
182 return "iso-8859-1"; | 186 return "iso-8859-1"; |
183 } | 187 } |
184 | 188 |
185 void MockPluginDelegate::ZoomLimitsChanged(double minimum_factor, | 189 void MockPluginDelegate::ZoomLimitsChanged(double minimum_factor, |
186 double maximum_factor) { | 190 double maximum_factor) { |
187 } | 191 } |
188 | 192 |
189 std::string MockPluginDelegate::ResolveProxy(const GURL& url) { | 193 std::string MockPluginDelegate::ResolveProxy(const GURL& url) { |
190 return std::string(); | 194 return std::string(); |
(...skipping 10 matching lines...) Expand all Loading... |
201 | 205 |
202 void MockPluginDelegate::HasUnsupportedFeature() { | 206 void MockPluginDelegate::HasUnsupportedFeature() { |
203 } | 207 } |
204 | 208 |
205 P2PSocketDispatcher* MockPluginDelegate::GetP2PSocketDispatcher() { | 209 P2PSocketDispatcher* MockPluginDelegate::GetP2PSocketDispatcher() { |
206 return NULL; | 210 return NULL; |
207 } | 211 } |
208 | 212 |
209 } // namespace ppapi | 213 } // namespace ppapi |
210 } // namespace webkit | 214 } // namespace webkit |
OLD | NEW |