~unity-team/nux/nux.armel-fixes

« back to all changes in this revision

Viewing changes to tests/gtest-nux-windowcompositor.cpp

  • Committer: Tarmac
  • Author(s): Daniel d'Andrada
  • Date: 2012-09-26 15:31:14 UTC
  • mfrom: (668.1.1 wc_refactoring)
  • Revision ID: tarmac-20120926153114-a55w6pci30aoh8rx
Refactoring nux::WindowCompositor::MouseEventCycle()

Disentangle it, having separate helper methods, each with clear responsibilities.
Also each helper method has a manageable size, making the whole thing more maintainable.

Nothing changed in terms of functionality or behavior.. Fixes: . Approved by Jay Taoko.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
  void GetAreaUnderMouse(const Point& mouse_position, NuxEventType event_type,
129
129
                         ObjectWeakPtr<InputArea>& area)
130
130
  {
131
 
    return nux::GetWindowCompositor().GetAreaUnderMouse(mouse_position, event_type, area);
 
131
    return nux::GetWindowCompositor().FindAreaUnderMouse(mouse_position, event_type, area);
132
132
  }
133
133
 
134
134
  void FindKeyFocusArea(NuxEventType event_type, unsigned int key_symbol,