| 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 "ui/views/widget/native_widget_win.h" | 5 #include "ui/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 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 ::SetParent(native_view, new_parent); | 955 ::SetParent(native_view, new_parent); |
| 956 | 956 |
| 957 // And now, notify them that they have a brand new parent. | 957 // And now, notify them that they have a brand new parent. |
| 958 for (Widget::Widgets::iterator it = widgets.begin(); | 958 for (Widget::Widgets::iterator it = widgets.begin(); |
| 959 it != widgets.end(); ++it) { | 959 it != widgets.end(); ++it) { |
| 960 (*it)->NotifyNativeViewHierarchyChanged(true, new_parent); | 960 (*it)->NotifyNativeViewHierarchyChanged(true, new_parent); |
| 961 } | 961 } |
| 962 } | 962 } |
| 963 | 963 |
| 964 // static | 964 // static |
| 965 void NativeWidgetPrivate::ReorderLayers(gfx::NativeView parent, |
| 966 View* root_view) { |
| 967 } |
| 968 |
| 969 // static |
| 965 bool NativeWidgetPrivate::IsMouseButtonDown() { | 970 bool NativeWidgetPrivate::IsMouseButtonDown() { |
| 966 return (GetKeyState(VK_LBUTTON) & 0x80) || | 971 return (GetKeyState(VK_LBUTTON) & 0x80) || |
| 967 (GetKeyState(VK_RBUTTON) & 0x80) || | 972 (GetKeyState(VK_RBUTTON) & 0x80) || |
| 968 (GetKeyState(VK_MBUTTON) & 0x80) || | 973 (GetKeyState(VK_MBUTTON) & 0x80) || |
| 969 (GetKeyState(VK_XBUTTON1) & 0x80) || | 974 (GetKeyState(VK_XBUTTON1) & 0x80) || |
| 970 (GetKeyState(VK_XBUTTON2) & 0x80); | 975 (GetKeyState(VK_XBUTTON2) & 0x80); |
| 971 } | 976 } |
| 972 | 977 |
| 973 // static | 978 // static |
| 974 bool NativeWidgetPrivate::IsTouchDown() { | 979 bool NativeWidgetPrivate::IsTouchDown() { |
| 975 // This currently isn't necessary because we're not generating touch events on | 980 // This currently isn't necessary because we're not generating touch events on |
| 976 // windows. When we do, this will need to be updated. | 981 // windows. When we do, this will need to be updated. |
| 977 return false; | 982 return false; |
| 978 } | 983 } |
| 979 | 984 |
| 980 } // namespace internal | 985 } // namespace internal |
| 981 | 986 |
| 982 } // namespace views | 987 } // namespace views |
| OLD | NEW |