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