Skip to content
This repository was archived by the owner on Aug 20, 2020. It is now read-only.

Commit d301e5c

Browse files
Make IsMinimized as read only.
1 parent 9d58a63 commit d301e5c

5 files changed

+8
-4
lines changed

wayland/shell/shell_surface.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class WaylandShellSurface {
3232
virtual void Maximize() = 0;
3333
virtual void Minimize() = 0;
3434
virtual void Unminimize() = 0;
35-
virtual bool IsMinimized() = 0;
35+
virtual bool IsMinimized() const = 0;
3636

3737
// static functions.
3838
static void PopupDone();

wayland/shell/wl_shell_surface.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void WLShellSurface::Minimize() {
9797
void WLShellSurface::Unminimize() {
9898
}
9999

100-
bool WLShellSurface::IsMinimized() {
100+
bool WLShellSurface::IsMinimized() const {
101101
return false;
102102
}
103103

wayland/shell/wl_shell_surface.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class WLShellSurface : public WaylandShellSurface {
2626
virtual void Maximize() OVERRIDE;
2727
virtual void Minimize() OVERRIDE;
2828
virtual void Unminimize() OVERRIDE;
29-
virtual bool IsMinimized() OVERRIDE;
29+
virtual bool IsMinimized() const OVERRIDE;
3030

3131
static void HandleConfigure(void* data,
3232
struct wl_shell_surface* shell_surface,

wayland/shell/xdg_shell_surface.cc

+4
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ void XDGShellSurface::Unminimize() {
126126
minimized_ = false;
127127
}
128128

129+
bool XDGShellSurface::IsMinimized() const {
130+
return minimized_;
131+
}
132+
129133
void XDGShellSurface::HandleConfigure(void* data,
130134
struct xdg_surface* xdg_surface,
131135
int32_t width,

wayland/shell/xdg_shell_surface.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class XDGShellSurface : public WaylandShellSurface {
2929
virtual void Maximize() OVERRIDE;
3030
virtual void Minimize() OVERRIDE;
3131
virtual void Unminimize() OVERRIDE;
32-
virtual bool IsMinimized() OVERRIDE {return minimized_;};
32+
virtual bool IsMinimized() const OVERRIDE;
3333

3434
static void HandleConfigure(void* data,
3535
struct xdg_surface* xdg_surface,

0 commit comments

Comments
 (0)