Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add REOPEN event

This event is dispatched on OSX for the application
delegate - (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag

The main use of this event is for customizing behavior when the "dock" is
clicked. Re-showing of the main window or creating a new docuemnt can be done.
  • Loading branch information...
commit eeda3cdc9f6fc7af2779c6def26851114db1cac7 1 parent a2261d6
Josh Roesslein authored
Showing with 3 additions and 0 deletions.
  1. +2 −0  libkroll/binding/event.cpp
  2. +1 −0  libkroll/binding/event.h
2  libkroll/binding/event.cpp
@@ -16,6 +16,7 @@ namespace kroll
std::string Event::CLOSED = "closed";
std::string Event::HIDDEN = "hidden";
std::string Event::SHOWN = "shown";
+ std::string Event::REOPEN = "reopen";
std::string Event::FULLSCREENED = "fullscreened";
std::string Event::UNFULLSCREENED = "unfullscreened";
std::string Event::MAXIMIZED = "maximized";
@@ -117,6 +118,7 @@ namespace kroll
target->Set("CLOSED", Value::NewString(Event::CLOSED));
target->Set("HIDDEN", Value::NewString(Event::HIDDEN));
target->Set("SHOWN", Value::NewString(Event::SHOWN));
+ target->Set("REOPEN", Value::NewString(Event::REOPEN));
target->Set("FULLSCREENED", Value::NewString(Event::FULLSCREENED));
target->Set("UNFULLSCREENED", Value::NewString(Event::UNFULLSCREENED));
target->Set("MAXIMIZED", Value::NewString(Event::MAXIMIZED));
1  libkroll/binding/event.h
@@ -34,6 +34,7 @@ namespace kroll
static std::string CLOSED;
static std::string HIDDEN;
static std::string SHOWN;
+ static std::string REOPEN;
static std::string FULLSCREENED;
static std::string UNFULLSCREENED;
static std::string MAXIMIZED;
Please sign in to comment.
Something went wrong with that request. Please try again.