1 /* 2 * Copyright (C) 2006-2008 Marcus Overhagen <marcus@overhagen.de>. All rights reserved. 3 * Copyright (C) 2008 Maurice Kalinowski <haiku@kaldience.com>. All rights reserved. 4 * 5 * Distributed under the terms of the MIT License. 6 */ 7 #include "VideoWindow.h" 8 #include "VideoView.h" 9 10 11 VideoWindow::VideoWindow(BRect size, VideoView* view) 12 : BWindow(size, "Video Window", B_TITLED_WINDOW, 0) 13 , fVideoView(view) 14 { 15 if (fVideoView) 16 AddChild(fVideoView); 17 } 18 19 20 VideoWindow::~VideoWindow() 21 { 22 } 23 24 25 void 26 VideoWindow::MessageReceived(BMessage *msg) 27 { 28 if (msg) 29 BWindow::MessageReceived(msg); 30 } 31