Add method 'IsBound" in RemoteSurface class 55/161155/1
authorJunghoon Park <jh9216.park@samsung.com>
Wed, 22 Nov 2017 02:37:19 +0000 (11:37 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Wed, 22 Nov 2017 02:37:19 +0000 (11:37 +0900)
Change-Id: Ia31bf2502dd028755c40b0b6c5c732ed8346fed8
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
screen_connector_remote_surface/remote_surface.cc
screen_connector_remote_surface/remote_surface.h
screen_connector_remote_surface_evas/remote_surface_evas.cc
screen_connector_remote_surface_evas/remote_surface_evas.h

index f3807bf..5c4304e 100644 (file)
@@ -216,6 +216,13 @@ void RemoteSurface::Unbind() {
   impl_->bind_surface_.reset();
 }
 
+bool RemoteSurface::IsBound() const {
+  if (impl_->bind_surface_.get() != nullptr)
+    return true;
+
+  return false;
+}
+
 void RemoteSurface::Freeze(bool visible) {
   SendVisibility(visible);
   impl_->freeze_ = true;
@@ -236,7 +243,7 @@ void RemoteSurface::SetBlock(bool is_block) {
   impl_->block_ = is_block;
 }
 
-bool RemoteSurface::IsDisabledInput(InputType type) {
+bool RemoteSurface::IsDisabledInput(InputType type) const {
   return ((impl_->input_event_filter_ & type) > 0);
 }
 
index 45b86b3..bed6313 100644 (file)
@@ -81,12 +81,13 @@ class EXPORT_API RemoteSurface : public IBufferEvent {
   void Freeze(bool visible);
   void Thaw();
   virtual void SetChangedEventFilter(ChangedEventFilter filter);
-  bool IsDisabledInput(InputType type);
+  bool IsDisabledInput(InputType type) const;
   bool IsRemoteRender() const;
   void ClearRemoteRender();
   int SetRemoteRender();
   void SetBlock(bool is_block);
   virtual void Unbind();
+  bool IsBound() const;
   void OnBufferAdded(const std::string& appId,
                      const std::string& instId, int pid) override;
   void OnBufferRemoved(const std::string& appId,
index da38f88..d6ce1ff 100644 (file)
@@ -401,7 +401,7 @@ void RemoteSurfaceEvas::Impl::OnMove(const EvasObject& obj, void *eventInfo) {
   }
 }
 
-bool RemoteSurfaceEvas::IsVisibleArea() {
+bool RemoteSurfaceEvas::IsVisibleArea() const {
   int x, y, w, h;
   Ecore_Wl_Window *window = NULL;
   int window_x, window_y, window_w, window_h;
index f8ed160..3695afa 100644 (file)
@@ -45,7 +45,7 @@ class EXPORT_API RemoteSurfaceEvas : public RemoteSurface, public IEvasEvent {
   virtual ~RemoteSurfaceEvas();
 
   void Bind(const EvasObject& win);
-  bool IsVisibleArea();
+  bool IsVisibleArea() const;
   void SendMouseUp();
   Visibility GetVisibility() const;
   void NotifyWindowVisibilityEvent(int type, void* event);