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

Commit

Permalink
Make IsMinimized as read only.
Browse files Browse the repository at this point in the history
  • Loading branch information
kalyankondapally committed Sep 6, 2014
1 parent 9d58a63 commit d301e5c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion wayland/shell/shell_surface.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WaylandShellSurface {
virtual void Maximize() = 0;
virtual void Minimize() = 0;
virtual void Unminimize() = 0;
virtual bool IsMinimized() = 0;
virtual bool IsMinimized() const = 0;

// static functions.
static void PopupDone();
Expand Down
2 changes: 1 addition & 1 deletion wayland/shell/wl_shell_surface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void WLShellSurface::Minimize() {
void WLShellSurface::Unminimize() {
}

bool WLShellSurface::IsMinimized() {
bool WLShellSurface::IsMinimized() const {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion wayland/shell/wl_shell_surface.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class WLShellSurface : public WaylandShellSurface {
virtual void Maximize() OVERRIDE;
virtual void Minimize() OVERRIDE;
virtual void Unminimize() OVERRIDE;
virtual bool IsMinimized() OVERRIDE;
virtual bool IsMinimized() const OVERRIDE;

static void HandleConfigure(void* data,
struct wl_shell_surface* shell_surface,
Expand Down
4 changes: 4 additions & 0 deletions wayland/shell/xdg_shell_surface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ void XDGShellSurface::Unminimize() {
minimized_ = false;
}

bool XDGShellSurface::IsMinimized() const {
return minimized_;
}

void XDGShellSurface::HandleConfigure(void* data,
struct xdg_surface* xdg_surface,
int32_t width,
Expand Down
2 changes: 1 addition & 1 deletion wayland/shell/xdg_shell_surface.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class XDGShellSurface : public WaylandShellSurface {
virtual void Maximize() OVERRIDE;
virtual void Minimize() OVERRIDE;
virtual void Unminimize() OVERRIDE;
virtual bool IsMinimized() OVERRIDE {return minimized_;};
virtual bool IsMinimized() const OVERRIDE;

static void HandleConfigure(void* data,
struct xdg_surface* xdg_surface,
Expand Down

0 comments on commit d301e5c

Please sign in to comment.