OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "views/widget/native_widget_win.h" | 5 #include "views/widget/native_widget_win.h" |
6 | 6 |
7 #include <dwmapi.h> | 7 #include <dwmapi.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 bool NativeWidgetWin::ConvertPointFromAncestor( | 1115 bool NativeWidgetWin::ConvertPointFromAncestor( |
1116 const Widget* ancestor, gfx::Point* point) const { | 1116 const Widget* ancestor, gfx::Point* point) const { |
1117 NOTREACHED(); | 1117 NOTREACHED(); |
1118 return false; | 1118 return false; |
1119 } | 1119 } |
1120 | 1120 |
1121 gfx::Rect NativeWidgetWin::GetWorkAreaBoundsInScreen() const { | 1121 gfx::Rect NativeWidgetWin::GetWorkAreaBoundsInScreen() const { |
1122 return gfx::Screen::GetMonitorWorkAreaNearestWindow(GetNativeView()); | 1122 return gfx::Screen::GetMonitorWorkAreaNearestWindow(GetNativeView()); |
1123 } | 1123 } |
1124 | 1124 |
| 1125 void NativeWidgetWin::SetInactiveRenderingDisabled(bool value) { |
| 1126 } |
| 1127 |
1125 //////////////////////////////////////////////////////////////////////////////// | 1128 //////////////////////////////////////////////////////////////////////////////// |
1126 // NativeWidgetWin, MessageLoop::Observer implementation: | 1129 // NativeWidgetWin, MessageLoop::Observer implementation: |
1127 | 1130 |
1128 base::EventStatus NativeWidgetWin::WillProcessEvent( | 1131 base::EventStatus NativeWidgetWin::WillProcessEvent( |
1129 const base::NativeEvent& event) { | 1132 const base::NativeEvent& event) { |
1130 return base::EVENT_CONTINUE; | 1133 return base::EVENT_CONTINUE; |
1131 } | 1134 } |
1132 | 1135 |
1133 void NativeWidgetWin::DidProcessEvent(const base::NativeEvent& event) { | 1136 void NativeWidgetWin::DidProcessEvent(const base::NativeEvent& event) { |
1134 RedrawInvalidRect(); | 1137 RedrawInvalidRect(); |
(...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2620 return (GetKeyState(VK_LBUTTON) & 0x80) || | 2623 return (GetKeyState(VK_LBUTTON) & 0x80) || |
2621 (GetKeyState(VK_RBUTTON) & 0x80) || | 2624 (GetKeyState(VK_RBUTTON) & 0x80) || |
2622 (GetKeyState(VK_MBUTTON) & 0x80) || | 2625 (GetKeyState(VK_MBUTTON) & 0x80) || |
2623 (GetKeyState(VK_XBUTTON1) & 0x80) || | 2626 (GetKeyState(VK_XBUTTON1) & 0x80) || |
2624 (GetKeyState(VK_XBUTTON2) & 0x80); | 2627 (GetKeyState(VK_XBUTTON2) & 0x80); |
2625 } | 2628 } |
2626 | 2629 |
2627 } // namespace internal | 2630 } // namespace internal |
2628 | 2631 |
2629 } // namespace views | 2632 } // namespace views |
OLD | NEW |