OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/widget_win.h" | 5 #include "views/widget/widget_win.h" |
6 | 6 |
7 #include "app/l10n_util_win.h" | 7 #include "app/l10n_util_win.h" |
8 #include "app/system_monitor.h" | |
9 #include "app/view_prop.h" | 8 #include "app/view_prop.h" |
10 #include "app/win/hwnd_util.h" | 9 #include "app/win/hwnd_util.h" |
11 #include "app/win/win_util.h" | 10 #include "app/win/win_util.h" |
12 #include "base/string_util.h" | 11 #include "base/string_util.h" |
13 #include "gfx/canvas_skia.h" | 12 #include "gfx/canvas_skia.h" |
14 #include "gfx/native_theme_win.h" | 13 #include "gfx/native_theme_win.h" |
15 #include "gfx/path.h" | 14 #include "gfx/path.h" |
16 #include "ui/base/keycodes/keyboard_code_conversion_win.h" | 15 #include "ui/base/keycodes/keyboard_code_conversion_win.h" |
| 16 #include "ui/base/system_monitor/system_monitor.h" |
17 #include "views/accessibility/view_accessibility.h" | 17 #include "views/accessibility/view_accessibility.h" |
18 #include "views/controls/native_control_win.h" | 18 #include "views/controls/native_control_win.h" |
19 #include "views/focus/focus_util_win.h" | 19 #include "views/focus/focus_util_win.h" |
20 #include "views/views_delegate.h" | 20 #include "views/views_delegate.h" |
21 #include "views/widget/aero_tooltip_manager.h" | 21 #include "views/widget/aero_tooltip_manager.h" |
22 #include "views/widget/child_window_message_processor.h" | 22 #include "views/widget/child_window_message_processor.h" |
23 #include "views/widget/default_theme_provider.h" | 23 #include "views/widget/default_theme_provider.h" |
24 #include "views/widget/drop_target_win.h" | 24 #include "views/widget/drop_target_win.h" |
25 #include "views/widget/root_view.h" | 25 #include "views/widget/root_view.h" |
26 #include "views/widget/widget_delegate.h" | 26 #include "views/widget/widget_delegate.h" |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 } | 860 } |
861 SetMsgHandled(FALSE); | 861 SetMsgHandled(FALSE); |
862 return 0; | 862 return 0; |
863 } | 863 } |
864 | 864 |
865 void WidgetWin::OnPaint(HDC dc) { | 865 void WidgetWin::OnPaint(HDC dc) { |
866 root_view_->OnPaint(hwnd()); | 866 root_view_->OnPaint(hwnd()); |
867 } | 867 } |
868 | 868 |
869 LRESULT WidgetWin::OnPowerBroadcast(DWORD power_event, DWORD data) { | 869 LRESULT WidgetWin::OnPowerBroadcast(DWORD power_event, DWORD data) { |
870 SystemMonitor* monitor = SystemMonitor::Get(); | 870 ui::SystemMonitor* monitor = ui::SystemMonitor::Get(); |
871 if (monitor) | 871 if (monitor) |
872 monitor->ProcessWmPowerBroadcastMessage(power_event); | 872 monitor->ProcessWmPowerBroadcastMessage(power_event); |
873 SetMsgHandled(FALSE); | 873 SetMsgHandled(FALSE); |
874 return 0; | 874 return 0; |
875 } | 875 } |
876 | 876 |
877 void WidgetWin::OnRButtonDown(UINT flags, const CPoint& point) { | 877 void WidgetWin::OnRButtonDown(UINT flags, const CPoint& point) { |
878 ProcessMousePressed(point, flags | MK_RBUTTON, false, false); | 878 ProcessMousePressed(point, flags | MK_RBUTTON, false, false); |
879 } | 879 } |
880 | 880 |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1357 Widget* Widget::GetWidgetFromNativeWindow(gfx::NativeWindow native_window) { | 1357 Widget* Widget::GetWidgetFromNativeWindow(gfx::NativeWindow native_window) { |
1358 return Widget::GetWidgetFromNativeView(native_window); | 1358 return Widget::GetWidgetFromNativeView(native_window); |
1359 } | 1359 } |
1360 | 1360 |
1361 // static | 1361 // static |
1362 void Widget::NotifyLocaleChanged() { | 1362 void Widget::NotifyLocaleChanged() { |
1363 NOTIMPLEMENTED(); | 1363 NOTIMPLEMENTED(); |
1364 } | 1364 } |
1365 | 1365 |
1366 } // namespace views | 1366 } // namespace views |
OLD | NEW |