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 <dwmapi.h> | 7 #include <dwmapi.h> |
8 #include <InputScope.h> | 8 #include <InputScope.h> |
9 #include <wtsapi32.h> | 9 #include <wtsapi32.h> |
10 #pragma comment(lib, "wtsapi32.lib") | 10 #pragma comment(lib, "wtsapi32.lib") |
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 float scale = ui::win::GetDeviceScaleFactor(); | 795 float scale = ui::win::GetDeviceScaleFactor(); |
796 int dx = static_cast<int>(scale * scroll_delta.x()); | 796 int dx = static_cast<int>(scale * scroll_delta.x()); |
797 int dy = static_cast<int>(scale * scroll_delta.y()); | 797 int dy = static_cast<int>(scale * scroll_delta.y()); |
798 ScrollWindowEx(dx, dy, NULL, &clip_rect, NULL, NULL, SW_INVALIDATE); | 798 ScrollWindowEx(dx, dy, NULL, &clip_rect, NULL, NULL, SW_INVALIDATE); |
799 } | 799 } |
800 | 800 |
801 if (!about_to_validate_and_paint_) | 801 if (!about_to_validate_and_paint_) |
802 Redraw(); | 802 Redraw(); |
803 } | 803 } |
804 | 804 |
805 void RenderWidgetHostViewWin::RenderViewGone(base::TerminationStatus status, | 805 void RenderWidgetHostViewWin::RenderProcessGone(base::TerminationStatus status, |
806 int error_code) { | 806 int error_code) { |
807 UpdateCursorIfOverSelf(); | 807 UpdateCursorIfOverSelf(); |
808 Destroy(); | 808 Destroy(); |
809 } | 809 } |
810 | 810 |
811 bool RenderWidgetHostViewWin::CanSubscribeFrame() const { | 811 bool RenderWidgetHostViewWin::CanSubscribeFrame() const { |
812 return render_widget_host_ != NULL; | 812 return render_widget_host_ != NULL; |
813 } | 813 } |
814 | 814 |
815 void RenderWidgetHostViewWin::WillWmDestroy() { | 815 void RenderWidgetHostViewWin::WillWmDestroy() { |
816 CleanupCompositorWindow(); | 816 CleanupCompositorWindow(); |
(...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3218 return new RenderWidgetHostViewWin(widget); | 3218 return new RenderWidgetHostViewWin(widget); |
3219 } | 3219 } |
3220 | 3220 |
3221 // static | 3221 // static |
3222 void RenderWidgetHostViewPort::GetDefaultScreenInfo( | 3222 void RenderWidgetHostViewPort::GetDefaultScreenInfo( |
3223 WebKit::WebScreenInfo* results) { | 3223 WebKit::WebScreenInfo* results) { |
3224 GetScreenInfoForWindow(0, results); | 3224 GetScreenInfoForWindow(0, results); |
3225 } | 3225 } |
3226 | 3226 |
3227 } // namespace content | 3227 } // namespace content |
OLD | NEW |