180634794SMarcus Overhagen/*
272ac59d1SMaurice Kalinowski * Copyright (C) 2006-2008 Marcus Overhagen <marcus@overhagen.de>. All rights reserved.
372ac59d1SMaurice Kalinowski * Copyright (C) 2008 Maurice Kalinowski <haiku@kaldience.com>. All rights reserved.
480634794SMarcus Overhagen *
518c2aaaeSMarcus Overhagen * Distributed under the terms of the MIT License.
680634794SMarcus Overhagen */
780634794SMarcus Overhagen#include "VideoWindow.h"
872ac59d1SMaurice Kalinowski#include "VideoView.h"
972ac59d1SMaurice Kalinowski
1072ac59d1SMaurice Kalinowski
1172ac59d1SMaurice KalinowskiVideoWindow::VideoWindow(BRect size, VideoView* view)
1272ac59d1SMaurice Kalinowski		: BWindow(size, "Video Window", B_TITLED_WINDOW, 0)
1372ac59d1SMaurice Kalinowski		, fVideoView(view)
1472ac59d1SMaurice Kalinowski{
1572ac59d1SMaurice Kalinowski	if (fVideoView)
1672ac59d1SMaurice Kalinowski		AddChild(fVideoView);
1772ac59d1SMaurice Kalinowski}
1872ac59d1SMaurice Kalinowski
1972ac59d1SMaurice Kalinowski
2072ac59d1SMaurice KalinowskiVideoWindow::~VideoWindow()
2172ac59d1SMaurice Kalinowski{
2272ac59d1SMaurice Kalinowski}
2372ac59d1SMaurice Kalinowski
2480634794SMarcus Overhagen
2572ac59d1SMaurice Kalinowskivoid
2672ac59d1SMaurice KalinowskiVideoWindow::MessageReceived(BMessage *msg)
2772ac59d1SMaurice Kalinowski{
2872ac59d1SMaurice Kalinowski	if (msg)
2972ac59d1SMaurice Kalinowski		BWindow::MessageReceived(msg);
3072ac59d1SMaurice Kalinowski}
31