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

Side by Side Diff: webkit/plugins/ppapi/resource_creation_impl.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 | « webkit/plugins/ppapi/ppb_scrollbar_impl.cc ('k') | no next file » | 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/resource_creation_impl.h" 5 #include "webkit/plugins/ppapi/resource_creation_impl.h"
6 6
7 #include "ppapi/c/pp_size.h" 7 #include "ppapi/c/pp_size.h"
8 #include "ppapi/shared_impl/input_event_impl.h" 8 #include "ppapi/shared_impl/input_event_impl.h"
9 #include "ppapi/shared_impl/var.h" 9 #include "ppapi/shared_impl/var.h"
10 #include "webkit/plugins/ppapi/common.h" 10 #include "webkit/plugins/ppapi/common.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 data.event_modifiers = modifiers; 254 data.event_modifiers = modifiers;
255 data.mouse_button = mouse_button; 255 data.mouse_button = mouse_button;
256 data.mouse_position = *mouse_position; 256 data.mouse_position = *mouse_position;
257 data.mouse_click_count = click_count; 257 data.mouse_click_count = click_count;
258 258
259 return PPB_InputEvent_Impl::Create(instance_, data); 259 return PPB_InputEvent_Impl::Create(instance_, data);
260 } 260 }
261 261
262 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, 262 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance,
263 PP_Bool vertical) { 263 PP_Bool vertical) {
264 return ReturnResource(new PPB_Scrollbar_Impl(instance_, PP_ToBool(vertical))); 264 return PPB_Scrollbar_Impl::Create(instance_, PP_ToBool(vertical));
265 } 265 }
266 266
267 PP_Resource ResourceCreationImpl::CreateSurface3D( 267 PP_Resource ResourceCreationImpl::CreateSurface3D(
268 PP_Instance instance, 268 PP_Instance instance,
269 PP_Config3D_Dev config, 269 PP_Config3D_Dev config,
270 const int32_t* attrib_list) { 270 const int32_t* attrib_list) {
271 return PPB_Surface3D_Impl::Create(instance_, config, attrib_list); 271 return PPB_Surface3D_Impl::Create(instance_, config, attrib_list);
272 } 272 }
273 273
274 PP_Resource ResourceCreationImpl::CreateTransport(PP_Instance instance, 274 PP_Resource ResourceCreationImpl::CreateTransport(PP_Instance instance,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 data.event_modifiers = modifiers; 318 data.event_modifiers = modifiers;
319 data.wheel_delta = *wheel_delta; 319 data.wheel_delta = *wheel_delta;
320 data.wheel_ticks = *wheel_ticks; 320 data.wheel_ticks = *wheel_ticks;
321 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); 321 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page);
322 322
323 return PPB_InputEvent_Impl::Create(instance_, data); 323 return PPB_InputEvent_Impl::Create(instance_, data);
324 } 324 }
325 325
326 } // namespace ppapi 326 } // namespace ppapi
327 } // namespace webkit 327 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_scrollbar_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698