* skins2:
[vlc.git] / modules / gui / skins2 / commands / cmd_minimize.cpp
index 815e6f6..043c440 100644 (file)
@@ -5,6 +5,7 @@
  * $Id$
  *
  * Authors: Mohammed Adnène Trojette     <adn@via.ecp.fr>
+ *          Olivier Teulière <ipkiss@via.ecp.fr>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -22,6 +23,7 @@
  *****************************************************************************/
 
 #include "cmd_minimize.hpp"
+#include "../src/window_manager.hpp"
 #include "../src/os_factory.hpp"
 
 
@@ -41,6 +43,38 @@ void CmdRestore::execute()
 }
 
 
+CmdMaximize::CmdMaximize( intf_thread_t *pIntf,
+                          WindowManager &rWindowManager,
+                          TopWindow &rWindow ):
+    CmdGeneric( pIntf ), m_rWindowManager( rWindowManager ),
+    m_rWindow( rWindow )
+{
+}
+
+
+void CmdMaximize::execute()
+{
+    // Simply delegate the job to the WindowManager
+    m_rWindowManager.maximize( m_rWindow );
+}
+
+
+CmdUnmaximize::CmdUnmaximize( intf_thread_t *pIntf,
+                              WindowManager &rWindowManager,
+                              TopWindow &rWindow ):
+    CmdGeneric( pIntf ), m_rWindowManager( rWindowManager ),
+    m_rWindow( rWindow )
+{
+}
+
+
+void CmdUnmaximize::execute()
+{
+    // Simply delegate the job to the WindowManager
+    m_rWindowManager.unmaximize( m_rWindow );
+}
+
+
 void CmdAddInTray::execute()
 {
     // Get the instance of OSFactory