Add listener for the tab location.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38067 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2010-08-12 21:19:49 +00:00
parent 77fa0021d9
commit d25313d44f
3 changed files with 20 additions and 0 deletions

View File

@ -1360,6 +1360,8 @@ Desktop::SetWindowTabLocation(Window* window, float location)
if (changed)
_RebuildAndRedrawAfterWindowChange(window, dirty);
InvokeSetWindowTabLocation(window, location);
return changed;
}

View File

@ -187,6 +187,18 @@ DesktopObservable::InvokeSendWindowBehind(Window* window, Window* behindOf)
}
void
DesktopObservable::InvokeSetWindowTabLocation(Window* window, float location)
{
if (fWeAreInvoking)
return;
InvokeGuard invokeGuard(fWeAreInvoking);
FOR_ALL_DESKTOP_LISTENER
listener->SetWindowTabLocation(window, location);
}
bool
DesktopObservable::InvokeSetDecoratorSettings(Window* window,
const BMessage& settings)

View File

@ -51,6 +51,9 @@ public:
virtual void MinimizeWindow(Window* window,
bool minimize) = 0;
virtual void SetWindowTabLocation(Window* window,
float location) = 0;
virtual bool SetDecoratorSettings(Window* window,
const BMessage& settings) = 0;
virtual void GetDecoratorSettings(Window* window,
@ -94,6 +97,9 @@ public:
void InvokeHideWindow(Window* window);
void InvokeMinimizeWindow(Window* window, bool minimize);
void InvokeSetWindowTabLocation(Window* window,
float location);
bool InvokeSetDecoratorSettings(Window* window,
const BMessage& settings);
void InvokeGetDecoratorSettings(Window* window,