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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 void SetEventFlags(uint32_t flags); | 161 void SetEventFlags(uint32_t flags); |
162 | 162 |
163 uint32_t mouse_event_flags() const { | 163 uint32_t mouse_event_flags() const { |
164 return event_flags_ & (ui::EF_LEFT_MOUSE_BUTTON | | 164 return event_flags_ & (ui::EF_LEFT_MOUSE_BUTTON | |
165 ui::EF_MIDDLE_MOUSE_BUTTON | | 165 ui::EF_MIDDLE_MOUSE_BUTTON | |
166 ui::EF_RIGHT_MOUSE_BUTTON); | 166 ui::EF_RIGHT_MOUSE_BUTTON); |
167 } | 167 } |
168 | 168 |
169 uint32_t key_event_flags() const { | 169 uint32_t key_event_flags() const { |
170 return event_flags_ & (ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | | 170 return event_flags_ & (ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | |
171 ui::EF_ALT_DOWN | ui::EF_CAPS_LOCK_DOWN); | 171 ui::EF_ALT_DOWN | ui::EF_CAPS_LOCK_ON); |
172 } | 172 } |
173 | 173 |
174 HWND remote_window_; | 174 HWND remote_window_; |
175 IPC::Sender* host_; | 175 IPC::Sender* host_; |
176 scoped_ptr<ui::ViewProp> prop_; | 176 scoped_ptr<ui::ViewProp> prop_; |
177 | 177 |
178 // Incremented if we need to ignore mouse messages until the SetCursorPos | 178 // Incremented if we need to ignore mouse messages until the SetCursorPos |
179 // operation is acked by the viewer. | 179 // operation is acked by the viewer. |
180 int ignore_mouse_moves_until_set_cursor_ack_; | 180 int ignore_mouse_moves_until_set_cursor_ack_; |
181 | 181 |
182 // Tracking last click event for synthetically generated mouse events. | 182 // Tracking last click event for synthetically generated mouse events. |
183 scoped_ptr<ui::MouseEvent> last_mouse_click_event_; | 183 scoped_ptr<ui::MouseEvent> last_mouse_click_event_; |
184 | 184 |
185 // State of the keyboard/mouse at the time of the last input event. See | 185 // State of the keyboard/mouse at the time of the last input event. See |
186 // description of SetEventFlags(). | 186 // description of SetEventFlags(). |
187 uint32_t event_flags_; | 187 uint32_t event_flags_; |
188 | 188 |
189 // Current size of this root window. | 189 // Current size of this root window. |
190 gfx::Size window_size_; | 190 gfx::Size window_size_; |
191 | 191 |
192 DISALLOW_COPY_AND_ASSIGN(RemoteWindowTreeHostWin); | 192 DISALLOW_COPY_AND_ASSIGN(RemoteWindowTreeHostWin); |
193 }; | 193 }; |
194 | 194 |
195 } // namespace aura | 195 } // namespace aura |
196 | 196 |
197 #endif // UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ | 197 #endif // UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ |
OLD | NEW |