33// Use of this source code is governed by a BSD-style license that can be
44// found in the LICENSE file.
55
6- #ifndef EMBEDDER_TIZEN_BASE_HANDLE_H_
7- #define EMBEDDER_TIZEN_BASE_HANDLE_H_
6+ #ifndef EMBEDDER_TIZEN_VIEW_BASE_H_
7+ #define EMBEDDER_TIZEN_VIEW_BASE_H_
88
99#include < cstdint>
1010#include < string>
@@ -22,17 +22,16 @@ class TizenViewBase {
2222 int32_t left = 0 , top = 0 , width = 0 , height = 0 ;
2323 };
2424
25- TizenViewBase (){};
26-
25+ TizenViewBase () = default ;
2726 virtual ~TizenViewBase () = default ;
2827
2928 // Returns a valid pointer the platform object that rendering can be bound to
3029 // by rendering backend.
31- virtual void * GetRenderTarget ();
30+ virtual void * GetRenderTarget () = 0 ;
3231
33- virtual void * GetRenderTargetDisplay ();
32+ virtual void * GetRenderTargetDisplay () = 0 ;
3433
35- virtual uintptr_t GetWindowId ();
34+ virtual uintptr_t GetWindowId () = 0 ;
3635
3736 // Returns the geometry of the current render target.
3837 virtual Geometry GetRenderTargetGeometry () = 0;
@@ -61,14 +60,19 @@ class TizenViewBase {
6160
6261 virtual void Show () = 0;
6362
64- virtual TizenInputMethodContext* input_method_context () = 0;
65-
6663 virtual std::string GetType () = 0;
6764
65+ TizenInputMethodContext* input_method_context () {
66+ return input_method_context_.get ();
67+ }
68+
6869 protected:
6970 FlutterTizenView* view_ = nullptr ;
71+
72+ // The Tizen input method context. nullptr if not set.
73+ std::unique_ptr<TizenInputMethodContext> input_method_context_;
7074};
7175
7276} // namespace flutter
7377
74- #endif // EMBEDDER_TIZEN_BASE_HANDLE_H_
78+ #endif // EMBEDDER_TIZEN_VIEW_BASE_H_
0 commit comments