| 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 "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> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/system_monitor/system_monitor.h" | 14 #include "base/system_monitor/system_monitor.h" |
| 15 #include "base/win/scoped_gdi_object.h" | 15 #include "base/win/scoped_gdi_object.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 29 #include "ui/gfx/canvas_skia_paint.h" | 29 #include "ui/gfx/canvas_skia_paint.h" |
| 30 #include "ui/gfx/compositor/compositor.h" | 30 #include "ui/gfx/compositor/compositor.h" |
| 31 #include "ui/gfx/icon_util.h" | 31 #include "ui/gfx/icon_util.h" |
| 32 #include "ui/gfx/native_theme_win.h" | 32 #include "ui/gfx/native_theme_win.h" |
| 33 #include "ui/gfx/path.h" | 33 #include "ui/gfx/path.h" |
| 34 #include "ui/gfx/screen.h" | 34 #include "ui/gfx/screen.h" |
| 35 #include "ui/views/accessibility/native_view_accessibility_win.h" | 35 #include "ui/views/accessibility/native_view_accessibility_win.h" |
| 36 #include "ui/views/focus/accelerator_handler.h" | 36 #include "ui/views/focus/accelerator_handler.h" |
| 37 #include "ui/views/focus/view_storage.h" | 37 #include "ui/views/focus/view_storage.h" |
| 38 #include "ui/views/ime/input_method_win.h" | 38 #include "ui/views/ime/input_method_win.h" |
| 39 #include "ui/views/widget/aero_tooltip_manager.h" |
| 40 #include "ui/views/widget/child_window_message_processor.h" |
| 41 #include "ui/views/widget/drop_target_win.h" |
| 42 #include "ui/views/widget/monitor_win.h" |
| 43 #include "ui/views/widget/native_widget_delegate.h" |
| 44 #include "ui/views/widget/root_view.h" |
| 45 #include "ui/views/widget/widget_delegate.h" |
| 39 #include "ui/views/window/native_frame_view.h" | 46 #include "ui/views/window/native_frame_view.h" |
| 40 #include "views/controls/native_control_win.h" | 47 #include "views/controls/native_control_win.h" |
| 41 #include "views/controls/textfield/native_textfield_views.h" | 48 #include "views/controls/textfield/native_textfield_views.h" |
| 42 #include "views/views_delegate.h" | 49 #include "views/views_delegate.h" |
| 43 #include "views/widget/aero_tooltip_manager.h" | |
| 44 #include "views/widget/child_window_message_processor.h" | |
| 45 #include "views/widget/drop_target_win.h" | |
| 46 #include "views/widget/monitor_win.h" | |
| 47 #include "views/widget/native_widget_delegate.h" | |
| 48 #include "views/widget/root_view.h" | |
| 49 #include "views/widget/widget_delegate.h" | |
| 50 | 50 |
| 51 #pragma comment(lib, "dwmapi.lib") | 51 #pragma comment(lib, "dwmapi.lib") |
| 52 | 52 |
| 53 using ui::ViewProp; | 53 using ui::ViewProp; |
| 54 | 54 |
| 55 namespace views { | 55 namespace views { |
| 56 | 56 |
| 57 namespace { | 57 namespace { |
| 58 | 58 |
| 59 // Get the source HWND of the specified message. Depending on the message, the | 59 // Get the source HWND of the specified message. Depending on the message, the |
| (...skipping 2455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2515 return (GetKeyState(VK_LBUTTON) & 0x80) || | 2515 return (GetKeyState(VK_LBUTTON) & 0x80) || |
| 2516 (GetKeyState(VK_RBUTTON) & 0x80) || | 2516 (GetKeyState(VK_RBUTTON) & 0x80) || |
| 2517 (GetKeyState(VK_MBUTTON) & 0x80) || | 2517 (GetKeyState(VK_MBUTTON) & 0x80) || |
| 2518 (GetKeyState(VK_XBUTTON1) & 0x80) || | 2518 (GetKeyState(VK_XBUTTON1) & 0x80) || |
| 2519 (GetKeyState(VK_XBUTTON2) & 0x80); | 2519 (GetKeyState(VK_XBUTTON2) & 0x80); |
| 2520 } | 2520 } |
| 2521 | 2521 |
| 2522 } // namespace internal | 2522 } // namespace internal |
| 2523 | 2523 |
| 2524 } // namespace views | 2524 } // namespace views |
| OLD | NEW |