Remove Manager::currentMouseButtons()

This commit is contained in:
David Capello 2014-11-25 22:11:44 -03:00
parent 752faf11f2
commit 9e0990a70f
2 changed files with 3 additions and 10 deletions

View File

@ -219,7 +219,7 @@ void Manager::generateSetCursorMessage(const gfx::Point& mousePos)
Widget* dst = (capture_widget ? capture_widget: mouse_widget);
if (dst)
enqueueMessage(newMouseMessage(kSetCursorMessage, dst,
mousePos, currentMouseButtons()));
mousePos, _internal_get_mouse_buttons()));
else
set_mouse_cursor(kArrowCursor);
}
@ -447,7 +447,7 @@ void Manager::dispatchMessages()
{
// Add the "Queue Processing" message for the manager.
enqueueMessage(newMouseMessage(kQueueProcessingMessage, this,
get_mouse_position(), currentMouseButtons()));
get_mouse_position(), _internal_get_mouse_buttons()));
pumpQueue();
}
@ -660,7 +660,7 @@ void Manager::setMouse(Widget* widget)
it = widget_parents.begin();
Message* msg = newMouseMessage(kMouseEnterMessage, NULL,
get_mouse_position(), currentMouseButtons());
get_mouse_position(), _internal_get_mouse_buttons());
for (; it != widget_parents.end(); ++it) {
(*it)->flags |= JI_HASMOUSE;
@ -1263,12 +1263,6 @@ Message* Manager::newMouseMessage(MessageType type,
return msg;
}
// static
MouseButtons Manager::currentMouseButtons()
{
return _internal_get_mouse_buttons();
}
// static
void Manager::broadcastKeyMsg(Message* msg)
{

View File

@ -108,7 +108,6 @@ namespace ui {
static Message* newMouseMessage(MessageType type,
Widget* widget, const gfx::Point& mousePos,
MouseButtons buttons, const gfx::Point& wheelDelta = gfx::Point(0, 0));
static MouseButtons currentMouseButtons();
void broadcastKeyMsg(Message* msg);
static Manager* m_defaultManager;