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

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: sync and take out WebKit changes 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
« no previous file with comments | « ppapi/thunk/thunk.h ('k') | webkit/plugins/ppapi/ppb_scrollbar_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 return PPB_Memory_Impl::GetInterface(); 296 return PPB_Memory_Impl::GetInterface();
297 if (strcmp(name, PPB_MESSAGING_INTERFACE_1_0) == 0) 297 if (strcmp(name, PPB_MESSAGING_INTERFACE_1_0) == 0)
298 return ::ppapi::thunk::GetPPB_Messaging_Thunk(); 298 return ::ppapi::thunk::GetPPB_Messaging_Thunk();
299 if (strcmp(name, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0) == 0) 299 if (strcmp(name, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0) == 0)
300 return ::ppapi::thunk::GetPPB_MouseInputEvent_Thunk(); 300 return ::ppapi::thunk::GetPPB_MouseInputEvent_Thunk();
301 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) 301 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0)
302 return PPB_Proxy_Impl::GetInterface(); 302 return PPB_Proxy_Impl::GetInterface();
303 if (strcmp(name, PPB_QUERY_POLICY_DEV_INTERFACE_0_1) == 0) 303 if (strcmp(name, PPB_QUERY_POLICY_DEV_INTERFACE_0_1) == 0)
304 return ::ppapi::thunk::GetPPB_QueryPolicy_Thunk(); 304 return ::ppapi::thunk::GetPPB_QueryPolicy_Thunk();
305 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_4) == 0) 305 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_4) == 0)
306 return ::ppapi::thunk::GetPPB_Scrollbar_Thunk(); 306 return PPB_Scrollbar_Impl::Get0_4Interface();
307 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_3) == 0) 307 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_3) == 0)
308 return PPB_Scrollbar_Impl::Get0_3Interface(); 308 return PPB_Scrollbar_Impl::Get0_3Interface();
309 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_5) == 0)
310 return ::ppapi::thunk::GetPPB_Scrollbar_Thunk();
309 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) 311 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0)
310 return PPB_UMA_Private_Impl::GetInterface(); 312 return PPB_UMA_Private_Impl::GetInterface();
311 if (strcmp(name, PPB_URLLOADER_INTERFACE_1_0) == 0) 313 if (strcmp(name, PPB_URLLOADER_INTERFACE_1_0) == 0)
312 return ::ppapi::thunk::GetPPB_URLLoader_Thunk(); 314 return ::ppapi::thunk::GetPPB_URLLoader_Thunk();
313 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0) 315 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0)
314 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_Thunk(); 316 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_Thunk();
315 if (strcmp(name, PPB_URLREQUESTINFO_INTERFACE_1_0) == 0) 317 if (strcmp(name, PPB_URLREQUESTINFO_INTERFACE_1_0) == 0)
316 return ::ppapi::thunk::GetPPB_URLRequestInfo_Thunk(); 318 return ::ppapi::thunk::GetPPB_URLRequestInfo_Thunk();
317 if (strcmp(name, PPB_URLRESPONSEINFO_INTERFACE_1_0) == 0) 319 if (strcmp(name, PPB_URLRESPONSEINFO_INTERFACE_1_0) == 0)
318 return ::ppapi::thunk::GetPPB_URLResponseInfo_Thunk(); 320 return ::ppapi::thunk::GetPPB_URLResponseInfo_Thunk();
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 592 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
591 if (retval != 0) { 593 if (retval != 0) {
592 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 594 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
593 return false; 595 return false;
594 } 596 }
595 return true; 597 return true;
596 } 598 }
597 599
598 } // namespace ppapi 600 } // namespace ppapi
599 } // namespace webkit 601 } // namespace webkit
OLDNEW
« no previous file with comments | « ppapi/thunk/thunk.h ('k') | webkit/plugins/ppapi/ppb_scrollbar_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698