xref: /haiku/src/servers/input/InputServerFilter.cpp (revision abc3b04ccfecd8f95faae1e1606968e6ae6b2729)
17c8b733dSMichael Phipps /*****************************************************************************/
200740cc5SJérôme Duval // Haiku InputServer
37c8b733dSMichael Phipps //
400740cc5SJérôme Duval // This is the InputServerFilter implementation
57c8b733dSMichael Phipps //
67c8b733dSMichael Phipps //
77c8b733dSMichael Phipps // This application and all source files used in its construction, except
87c8b733dSMichael Phipps // where noted, are licensed under the MIT License, and have been written
97c8b733dSMichael Phipps // and are:
107c8b733dSMichael Phipps //
1100740cc5SJérôme Duval // Copyright (c) 2002-2004 Haiku Project
127c8b733dSMichael Phipps //
137c8b733dSMichael Phipps // Permission is hereby granted, free of charge, to any person obtaining a
147c8b733dSMichael Phipps // copy of this software and associated documentation files (the "Software"),
157c8b733dSMichael Phipps // to deal in the Software without restriction, including without limitation
167c8b733dSMichael Phipps // the rights to use, copy, modify, merge, publish, distribute, sublicense,
177c8b733dSMichael Phipps // and/or sell copies of the Software, and to permit persons to whom the
187c8b733dSMichael Phipps // Software is furnished to do so, subject to the following conditions:
197c8b733dSMichael Phipps //
207c8b733dSMichael Phipps // The above copyright notice and this permission notice shall be included
217c8b733dSMichael Phipps // in all copies or substantial portions of the Software.
227c8b733dSMichael Phipps //
237c8b733dSMichael Phipps // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
247c8b733dSMichael Phipps // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
257c8b733dSMichael Phipps // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
267c8b733dSMichael Phipps // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
277c8b733dSMichael Phipps // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
287c8b733dSMichael Phipps // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
297c8b733dSMichael Phipps // DEALINGS IN THE SOFTWARE.
307c8b733dSMichael Phipps /*****************************************************************************/
317c8b733dSMichael Phipps 
327c8b733dSMichael Phipps 
33*abc3b04cSJérôme Duval #include <Region.h>
34e6c0b53dSJérôme Duval #include <InputServerFilter.h>
35e6c0b53dSJérôme Duval #include "InputServer.h"
3652a38012Sejakowatz 
377c8b733dSMichael Phipps /**
3852a38012Sejakowatz  *  Method: BInputServerFilter::BInputServerFilter()
3952a38012Sejakowatz  *   Descr:
4052a38012Sejakowatz  */
BInputServerFilter()4152a38012Sejakowatz BInputServerFilter::BInputServerFilter()
4252a38012Sejakowatz {
43e6c0b53dSJérôme Duval 	CALLED();
4452a38012Sejakowatz }
4552a38012Sejakowatz 
4652a38012Sejakowatz 
477c8b733dSMichael Phipps /**
4852a38012Sejakowatz  *  Method: BInputServerFilter::~BInputServerFilter()
4952a38012Sejakowatz  *   Descr:
5052a38012Sejakowatz  */
~BInputServerFilter()5152a38012Sejakowatz BInputServerFilter::~BInputServerFilter()
5252a38012Sejakowatz {
53e6c0b53dSJérôme Duval 	CALLED();
5452a38012Sejakowatz }
5552a38012Sejakowatz 
5652a38012Sejakowatz 
577c8b733dSMichael Phipps /**
5852a38012Sejakowatz  *  Method: BInputServerFilter::InitCheck()
5952a38012Sejakowatz  *   Descr:
6052a38012Sejakowatz  */
6152a38012Sejakowatz status_t
InitCheck()6252a38012Sejakowatz BInputServerFilter::InitCheck()
6352a38012Sejakowatz {
64e6c0b53dSJérôme Duval 	CALLED();
65ce9ad52dSJérôme Duval 	return B_OK;
6652a38012Sejakowatz }
6752a38012Sejakowatz 
6852a38012Sejakowatz 
697c8b733dSMichael Phipps /**
7052a38012Sejakowatz  *  Method: BInputServerFilter::Filter()
7152a38012Sejakowatz  *   Descr:
7252a38012Sejakowatz  */
7352a38012Sejakowatz filter_result
Filter(BMessage * message,BList * outList)7452a38012Sejakowatz BInputServerFilter::Filter(BMessage *message,
7552a38012Sejakowatz                            BList *outList)
7652a38012Sejakowatz {
77e6c0b53dSJérôme Duval 	CALLED();
78ce9ad52dSJérôme Duval 	return B_DISPATCH_MESSAGE;
7952a38012Sejakowatz }
8052a38012Sejakowatz 
8152a38012Sejakowatz 
827c8b733dSMichael Phipps /**
8352a38012Sejakowatz  *  Method: BInputServerFilter::GetScreenRegion()
8452a38012Sejakowatz  *   Descr:
8552a38012Sejakowatz  */
8652a38012Sejakowatz status_t
GetScreenRegion(BRegion * region) const8752a38012Sejakowatz BInputServerFilter::GetScreenRegion(BRegion *region) const
8852a38012Sejakowatz {
89*abc3b04cSJérôme Duval 	if (!region)
90*abc3b04cSJérôme Duval 		return B_BAD_VALUE;
9152a38012Sejakowatz 
92*abc3b04cSJérôme Duval 	*region = BRegion(((InputServer*)be_app)->ScreenFrame());
93*abc3b04cSJérôme Duval 	return B_OK;
9452a38012Sejakowatz }
9552a38012Sejakowatz 
9652a38012Sejakowatz 
977c8b733dSMichael Phipps /**
9852a38012Sejakowatz  *  Method: BInputServerFilter::_ReservedInputServerFilter1()
9952a38012Sejakowatz  *   Descr:
10052a38012Sejakowatz  */
10152a38012Sejakowatz void
_ReservedInputServerFilter1()10252a38012Sejakowatz BInputServerFilter::_ReservedInputServerFilter1()
10352a38012Sejakowatz {
10452a38012Sejakowatz }
10552a38012Sejakowatz 
10652a38012Sejakowatz 
1077c8b733dSMichael Phipps /**
10852a38012Sejakowatz  *  Method: BInputServerFilter::_ReservedInputServerFilter2()
10952a38012Sejakowatz  *   Descr:
11052a38012Sejakowatz  */
11152a38012Sejakowatz void
_ReservedInputServerFilter2()11252a38012Sejakowatz BInputServerFilter::_ReservedInputServerFilter2()
11352a38012Sejakowatz {
11452a38012Sejakowatz }
11552a38012Sejakowatz 
11652a38012Sejakowatz 
1177c8b733dSMichael Phipps /**
11852a38012Sejakowatz  *  Method: BInputServerFilter::_ReservedInputServerFilter3()
11952a38012Sejakowatz  *   Descr:
12052a38012Sejakowatz  */
12152a38012Sejakowatz void
_ReservedInputServerFilter3()12252a38012Sejakowatz BInputServerFilter::_ReservedInputServerFilter3()
12352a38012Sejakowatz {
12452a38012Sejakowatz }
12552a38012Sejakowatz 
12652a38012Sejakowatz 
1277c8b733dSMichael Phipps /**
12852a38012Sejakowatz  *  Method: BInputServerFilter::_ReservedInputServerFilter4()
12952a38012Sejakowatz  *   Descr:
13052a38012Sejakowatz  */
13152a38012Sejakowatz void
_ReservedInputServerFilter4()13252a38012Sejakowatz BInputServerFilter::_ReservedInputServerFilter4()
13352a38012Sejakowatz {
13452a38012Sejakowatz }
13552a38012Sejakowatz 
13652a38012Sejakowatz 
137