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

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: Get rid of ScrollbarGroup's methods and the ResizeClient interface 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 instance->SetScrollbarGroup(this);
25 }
26
27 PPB_ScrollbarGroup_Impl::~PPB_ScrollbarGroup_Impl() {
28 instance()->SetScrollbarGroup(this);
29 }
30
31 PPB_ScrollbarGroup_API* PPB_ScrollbarGroup_Impl::AsPPB_ScrollbarGroup_API() {
32 return this;
33 }
34
35 void PPB_ScrollbarGroup_Impl::MouseEnteredContentArea() {
36 scrollbar_group_->mouseEnteredContentArea();
37 }
38
39 void PPB_ScrollbarGroup_Impl::MouseMovedInContentArea() {
40 scrollbar_group_->mouseMovedInContentArea();
41 }
42
43 void PPB_ScrollbarGroup_Impl::MouseExitedContentArea() {
44 scrollbar_group_->mouseExitedContentArea();
45 }
46
47 void PPB_ScrollbarGroup_Impl::WillStartLiveResize() {
48 scrollbar_group_->willStartLiveResize();
49 }
50
51 void PPB_ScrollbarGroup_Impl::ContentResized() {
52 scrollbar_group_->contentResized();
53 }
54
55 void PPB_ScrollbarGroup_Impl::WillEndLiveResize() {
56 scrollbar_group_->willEndLiveResize();
57 }
58
59 WebKit::WebScrollbarGroup* PPB_ScrollbarGroup_Impl::GetWebScrollbarGroup() {
60 return scrollbar_group_.get();
61 }
62
63 } // namespace ppapi
64 } // namespace webkit
65
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698