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

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: Redo by adding ScrollbarGroup to pepper and WebKit 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());
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 void PPB_ScrollbarGroup_Impl::MouseEnteredContentArea() {
34 scrollbar_group_->mouseEnteredContentArea();
35 }
36
37 void PPB_ScrollbarGroup_Impl::MouseMovedInContentArea() {
38 scrollbar_group_->mouseMovedInContentArea();
39 }
40
41 void PPB_ScrollbarGroup_Impl::MouseExitedContentArea() {
42 scrollbar_group_->mouseExitedContentArea();
43 }
44
45 void PPB_ScrollbarGroup_Impl::WillStartLiveResize() {
46 scrollbar_group_->willStartLiveResize();
47 }
48
49 void PPB_ScrollbarGroup_Impl::ContentResized() {
50 scrollbar_group_->contentResized();
51 }
52
53 void PPB_ScrollbarGroup_Impl::WillEndLiveResize() {
54 scrollbar_group_->willEndLiveResize();
55 }
56
57 WebKit::WebScrollbarGroup* PPB_ScrollbarGroup_Impl::GetWebScrollbarGroup() {
58 return scrollbar_group_.get();
59 }
60
61 } // namespace ppapi
62 } // namespace webkit
63
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698