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> |
11 | 11 |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
16 #include "base/debug/alias.h" | 16 #include "base/debug/alias.h" |
17 #include "base/location.h" | 17 #include "base/location.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
| 19 #include "base/message_loop/message_loop.h" |
19 #include "base/single_thread_task_runner.h" | 20 #include "base/single_thread_task_runner.h" |
20 #include "base/threading/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
21 #include "base/time/time.h" | 22 #include "base/time/time.h" |
22 #include "base/trace_event/trace_event.h" | 23 #include "base/trace_event/trace_event.h" |
23 #include "base/win/scoped_gdi_object.h" | 24 #include "base/win/scoped_gdi_object.h" |
24 #include "base/win/windows_version.h" | 25 #include "base/win/windows_version.h" |
25 #include "ui/base/view_prop.h" | 26 #include "ui/base/view_prop.h" |
26 #include "ui/base/win/internal_constants.h" | 27 #include "ui/base/win/internal_constants.h" |
27 #include "ui/base/win/lock_state.h" | 28 #include "ui/base/win/lock_state.h" |
28 #include "ui/base/win/mouse_wheel_util.h" | 29 #include "ui/base/win/mouse_wheel_util.h" |
(...skipping 2879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2908 MONITORINFO monitor_info = {sizeof(monitor_info)}; | 2909 MONITORINFO monitor_info = {sizeof(monitor_info)}; |
2909 GetMonitorInfo(MonitorFromWindow(hwnd(), MONITOR_DEFAULTTOPRIMARY), | 2910 GetMonitorInfo(MonitorFromWindow(hwnd(), MONITOR_DEFAULTTOPRIMARY), |
2910 &monitor_info); | 2911 &monitor_info); |
2911 gfx::Rect shrunk_rect(monitor_info.rcMonitor); | 2912 gfx::Rect shrunk_rect(monitor_info.rcMonitor); |
2912 shrunk_rect.set_height(shrunk_rect.height() - 1); | 2913 shrunk_rect.set_height(shrunk_rect.height() - 1); |
2913 background_fullscreen_hack_ = true; | 2914 background_fullscreen_hack_ = true; |
2914 SetBoundsInternal(shrunk_rect, false); | 2915 SetBoundsInternal(shrunk_rect, false); |
2915 } | 2916 } |
2916 | 2917 |
2917 } // namespace views | 2918 } // namespace views |
OLD | NEW |