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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
7 | 7 |
8 #include <gdk/gdk.h> | 8 #include <gdk/gdk.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 // While the mouse is locked, they store the last known position just as mouse | 265 // While the mouse is locked, they store the last known position just as mouse |
266 // lock was entered. | 266 // lock was entered. |
267 // Relative to the upper-left corner of the view. | 267 // Relative to the upper-left corner of the view. |
268 gfx::Point unlocked_mouse_position_; | 268 gfx::Point unlocked_mouse_position_; |
269 // Relative to the upper-left corner of the screen. | 269 // Relative to the upper-left corner of the screen. |
270 gfx::Point unlocked_global_mouse_position_; | 270 gfx::Point unlocked_global_mouse_position_; |
271 // Last hidden cursor position. Relative to screen. | 271 // Last hidden cursor position. Relative to screen. |
272 gfx::Point global_mouse_position_; | 272 gfx::Point global_mouse_position_; |
273 // Indicates when mouse motion is valid after the widget has moved. | 273 // Indicates when mouse motion is valid after the widget has moved. |
274 bool mouse_has_been_warped_to_new_center_; | 274 bool mouse_has_been_warped_to_new_center_; |
| 275 // Indicates the cursor has been warped to the unlocked position, |
| 276 // but a move event has not yet been received for it there. |
| 277 bool mouse_is_being_warped_to_unlocked_position_; |
275 | 278 |
276 // For full-screen windows we have a OnDestroy handler that we need to remove, | 279 // For full-screen windows we have a OnDestroy handler that we need to remove, |
277 // so we keep it ID here. | 280 // so we keep it ID here. |
278 unsigned long destroy_handler_id_; | 281 unsigned long destroy_handler_id_; |
279 | 282 |
280 // A convenience wrapper object for GtkIMContext; | 283 // A convenience wrapper object for GtkIMContext; |
281 scoped_ptr<GtkIMContextWrapper> im_context_; | 284 scoped_ptr<GtkIMContextWrapper> im_context_; |
282 | 285 |
283 // A convenience object for handling editor key bindings defined in gtk | 286 // A convenience object for handling editor key bindings defined in gtk |
284 // keyboard theme. | 287 // keyboard theme. |
(...skipping 30 matching lines...) Expand all Loading... |
315 // Instance of accessibility information for the root of the AtkObject | 318 // Instance of accessibility information for the root of the AtkObject |
316 // tree representation of the WebKit render tree. | 319 // tree representation of the WebKit render tree. |
317 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 320 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
318 | 321 |
319 ui::GtkSignalRegistrar signals_; | 322 ui::GtkSignalRegistrar signals_; |
320 }; | 323 }; |
321 | 324 |
322 } // namespace content | 325 } // namespace content |
323 | 326 |
324 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 327 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
OLD | NEW |