| 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 #include "content/browser/renderer_host/render_widget_host_view_win.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
| 6 | 6 |
| 7 #include <InputScope.h> | 7 #include <InputScope.h> |
| 8 #include <wtsapi32.h> | 8 #include <wtsapi32.h> |
| 9 #pragma comment(lib, "wtsapi32.lib") | 9 #pragma comment(lib, "wtsapi32.lib") |
| 10 | 10 |
| (...skipping 2360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2371 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled) { | 2371 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled) { |
| 2372 // Reset the cliping rectangle if the mouse is locked. | 2372 // Reset the cliping rectangle if the mouse is locked. |
| 2373 if (mouse_locked_) { | 2373 if (mouse_locked_) { |
| 2374 CRect rect; | 2374 CRect rect; |
| 2375 GetWindowRect(&rect); | 2375 GetWindowRect(&rect); |
| 2376 ::ClipCursor(&rect); | 2376 ::ClipCursor(&rect); |
| 2377 } | 2377 } |
| 2378 return 0; | 2378 return 0; |
| 2379 } | 2379 } |
| 2380 | 2380 |
| 2381 void RenderWidgetHostViewWin::OnAccessibilityNotifications( | 2381 void RenderWidgetHostViewWin::OnAccessibilityEvents( |
| 2382 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 2382 const std::vector<AccessibilityHostMsg_EventParams>& params) { |
| 2383 CreateBrowserAccessibilityManagerIfNeeded(); | 2383 CreateBrowserAccessibilityManagerIfNeeded(); |
| 2384 GetBrowserAccessibilityManager()->OnAccessibilityNotifications(params); | 2384 GetBrowserAccessibilityManager()->OnAccessibilityEvents(params); |
| 2385 } | 2385 } |
| 2386 | 2386 |
| 2387 bool RenderWidgetHostViewWin::LockMouse() { | 2387 bool RenderWidgetHostViewWin::LockMouse() { |
| 2388 if (mouse_locked_) | 2388 if (mouse_locked_) |
| 2389 return true; | 2389 return true; |
| 2390 | 2390 |
| 2391 mouse_locked_ = true; | 2391 mouse_locked_ = true; |
| 2392 | 2392 |
| 2393 // Hide the tooltip window if it is currently visible. When the mouse is | 2393 // Hide the tooltip window if it is currently visible. When the mouse is |
| 2394 // locked, no mouse message is relayed to the tooltip window, so we don't need | 2394 // locked, no mouse message is relayed to the tooltip window, so we don't need |
| (...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3198 return new RenderWidgetHostViewWin(widget); | 3198 return new RenderWidgetHostViewWin(widget); |
| 3199 } | 3199 } |
| 3200 | 3200 |
| 3201 // static | 3201 // static |
| 3202 void RenderWidgetHostViewPort::GetDefaultScreenInfo( | 3202 void RenderWidgetHostViewPort::GetDefaultScreenInfo( |
| 3203 WebKit::WebScreenInfo* results) { | 3203 WebKit::WebScreenInfo* results) { |
| 3204 GetScreenInfoForWindow(0, results); | 3204 GetScreenInfoForWindow(0, results); |
| 3205 } | 3205 } |
| 3206 | 3206 |
| 3207 } // namespace content | 3207 } // namespace content |
| OLD | NEW |