~unity-team/nux/nux.redirected-views

« back to all changes in this revision

Viewing changes to Nux/InputArea.cpp

  • Committer: Tarmac
  • Author(s): Michi Henning
  • Date: 2012-10-02 01:05:45 UTC
  • mfrom: (667.2.5 1056633)
  • Revision ID: tarmac-20121002010545-jphizk30nj3oe9ui
Added -Wextra to compiler flags and removed a large number of warnings about unused parameters. Code compiles clean now without warnings, except for one remaining warning (see bug #1052765).. Fixes: https://bugs.launchpad.net/bugs/1056633. Approved by Michi Henning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    while (GetWindowCompositor().GrabKeyboardRemove(this));
71
71
  }
72
72
 
73
 
  void InputArea::OnDraw(GraphicsEngine &graphics_engine, bool force_draw)
 
73
  void InputArea::OnDraw(GraphicsEngine & /* graphics_engine */, bool /* force_draw */)
74
74
  {
75
75
    // Draw Nothing!
76
76
 
156
156
    GetWindowThread()->GetGraphicsDisplay().SendDndFinished(accepted, action);
157
157
  }
158
158
 
159
 
  void InputArea::ProcessDndMove(int x, int y, std::list<char *>mimes)
 
159
  void InputArea::ProcessDndMove(int x, int y, std::list<char *> /* mimes */)
160
160
  {
161
161
    // must learn to deal with x/y offsets
162
162
    Area *parent = GetToplevel();
170
170
    SendDndStatus(false, DNDACTION_NONE, Geometry(x, y, GetGeometry().width, GetGeometry().height));
171
171
  }
172
172
 
173
 
  void InputArea::ProcessDndDrop(int x, int y)
 
173
  void InputArea::ProcessDndDrop(int /* x */, int /* y */)
174
174
  {
175
175
    SendDndFinished(false, DNDACTION_NONE);
176
176
  }
227
227
    self->DndSourceDragFinished(result);
228
228
  }
229
229
  
230
 
  void InputArea::DndSourceDragFinished(DndAction result)
 
230
  void InputArea::DndSourceDragFinished(DndAction /* result */)
231
231
  {
232
232
  
233
233
  }
302
302
    mouse_wheel.emit(x, y, wheel_delta, mouse_button_state, special_keys_state);
303
303
  }
304
304
 
305
 
  void InputArea::EmitKeyDownSignal(unsigned int key_symbol, unsigned long x11_key_code, unsigned long special_keys_state)
 
305
  void InputArea::EmitKeyDownSignal(unsigned int /* key_symbol */, unsigned long /* x11_key_code */, unsigned long /* special_keys_state */)
306
306
  {
307
307
    //OnKeyPressed.emit(key_symbol, x11_key_code, special_keys_state);
308
308
  }