~3v1n0/unity/gnome-keys-timestamp-api

« back to all changes in this revision

Viewing changes to panel/PanelMenuView.h

  • Committer: CI Train Bot
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2015-02-19 19:33:36 UTC
  • mfrom: (3899.2.85 lim-everywhere)
  • Revision ID: ci-train-bot@canonical.com-20150219193336-1ax9aswzdijrfq0f
Decorations, Panel: add menus for unfocused windows as well

Now the indicator-appmenu exports the menus for all the windows,
then it's up to us to filter them based on their parent window and
show on relevant place.
Also, set LIM as default now. Fixes: #1309778
Approved by: Andrea Azzarone, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
  PanelMenuView(menu::Manager::Ptr const&);
45
45
  ~PanelMenuView();
46
46
 
 
47
  nux::Property<Window> active_window;
 
48
  nux::Property<Window> maximized_window;
 
49
  nux::Property<bool> focused;
 
50
 
47
51
  void SetMousePosition(int x, int y);
48
52
  void SetMonitor(int monitor) override;
49
53
 
50
54
  Window GetTopWindow() const;
51
 
  Window GetMaximizedWindow() const;
52
55
  bool GetControlsActive() const;
53
56
  bool HasMenus() const;
 
57
  bool HasKeyActivableMenus() const;
54
58
 
55
59
  void NotifyAllMenusClosed();
56
60
 
120
124
  bool Refresh(bool force = false);
121
125
 
122
126
  void UpdateTitleTexture(nux::Geometry const&, std::string const& label);
123
 
 
124
127
  void UpdateLastGeometry(nux::Geometry const& geo);
125
128
  void UpdateTitleGradientTexture();
 
129
  void UpdateMaximizedWindow();
126
130
 
127
131
  void OnPanelViewMouseEnter(int x, int y, unsigned long mouse_button_state, unsigned long special_keys_state);
128
132
  void OnPanelViewMouseLeave(int x, int y, unsigned long mouse_button_state, unsigned long special_keys_state);
134
138
  void OnLauncherKeyNavEnded(GVariant* data);
135
139
  void OnLauncherSelectionChanged(GVariant* data);
136
140
 
 
141
  void UpdateTargetWindowItems();
137
142
  void UpdateShowNow(bool ignore);
138
143
  bool CheckMouseInside();
139
144
 
158
163
 
159
164
  void ActivateIntegratedMenus(nux::Point const&);
160
165
 
161
 
  menu::Manager::Ptr const& menu_manager_;
 
166
  menu::Manager::Ptr menu_manager_;
162
167
  glib::Object<BamfMatcher> matcher_;
163
168
 
164
169
  nux::TextureLayer* title_layer_;
190
195
  bool integrated_menus_;
191
196
  bool always_show_menus_;
192
197
 
193
 
  Window active_xid_;
194
198
  nux::Geometry monitor_geo_;
195
199
  const std::string desktop_name_;
196
200