osx: add chat support

This commit adds a collapsible right panel for incall chatting

Refs #74037

Change-Id: I82c53174c1dbdeb1cfdb4ab8a773256aa182b70c
diff --git a/src/views/CallView.h b/src/views/CallView.h
index 06b4590..b15d525 100644
--- a/src/views/CallView.h
+++ b/src/views/CallView.h
@@ -29,6 +29,15 @@
  */
 #import <Cocoa/Cocoa.h>
 
+@protocol FullScreenDelegate;
+@protocol FullScreenDelegate
+
+@optional
+
+-(void) callShouldToggleFullScreen;
+
+@end
+
 @interface CallView : NSView <NSDraggingDestination, NSOpenSavePanelDelegate>
 {
     //highlight the drop zone
@@ -42,4 +51,9 @@
  */
 @property BOOL shouldAcceptInteractions;
 
+/**
+ *  Delegate to inform about desire to move
+ */
+@property (nonatomic) id <FullScreenDelegate> fullScreenDelegate;
+
 @end
diff --git a/src/views/CallView.mm b/src/views/CallView.mm
index 8831db2..43a5d80 100644
--- a/src/views/CallView.mm
+++ b/src/views/CallView.mm
@@ -186,15 +186,8 @@
     else if([theEvent clickCount] == 2)
     {
         [NSObject cancelPreviousPerformRequestsWithTarget:self]; // cancel showContextualMenu
-        if(self.isInFullScreenMode)
-            [self exitFullScreenModeWithOptions:nil];
-        else {
-             NSApplicationPresentationOptions options = NSApplicationPresentationDefault + NSApplicationPresentationAutoHideDock +
-                                                        NSApplicationPresentationAutoHideMenuBar + NSApplicationPresentationAutoHideToolbar;
-            NSDictionary *opts = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithUnsignedInt:options], NSFullScreenModeApplicationPresentationOptions, nil];
-
-            [self enterFullScreenMode:[NSScreen mainScreen]  withOptions:opts];
-        }
+        if(self.fullScreenDelegate)
+            [self.fullScreenDelegate callShouldToggleFullScreen];
     }
 }