17399216411ce15f5f64a5b7cca23d0ec6dd90b9
[platform/framework/web/chromium-efl.git] / wrt / src / browser / wrt_input_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_INPUT_PICKER_H_
6 #define BROWSER_WRT_INPUT_PICKER_H_
7
8 #if defined(WRT_JS_BRINGUP)
9 #include "ui/base/ime/text_input_type.h"
10 typedef struct _Eo_Opaque Evas_Object;
11 namespace content {
12 class WebContents;
13 class DateTimeChooserEfl;
14 }
15 namespace wrt {
16 class WRTInputPicker {
17  public:
18   explicit WRTInputPicker(
19       content::WebContents* web_contents,
20       Evas_Object* evas_object,
21       content::DateTimeChooserEfl* date_time_chooser = nullptr) {}
22   void ShowColorPicker(int r, int g, int b, int a) {}
23   void ShowDatePicker(ui::TextInputType dialog_type, double dialog_value) {}
24 };
25 }  // namespace wrt
26 #else
27 #include "tizen_src/chromium_impl/content/browser/input_picker/input_picker_base.h"
28
29 namespace wrt {
30
31 class WRTInputPicker : public content::InputPickerBase {
32  public:
33   explicit WRTInputPicker(
34       content::WebContents* web_contents,
35       Evas_Object* evas_object,
36       content::DateTimeChooserEfl* date_time_chooser = nullptr);
37   virtual ~WRTInputPicker() = default;
38
39  private:
40   // content::InputPickerBase
41   void ExecuteEditCommand(const char*, const char*) override;
42   Evas_Object* GetElmWindow() override;
43   Evas_Object* GetWebView() override;
44
45   content::WebContents* web_contents_;
46 };
47
48 }  // namespace wrt
49 #endif
50
51 #endif  // BROWSER_WRT_INPUT_PICKER_H_