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

Side by Side Diff: webkit/plugins/ppapi/ppb_scrollbar_group_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: Keep the logic to call WebScrollbarGroupImpl's methods in WebKit entirely 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "webkit/plugins/ppapi/ppb_scrollbar_group_impl.h"
6
7 #include "base/logging.h"
8 #include "ppapi/c/dev/ppb_scrollbar_group_dev.h"
9 #include "ppapi/thunk/thunk.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScrollbarGroup.h"
11 #include "webkit/plugins/ppapi/common.h"
12 #include "webkit/plugins/ppapi/plugin_module.h"
13 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
14
15 using ppapi::thunk::PPB_ScrollbarGroup_API;
16 using WebKit::WebScrollbarGroup;
17
18 namespace webkit {
19 namespace ppapi {
20
21 PPB_ScrollbarGroup_Impl::PPB_ScrollbarGroup_Impl(PluginInstance* instance)
22 : Resource(instance) {
23 scrollbar_group_.reset(WebScrollbarGroup::create(instance->container()));
24 }
25
26 PPB_ScrollbarGroup_Impl::~PPB_ScrollbarGroup_Impl() {
27 }
28
29 PPB_ScrollbarGroup_API* PPB_ScrollbarGroup_Impl::AsPPB_ScrollbarGroup_API() {
30 return this;
31 }
32
33 WebKit::WebScrollbarGroup* PPB_ScrollbarGroup_Impl::GetWebScrollbarGroup() {
34 return scrollbar_group_.get();
35 }
36
37 } // namespace ppapi
38 } // namespace webkit
39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698