~ci-train-bot/unity/unity-ubuntu-yakkety-landing-089

« back to all changes in this revision

Viewing changes to lockscreen/LockScreenShield.h

MenuManager: add support for mouse trackers with triangle algorithm support

It allows to register pointer trackers with menu entries selection by using the triangle
technique which prevents menus items from being opened on quick menu scrubbing

Then use use menu::Manager pointer tracker for entries activation in PanelView, LockScreenPanel and DecorationsMenuLayout (LP: #1618405)

Approved by: Andrea Azzarone

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef UNITY_LOCKSCREEN_SHIELD_H
21
21
#define UNITY_LOCKSCREEN_SHIELD_H
22
22
 
23
 
#include <UnityCore/ConnectionManager.h>
24
23
#include "LockScreenBaseShield.h"
 
24
#include "unity-shared/MenuManager.h"
 
25
 
25
26
 
26
27
namespace unity
27
28
{
35
36
{
36
37
public:
37
38
  Shield(session::Manager::Ptr const&,
38
 
         indicator::Indicators::Ptr const&,
 
39
         menu::Manager::Ptr const&,
39
40
         Accelerators::Ptr const&,
40
41
         nux::ObjectPtr<AbstractUserPromptView> const&,
41
42
         int monitor, bool is_primary);
50
51
  void ShowPrimaryView() override;
51
52
  Panel* CreatePanel();
52
53
 
53
 
  connection::Wrapper panel_active_conn_;
 
54
  menu::Manager::Ptr menu_manager_;
54
55
  Panel* panel_view_;
55
56
};
56
57