[WRTjs] Refactor popup
[platform/framework/web/chromium-efl.git] / wrt / src / browser / wrt_select_picker_wearable.h
1 // Copyright 2019 Samsung Electronics. 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 #ifndef BROWSER_WRT_SELECT_PICKER_WEARBLE_H_
6 #define BROWSER_WRT_SELECT_PICKER_WEARBLE_H_
7
8 #if defined(WRT_JS_BRINGUP)
9 #include "wrt/src/browser/wrt_select_picker.h"
10 class WRTSelectPickerWearable : public SelectPickerBase {
11  public:
12   explicit WRTSelectPickerWearable(content::WebContents* web_contents,
13                                    int selected_index,
14                                    bool is_multiple_selection,
15                                    Evas_Object* view_evas) {}
16 };
17 #else
18 #include "tizen_src/chromium_impl/content/browser/select_picker/select_picker_wearable_base.h"
19
20 namespace content {
21 class WebContents;
22 }
23
24 namespace wrt {
25
26 class WRTSelectPickerWearable : public SelectPickerWearableBase {
27  public:
28   explicit WRTSelectPickerWearable(content::WebContents* web_contents,
29                                    int selected_index,
30                                    bool is_multiple_selection,
31                                    Evas_Object* view_evas);
32   virtual ~WRTSelectPickerWearable() override;
33
34  private:
35   // SelectPickerBase
36   content::WebContentsViewEfl* GetWebContentsViewEfl() const override;
37 #if defined(TIZEN_ATK_SUPPORT)
38   bool GetAtkStatus() override;
39 #endif
40
41   content::WebContents* web_contents_;
42 };
43
44 } // namespace wrt
45 #endif
46
47 #endif  // BROWSER_WRT_SELECT_PICKER_WEARBLE_H_