| 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 2705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2716 | 2716 |
| 2717 // static | 2717 // static |
| 2718 bool NativeWidgetPrivate::IsMouseButtonDown() { | 2718 bool NativeWidgetPrivate::IsMouseButtonDown() { |
| 2719 return (GetKeyState(VK_LBUTTON) & 0x80) || | 2719 return (GetKeyState(VK_LBUTTON) & 0x80) || |
| 2720 (GetKeyState(VK_RBUTTON) & 0x80) || | 2720 (GetKeyState(VK_RBUTTON) & 0x80) || |
| 2721 (GetKeyState(VK_MBUTTON) & 0x80) || | 2721 (GetKeyState(VK_MBUTTON) & 0x80) || |
| 2722 (GetKeyState(VK_XBUTTON1) & 0x80) || | 2722 (GetKeyState(VK_XBUTTON1) & 0x80) || |
| 2723 (GetKeyState(VK_XBUTTON2) & 0x80); | 2723 (GetKeyState(VK_XBUTTON2) & 0x80); |
| 2724 } | 2724 } |
| 2725 | 2725 |
| 2726 // static |
| 2727 bool NativeWidgetPrivate::IsTouchDown() { |
| 2728 // This currently isn't necessary because we're not generating touch events on |
| 2729 // windows. When we do, this will need to be updated. |
| 2730 return false; |
| 2731 } |
| 2732 |
| 2726 } // namespace internal | 2733 } // namespace internal |
| 2727 | 2734 |
| 2728 } // namespace views | 2735 } // namespace views |
| OLD | NEW |