| 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 <shellapi.h> | 8 #include <shellapi.h> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/system_monitor/system_monitor.h" | 11 #include "base/system_monitor/system_monitor.h" |
| 12 #include "base/win/windows_version.h" | 12 #include "base/win/windows_version.h" |
| 13 #include "ui/base/event.h" | 13 #include "ui/base/events/event.h" |
| 14 #include "ui/base/keycodes/keyboard_code_conversion_win.h" | 14 #include "ui/base/keycodes/keyboard_code_conversion_win.h" |
| 15 #include "ui/base/native_theme/native_theme_win.h" | 15 #include "ui/base/native_theme/native_theme_win.h" |
| 16 #include "ui/base/win/hwnd_util.h" | 16 #include "ui/base/win/hwnd_util.h" |
| 17 #include "ui/base/win/mouse_wheel_util.h" | 17 #include "ui/base/win/mouse_wheel_util.h" |
| 18 #include "ui/base/win/shell.h" | 18 #include "ui/base/win/shell.h" |
| 19 #include "ui/gfx/canvas.h" | 19 #include "ui/gfx/canvas.h" |
| 20 #include "ui/gfx/canvas_paint.h" | 20 #include "ui/gfx/canvas_paint.h" |
| 21 #include "ui/gfx/canvas_skia_paint.h" | 21 #include "ui/gfx/canvas_skia_paint.h" |
| 22 #include "ui/gfx/icon_util.h" | 22 #include "ui/gfx/icon_util.h" |
| 23 #include "ui/gfx/insets.h" | 23 #include "ui/gfx/insets.h" |
| (...skipping 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2085 DwmExtendFrameIntoClientArea(hwnd(), &m); | 2085 DwmExtendFrameIntoClientArea(hwnd(), &m); |
| 2086 } | 2086 } |
| 2087 if (window_pos->flags & SWP_SHOWWINDOW) | 2087 if (window_pos->flags & SWP_SHOWWINDOW) |
| 2088 delegate_->HandleVisibilityChanged(true); | 2088 delegate_->HandleVisibilityChanged(true); |
| 2089 else if (window_pos->flags & SWP_HIDEWINDOW) | 2089 else if (window_pos->flags & SWP_HIDEWINDOW) |
| 2090 delegate_->HandleVisibilityChanged(false); | 2090 delegate_->HandleVisibilityChanged(false); |
| 2091 SetMsgHandled(FALSE); | 2091 SetMsgHandled(FALSE); |
| 2092 } | 2092 } |
| 2093 | 2093 |
| 2094 } // namespace views | 2094 } // namespace views |
| OLD | NEW |