Using UrlHistoryList do display history list (on urientry edition).
[profile/tv/apps/web/browser.git] / services / QuickAccess / UrlHistoryList / GenlistManagerCallbacks.h
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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 #ifndef GENLISTMANAGERCALLBACKS_H_
18 #define GENLISTMANAGERCALLBACKS_H_
19
20 #include <services/QuickAccess/UrlHistoryList/GenlistManager.h>
21 #include <Elementary.h>
22 #include <Evas.h>
23
24 namespace tizen_browser {
25 namespace base_ui {
26
27 class GenlistManagerCallbacks
28 {
29 public:
30     GenlistManagerCallbacks();
31     virtual ~GenlistManagerCallbacks();
32
33     static void _genlist_edge_top(void* data, Evas_Object* obj,
34             void* event_info);
35     static void _genlist_edge_bottom(void* data, Evas_Object* obj,
36             void* event_info);
37
38     static void _genlist_mouse_in(void* data, Evas* e, Evas_Object* obj,
39             void* event_info);
40     static void _genlist_mouse_out(void* data, Evas* e, Evas_Object* obj,
41             void* event_info);
42
43     static void _genlist_focused(void* data, Evas_Object* obj,
44             void* event_info);
45     static void _genlist_unfocused(void* data, Evas_Object* obj,
46             void* event_info);
47
48     static void _item_selected(void* data, Evas_Object* obj, void* event_info);
49
50     static void setGenlistManager(GenlistManager* genlistManager)
51     {
52         GenlistManagerCallbacks::genlistManager = genlistManager;
53     }
54
55 private:
56     static GenlistManager* genlistManager;
57
58 };
59
60 } /* namespace base_ui */
61 } /* namespace tizen_browser */
62
63 #endif /* GENLISTMANAGERCALLBACKS_H_ */