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

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

Issue 7538006: Pepper and WebKit API change to support a plugin knowing if a scrollbar is an overlay one. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 9 years, 4 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
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/plugin_module.h" 5 #include "webkit/plugins/ppapi/plugin_module.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 if (strcmp(name, PPB_MEMORY_DEV_INTERFACE) == 0) 301 if (strcmp(name, PPB_MEMORY_DEV_INTERFACE) == 0)
302 return PPB_Memory_Impl::GetInterface(); 302 return PPB_Memory_Impl::GetInterface();
303 if (strcmp(name, PPB_MESSAGING_INTERFACE_1_0) == 0) 303 if (strcmp(name, PPB_MESSAGING_INTERFACE_1_0) == 0)
304 return ::ppapi::thunk::GetPPB_Messaging_Thunk(); 304 return ::ppapi::thunk::GetPPB_Messaging_Thunk();
305 if (strcmp(name, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0) == 0) 305 if (strcmp(name, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0) == 0)
306 return ::ppapi::thunk::GetPPB_MouseInputEvent_Thunk(); 306 return ::ppapi::thunk::GetPPB_MouseInputEvent_Thunk();
307 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) 307 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0)
308 return PPB_Proxy_Impl::GetInterface(); 308 return PPB_Proxy_Impl::GetInterface();
309 if (strcmp(name, PPB_QUERY_POLICY_DEV_INTERFACE_0_1) == 0) 309 if (strcmp(name, PPB_QUERY_POLICY_DEV_INTERFACE_0_1) == 0)
310 return ::ppapi::thunk::GetPPB_QueryPolicy_Thunk(); 310 return ::ppapi::thunk::GetPPB_QueryPolicy_Thunk();
311 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_5) == 0)
312 return ::ppapi::thunk::GetPPB_Scrollbar_Thunk();
311 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_4) == 0) 313 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_4) == 0)
312 return ::ppapi::thunk::GetPPB_Scrollbar_Thunk(); 314 return PPB_Scrollbar_Impl::Get0_4Interface();
313 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_3) == 0) 315 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_3) == 0)
314 return PPB_Scrollbar_Impl::Get0_3Interface(); 316 return PPB_Scrollbar_Impl::Get0_3Interface();
315 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) 317 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0)
316 return PPB_UMA_Private_Impl::GetInterface(); 318 return PPB_UMA_Private_Impl::GetInterface();
317 if (strcmp(name, PPB_URLLOADER_INTERFACE_1_0) == 0) 319 if (strcmp(name, PPB_URLLOADER_INTERFACE_1_0) == 0)
318 return ::ppapi::thunk::GetPPB_URLLoader_Thunk(); 320 return ::ppapi::thunk::GetPPB_URLLoader_Thunk();
319 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0) 321 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0)
320 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_Thunk(); 322 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_Thunk();
321 if (strcmp(name, PPB_URLREQUESTINFO_INTERFACE_1_0) == 0) 323 if (strcmp(name, PPB_URLREQUESTINFO_INTERFACE_1_0) == 0)
322 return ::ppapi::thunk::GetPPB_URLRequestInfo_Thunk(); 324 return ::ppapi::thunk::GetPPB_URLRequestInfo_Thunk();
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 596 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
595 if (retval != 0) { 597 if (retval != 0) {
596 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 598 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
597 return false; 599 return false;
598 } 600 }
599 return true; 601 return true;
600 } 602 }
601 603
602 } // namespace ppapi 604 } // namespace ppapi
603 } // namespace webkit 605 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698