~brandontschaefer/unity/update-unity-to-nux-4.0

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/unityshell.h

  • Committer: Brandon Schaefer
  • Date: 2012-11-21 00:54:35 UTC
  • mfrom: (2892.1.24 trunk)
  • Revision ID: brandon.schaefer@canonical.com-20121121005435-ifuaps2sc6f0z5h1
* Automatic snapshot from revision 2905 (bootstrap)
  - Hide launcher tooltip once shortcut overlay appears (LP: #1035860)
  - Update shortcut overlay design (LP: #1049601)
  - Don't cut off shadow on launcher icon drag window (LP: #765715)
  - Provide more immediate feedback when clickong on launcher (LP: #893140)
  - Decorate spread windows in switcher (LP: #838222)
  - Make sure to initialize a variable before it can be used (LP: #1073516)
  - Fix FTBFS due to BAMF API change (LP: #1077937)
  - Run gtest during build (LP: #133637)
  - Make shopping lens test more robust (LP: #1077131)
  - Fix some random autopilot test failures (LP: #1078448)
  - Fix autopilot tests for details mode (LP: #1073892)
  - Fix autopilot tests for indicator-session (LP: #1075350)
  - Fix autopilot tests for non-English locales (LP: #1075898)
  - add libunity-core -> unity-common dep (LP: #1079132)
  - do not have unity-common dep on compiz-gnome: the migration code is only
    ran if compiz-gnome is installed, but compiz-gnome is pulled by compiz
    directly. We don't care if the migration code isn't executed.
[ Ricardo Salveti de Araujo ]
* Doesn't need to depend on gcc 4.6 anymore (LP: #1044836)
* New upstream release.
  - Includes two already cherry-picked fixes in Ubuntu
  - Unregister gdbus object in the dtor (LP: #1047760)
  - Top panel "tooltip" got out of sync when navigating with the 
    keyboard (LP: #1067358)
  - Fix escaping of _panel_title (LP: #1067357)
  - Fix ALT+Tab switches to incorrect window (LP: #1071298)
  - Stop Unity UI elements from flickering in some cases (LP: #1070735)

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
namespace unity
70
70
{
 
71
class UnityWindow;
71
72
 
72
73
/* base screen class */
73
74
class UnityScreen :
233
234
  void OnSwitcherStart(GVariant* data);
234
235
  void OnSwitcherEnd(GVariant* data);
235
236
 
 
237
  void OnInitiateSpread();
 
238
  void OnTerminateSpread();
 
239
 
236
240
  void RestoreWindow(GVariant* data);
237
241
  bool SaveInputThenFocus(const guint xid);
238
242
 
328
332
  bool panel_texture_has_changed_;
329
333
  bool paint_panel_;
330
334
  nux::ObjectPtr<nux::IOpenGLBaseTexture> panel_texture_;
 
335
  std::set<UnityWindow*> fake_decorated_windows_;
331
336
 
332
337
  bool scale_just_activated_;
333
338
  WindowMinimizeSpeedController minimize_speed_controller_;
387
392
  CompPoint tryNotIntersectUI(CompPoint& pos);
388
393
  nux::Geometry GetScaledGeometry();
389
394
 
390
 
  void paintThumbnail(nux::Geometry const& bounding, float alpha);
 
395
  void paintThumbnail(nux::Geometry const& bounding, float alpha, float scale_ratio, unsigned deco_height, bool selected);
391
396
 
392
397
  void enterShowDesktop();
393
398
  void leaveShowDesktop();
449
454
  void DrawTexture(GLTexture::List const& textures, GLWindowPaintAttrib const&,
450
455
                   GLMatrix const&, unsigned mask, int x, int y, double aspect = 1.0f);
451
456
 
 
457
  void paintFakeDecoration(nux::Geometry const& geo, GLWindowPaintAttrib const& attrib, GLMatrix const& transform, unsigned int mask, bool highlighted, double scale);
 
458
  void paintInnerGlow(nux::Geometry glow_geo, GLMatrix const&, GLWindowPaintAttrib const&, unsigned mask);
452
459
  glow::Quads computeGlowQuads(nux::Geometry const& geo, GLTexture::List const& texture, int glow_size);
453
 
  void paintGlow(GLMatrix const&, GLWindowPaintAttrib const&, CompRegion const&,
454
 
                 glow::Quads const&, GLTexture::List const&, nux::Color const&, unsigned mask);
 
460
  void paintGlow(GLMatrix const&, GLWindowPaintAttrib const&, glow::Quads const&,
 
461
                 GLTexture::List const&, nux::Color const&, unsigned mask);
455
462
 
456
463
  void BuildDecorationTexture();
457
464
  void CleanupCachedTextures();