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

Side by Side Diff: webkit/plugins/ppapi/mock_plugin_delegate.cc

Issue 7714017: Reimplement the Pepper fullscreen API to use webkitRequestFullScreen and friends. (Closed) Base URL: ssh://matter.syd/usr/local/google/chromium2/src@master
Patch Set: mock_plugin_delegate Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "ppapi/shared_impl/ppapi_preferences.h" 9 #include "ppapi/shared_impl/ppapi_preferences.h"
10 10
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 return PP_ERROR_FAILED; 216 return PP_ERROR_FAILED;
217 } 217 }
218 218
219 int32_t MockPluginDelegate::ShowContextMenu( 219 int32_t MockPluginDelegate::ShowContextMenu(
220 PluginInstance* instance, 220 PluginInstance* instance,
221 webkit::ppapi::PPB_Flash_Menu_Impl* menu, 221 webkit::ppapi::PPB_Flash_Menu_Impl* menu,
222 const gfx::Point& position) { 222 const gfx::Point& position) {
223 return PP_ERROR_FAILED; 223 return PP_ERROR_FAILED;
224 } 224 }
225 225
226 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer(
227 PluginInstance* instance) {
228 return NULL;
229 }
230
231 gfx::Size MockPluginDelegate::GetScreenSize() { 226 gfx::Size MockPluginDelegate::GetScreenSize() {
232 return gfx::Size(1024, 768); 227 return gfx::Size(1024, 768);
233 } 228 }
234 229
235 std::string MockPluginDelegate::GetDefaultEncoding() { 230 std::string MockPluginDelegate::GetDefaultEncoding() {
236 return "iso-8859-1"; 231 return "iso-8859-1";
237 } 232 }
238 233
239 void MockPluginDelegate::ZoomLimitsChanged(double minimum_factor, 234 void MockPluginDelegate::ZoomLimitsChanged(double minimum_factor,
240 double maximum_factor) { 235 double maximum_factor) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 uint32_t size) { 274 uint32_t size) {
280 return NULL; 275 return NULL;
281 } 276 }
282 277
283 ::ppapi::Preferences MockPluginDelegate::GetPreferences() { 278 ::ppapi::Preferences MockPluginDelegate::GetPreferences() {
284 return ::ppapi::Preferences(); 279 return ::ppapi::Preferences();
285 } 280 }
286 281
287 } // namespace ppapi 282 } // namespace ppapi
288 } // namespace webkit 283 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698