| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ | 5 #ifndef UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ |
| 6 #define UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ | 6 #define UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 uint32 key_event_flags() const { | 165 uint32 key_event_flags() const { |
| 166 return event_flags_ & (ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | | 166 return event_flags_ & (ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | |
| 167 ui::EF_ALT_DOWN | ui::EF_CAPS_LOCK_DOWN); | 167 ui::EF_ALT_DOWN | ui::EF_CAPS_LOCK_DOWN); |
| 168 } | 168 } |
| 169 | 169 |
| 170 HWND remote_window_; | 170 HWND remote_window_; |
| 171 IPC::Sender* host_; | 171 IPC::Sender* host_; |
| 172 scoped_ptr<ui::ViewProp> prop_; | 172 scoped_ptr<ui::ViewProp> prop_; |
| 173 | 173 |
| 174 // Set to true if we need to ignore mouse messages until the SetCursorPos | 174 // Incremented if we need to ignore mouse messages until the SetCursorPos |
| 175 // operation is acked by the viewer. | 175 // operation is acked by the viewer. |
| 176 bool ignore_mouse_moves_until_set_cursor_ack_; | 176 int ignore_mouse_moves_until_set_cursor_ack_; |
| 177 | 177 |
| 178 // Tracking last click event for synthetically generated mouse events. | 178 // Tracking last click event for synthetically generated mouse events. |
| 179 scoped_ptr<ui::MouseEvent> last_mouse_click_event_; | 179 scoped_ptr<ui::MouseEvent> last_mouse_click_event_; |
| 180 | 180 |
| 181 // State of the keyboard/mouse at the time of the last input event. See | 181 // State of the keyboard/mouse at the time of the last input event. See |
| 182 // description of SetEventFlags(). | 182 // description of SetEventFlags(). |
| 183 uint32 event_flags_; | 183 uint32 event_flags_; |
| 184 | 184 |
| 185 // Current size of this root window. | 185 // Current size of this root window. |
| 186 gfx::Size window_size_; | 186 gfx::Size window_size_; |
| 187 | 187 |
| 188 DISALLOW_COPY_AND_ASSIGN(RemoteWindowTreeHostWin); | 188 DISALLOW_COPY_AND_ASSIGN(RemoteWindowTreeHostWin); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 } // namespace aura | 191 } // namespace aura |
| 192 | 192 |
| 193 #endif // UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ | 193 #endif // UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ |
| OLD | NEW |