Chromium Code Reviews| Index: ui/aura/remote_window_tree_host_win.cc |
| diff --git a/ui/aura/remote_window_tree_host_win.cc b/ui/aura/remote_window_tree_host_win.cc |
| index 14c9bf6fe6cfa77813edeb5ba1900e1fbdf25077..1798267427259b4c4d4616a51fb3d24ef792c937 100644 |
| --- a/ui/aura/remote_window_tree_host_win.cc |
| +++ b/ui/aura/remote_window_tree_host_win.cc |
| @@ -93,7 +93,7 @@ RemoteWindowTreeHostWin* RemoteWindowTreeHostWin::Instance() { |
| RemoteWindowTreeHostWin::RemoteWindowTreeHostWin() |
| : remote_window_(NULL), |
| host_(NULL), |
| - ignore_mouse_moves_until_set_cursor_ack_(false), |
| + ignore_mouse_moves_until_set_cursor_ack_(0), |
| event_flags_(0), |
| window_size_(aura::WindowTreeHost::GetNativeScreenSize()) { |
| CHECK(!g_instance); |
| @@ -262,7 +262,7 @@ void RemoteWindowTreeHostWin::MoveCursorToNative(const gfx::Point& location) { |
| // this we invoke the SetCursor API in the viewer process and ignore |
| // mouse messages until we received an ACK from the viewer indicating that |
| // the SetCursor operation completed. |
| - ignore_mouse_moves_until_set_cursor_ack_ = true; |
| + ignore_mouse_moves_until_set_cursor_ack_++; |
| VLOG(1) << "In MoveCursorTo. Sending IPC"; |
| host_->Send(new MetroViewerHostMsg_SetCursorPos(location.x(), location.y())); |
| } |
| @@ -285,7 +285,7 @@ void RemoteWindowTreeHostWin::CancelComposition() { |
| host_->Send(new MetroViewerHostMsg_ImeCancelComposition); |
| } |
| -void RemoteWindowTreeHostWin::OnTextInputClientUpdated( |
| +void remotewindowtreehostwin::OnTextInputClientUpdated( |
| const std::vector<int32>& input_scopes, |
| const std::vector<gfx::Rect>& composition_character_bounds) { |
| if (!host_) |
| @@ -430,8 +430,8 @@ void RemoteWindowTreeHostWin::OnTouchMoved(int32 x, |
| } |
| void RemoteWindowTreeHostWin::OnSetCursorPosAck() { |
| - DCHECK(ignore_mouse_moves_until_set_cursor_ack_); |
| - ignore_mouse_moves_until_set_cursor_ack_ = false; |
| + DCHECK(ignore_mouse_moves_until_set_cursor_ack_ > 0); |
|
sky
2014/09/09 23:40:59
DCHECK_GT
ananta
2014/09/09 23:52:51
Done.
|
| + ignore_mouse_moves_until_set_cursor_ack_--; |
| } |
| ui::RemoteInputMethodPrivateWin* |