[WRTjs] Refactor popup
[platform/framework/web/chromium-efl.git] / wrt / src / browser / wrt_select_picker.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_H_
6 #define BROWSER_WRT_SELECT_PICKER_H_
7
8 #include "base/memory/weak_ptr.h"
9 #include "tizen_src/chromium_impl/content/browser/select_picker/select_picker_mobile_base.h"
10
11 namespace content {
12 class WebContents;
13 }
14
15 namespace wrt {
16
17 class WRTSelectPicker : public SelectPickerMobileBase {
18  public:
19   explicit WRTSelectPicker(content::WebContents* web_contents,
20                            int selected_index,
21                            bool is_multiple_selection,
22                            Evas_Object* view_evas);
23   virtual ~WRTSelectPicker() override {}
24   void ShowPickerDone();
25
26  private:
27   // FormNavigablePicker
28   void FormNavigate(bool direction) override;
29   void RequestFormNavigationInformation() override;
30   void HidePopupMenu() override;
31
32   // SelectPickerBase
33   content::WebContentsViewAura* wcva() const override;
34
35 #if defined(TIZEN_ATK_SUPPORT)
36   bool GetAtkStatus() override;
37 #endif
38
39   base::WeakPtrFactory<WRTSelectPicker> weak_factory_;
40   content::WebContents* web_contents_;
41 };
42
43 }  // namespace wrt
44
45 #endif  // BROWSER_WRT_SELECT_PICKER_H_