11c248dec04648778130f330db85c1f5aa0e9cfc
[platform/framework/web/web-provider.git] / src / Core / Service / ScrollHolder.cpp
1 /*
2  * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Flora License, Version 1.0 (the "License");
5  *    you may not use this file except in compliance with the License.
6  *    You may obtain a copy of the License at
7  *
8  *        http://floralicense.org/license/
9  *
10  *    Unless required by applicable law or agreed to in writing, software
11  *    distributed under the License is distributed on an "AS IS" BASIS,
12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *    See the License for the specific language governing permissions and
14  *    limitations under the License.
15  */
16 /**
17  * @file    ScrollHolder.cpp
18  * @author  Yunchan Cho (yunchan.cho@samsung.com)
19  */
20
21 #include <string>
22 #include <provider.h>
23 #include <Core/Util/Log.h>
24
25 namespace Service {
26 namespace ScrollHolder {
27
28 void holdHorizontalScroll(std::string& boxId, std::string& instanceId, bool start)
29 {
30     LogD("enter"); 
31
32     if (start) {
33         LogD("scroll start");
34         provider_send_hold_scroll(boxId.c_str(), instanceId.c_str(), 1);
35     } else {
36         LogD("scroll stop");
37         provider_send_hold_scroll(boxId.c_str(), instanceId.c_str(), 0);
38     }
39 }
40
41 } // AppControl
42 } // Service