Back to index

unity  6.0.0
Public Types | Public Member Functions
MockUnityShowdesktopHandlerWindow Class Reference
Inheritance diagram for MockUnityShowdesktopHandlerWindow:
Inheritance graph
[legend]
Collaboration diagram for MockUnityShowdesktopHandlerWindow:
Collaboration graph
[legend]

List of all members.

Public Types

enum  PostPaintAction { Wait = 0, Damage = 1, Remove = 2 }

Public Member Functions

 MockUnityShowdesktopHandlerWindow ()
 MOCK_METHOD0 (DoEnableFocus, void())
 MOCK_METHOD0 (DoDisableFocus, void())
 MOCK_METHOD0 (IsOverrideRedirect, bool())
 MOCK_METHOD0 (IsManaged, bool())
 MOCK_METHOD0 (IsGrabbed, bool())
 MOCK_METHOD0 (IsDesktopOrDock, bool())
 MOCK_METHOD0 (IsSkipTaskbarOrPager, bool())
 MOCK_METHOD0 (IsHidden, bool())
 MOCK_METHOD0 (IsInShowdesktopMode, bool())
 MOCK_METHOD0 (IsShaded, bool())
 MOCK_METHOD0 (IsMinimized, bool())
 MOCK_METHOD1 (DoOverrideFrameRegion, void(CompRegion &))
 MOCK_METHOD0 (DoHide, void())
 MOCK_METHOD0 (DoNotifyHidden, void())
 MOCK_METHOD0 (DoShow, void())
 MOCK_METHOD0 (DoNotifyShown, void())
 MOCK_METHOD0 (DoMoveFocusAway, void())
 MOCK_METHOD1 (DoHandleAnimations, ShowdesktopHandlerWindowInterface::PostPaintAction(unsigned int))
 MOCK_METHOD0 (DoAddDamage, void())
 MOCK_METHOD0 (GetNoCoreInstanceMask, unsigned int())
 MOCK_METHOD0 (GetInputRemover, compiz::WindowInputRemoverLock::Ptr())
 MOCK_METHOD0 (DoDeleteHandler, void())
void EnableFocus ()
void DisableFocus ()
bool OverrideRedirect ()
bool Managed ()
bool Grabbed ()
bool DesktopOrDock ()
bool SkipTaskbarOrPager ()
bool Hidden ()
bool Shaded ()
bool Minimized ()
bool ShowDesktopMode ()
void OverrideFrameRegion (CompRegion &r)
void Hide ()
void NotifyHidden ()
void Show ()
void NotifyShown ()
void MoveFocusAway ()
PostPaintAction HandleAnimations (unsigned int ms)
void AddDamage ()
void DeleteHandler ()
unsigned int NoCoreInstanceMask ()
WindowInputRemoverLock::Ptr InputRemover ()

Detailed Description

Definition at line 52 of file test_showdesktop_handler.cpp.


Member Enumeration Documentation

Enumerator:
Wait 
Damage 
Remove 

Definition at line 39 of file UnityShowdesktopHandler.h.

                               {
      Wait = 0,
      Damage = 1,
      Remove = 2
    };

Constructor & Destructor Documentation

Definition at line 58 of file test_showdesktop_handler.cpp.

    {
      ON_CALL (*this, IsOverrideRedirect ()).WillByDefault (Return (false));
      ON_CALL (*this, IsManaged ()).WillByDefault (Return (true));
      ON_CALL (*this, IsGrabbed ()).WillByDefault (Return (false));
      ON_CALL (*this, IsDesktopOrDock ()).WillByDefault (Return (false));
      ON_CALL (*this, IsSkipTaskbarOrPager ()).WillByDefault (Return (false));
      ON_CALL (*this, IsHidden ()).WillByDefault (Return (false));
      ON_CALL (*this, IsInShowdesktopMode ()).WillByDefault (Return (false));
      ON_CALL (*this, IsShaded ()).WillByDefault (Return (false));
      ON_CALL (*this, IsMinimized ()).WillByDefault (Return (false));

      ON_CALL (*this, DoHandleAnimations (_)).WillByDefault (Return (ShowdesktopHandlerWindowInterface::PostPaintAction::Damage));
      ON_CALL (*this, GetNoCoreInstanceMask ()).WillByDefault (Return (1));
      ON_CALL (*this, GetInputRemover ()).WillByDefault (Invoke (UnityShowdesktopHandlerTest::getLock <MockWindowInputRemover>));
    }

Member Function Documentation

Definition at line 68 of file UnityShowdesktopHandler.h.

{ DoAddDamage (); }

Here is the call graph for this function:

Definition at line 70 of file UnityShowdesktopHandler.h.

Here is the call graph for this function:

Definition at line 53 of file UnityShowdesktopHandler.h.

{ return IsDesktopOrDock (); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 48 of file UnityShowdesktopHandler.h.

Here is the call graph for this function:

Definition at line 47 of file UnityShowdesktopHandler.h.

{ DoEnableFocus (); }

Here is the call graph for this function:

Definition at line 52 of file UnityShowdesktopHandler.h.

{ return IsGrabbed (); }

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in unity::UnityWindow.

Definition at line 67 of file UnityShowdesktopHandler.h.

{ return DoHandleAnimations (ms); }

Here is the call graph for this function:

Definition at line 55 of file UnityShowdesktopHandler.h.

{ return IsHidden (); }

Here is the call graph for this function:

Here is the caller graph for this function:

void unity::ShowdesktopHandlerWindowInterface::Hide ( ) [inline, inherited]

Definition at line 61 of file UnityShowdesktopHandler.h.

{ DoHide (); }

Here is the call graph for this function:

Here is the caller graph for this function:

WindowInputRemoverLock::Ptr compiz::WindowInputRemoverLockAcquireInterface::InputRemover ( ) [inline, inherited]

Definition at line 122 of file inputremover.h.

{ return GetInputRemover (); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 51 of file UnityShowdesktopHandler.h.

{ return IsManaged (); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 57 of file UnityShowdesktopHandler.h.

{ return IsMinimized (); }

Here is the call graph for this function:

Here is the caller graph for this function:

MockUnityShowdesktopHandlerWindow::MOCK_METHOD0 ( GetInputRemover  ,
compiz::WindowInputRemoverLock::  Ptr() 
)
MockUnityShowdesktopHandlerWindow::MOCK_METHOD1 ( DoHandleAnimations  ,
ShowdesktopHandlerWindowInterface::  PostPaintActionunsigned int 
)

Definition at line 65 of file UnityShowdesktopHandler.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 72 of file UnityShowdesktopHandler.h.

{ return GetNoCoreInstanceMask (); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 62 of file UnityShowdesktopHandler.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 64 of file UnityShowdesktopHandler.h.

{ DoNotifyShown (); }

Here is the call graph for this function:

Here is the caller graph for this function:

void unity::ShowdesktopHandlerWindowInterface::OverrideFrameRegion ( CompRegion &  r) [inline, inherited]

Definition at line 59 of file UnityShowdesktopHandler.h.

{ return DoOverrideFrameRegion (r); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 50 of file UnityShowdesktopHandler.h.

{ return IsOverrideRedirect (); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 56 of file UnityShowdesktopHandler.h.

{ return IsShaded (); }

Here is the call graph for this function:

Here is the caller graph for this function:

void unity::ShowdesktopHandlerWindowInterface::Show ( ) [inline, inherited]

Definition at line 63 of file UnityShowdesktopHandler.h.

{ DoShow (); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 58 of file UnityShowdesktopHandler.h.

{ return IsInShowdesktopMode (); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 54 of file UnityShowdesktopHandler.h.

{ return IsSkipTaskbarOrPager (); }

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: