| 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/win/hwnd_message_handler.h" | 5 #include "ui/views/win/hwnd_message_handler.h" |
| 6 | 6 |
| 7 #include <dwmapi.h> | 7 #include <dwmapi.h> |
| 8 #include <oleacc.h> | 8 #include <oleacc.h> |
| 9 #include <shellapi.h> | 9 #include <shellapi.h> |
| 10 #include <tchar.h> | 10 #include <tchar.h> |
| (...skipping 2755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2766 TouchEvents* touch_events) { | 2766 TouchEvents* touch_events) { |
| 2767 ui::TouchEvent event( | 2767 ui::TouchEvent event( |
| 2768 event_type, point, time_stamp, | 2768 event_type, point, time_stamp, |
| 2769 ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_TOUCH, id)); | 2769 ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_TOUCH, id)); |
| 2770 | 2770 |
| 2771 event.set_flags(ui::GetModifiersFromKeyState()); | 2771 event.set_flags(ui::GetModifiersFromKeyState()); |
| 2772 | 2772 |
| 2773 event.latency()->AddLatencyNumberWithTimestamp( | 2773 event.latency()->AddLatencyNumberWithTimestamp( |
| 2774 ui::INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, | 2774 ui::INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, |
| 2775 0, | 2775 0, |
| 2776 0, | |
| 2777 time_stamp, | 2776 time_stamp, |
| 2778 1); | 2777 1); |
| 2779 | 2778 |
| 2780 touch_events->push_back(event); | 2779 touch_events->push_back(event); |
| 2781 } | 2780 } |
| 2782 | 2781 |
| 2783 bool HWNDMessageHandler::HandleMouseInputForCaption(unsigned int message, | 2782 bool HWNDMessageHandler::HandleMouseInputForCaption(unsigned int message, |
| 2784 WPARAM w_param, | 2783 WPARAM w_param, |
| 2785 LPARAM l_param) { | 2784 LPARAM l_param) { |
| 2786 // If we are receive a WM_NCLBUTTONDOWN messsage for the caption, the | 2785 // If we are receive a WM_NCLBUTTONDOWN messsage for the caption, the |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2913 MONITORINFO monitor_info = {sizeof(monitor_info)}; | 2912 MONITORINFO monitor_info = {sizeof(monitor_info)}; |
| 2914 GetMonitorInfo(MonitorFromWindow(hwnd(), MONITOR_DEFAULTTOPRIMARY), | 2913 GetMonitorInfo(MonitorFromWindow(hwnd(), MONITOR_DEFAULTTOPRIMARY), |
| 2915 &monitor_info); | 2914 &monitor_info); |
| 2916 gfx::Rect shrunk_rect(monitor_info.rcMonitor); | 2915 gfx::Rect shrunk_rect(monitor_info.rcMonitor); |
| 2917 shrunk_rect.set_height(shrunk_rect.height() - 1); | 2916 shrunk_rect.set_height(shrunk_rect.height() - 1); |
| 2918 background_fullscreen_hack_ = true; | 2917 background_fullscreen_hack_ = true; |
| 2919 SetBoundsInternal(shrunk_rect, false); | 2918 SetBoundsInternal(shrunk_rect, false); |
| 2920 } | 2919 } |
| 2921 | 2920 |
| 2922 } // namespace views | 2921 } // namespace views |
| OLD | NEW |