Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1393)

Side by Side Diff: views/widget/widget_win.cc

Issue 431008: Make SystemMonitor not a Singleton and move it out of base (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: fix ChromeFrame build Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/gfx/canvas.h" 7 #include "app/gfx/canvas.h"
8 #include "app/gfx/native_theme_win.h" 8 #include "app/gfx/native_theme_win.h"
9 #include "app/gfx/path.h" 9 #include "app/gfx/path.h"
10 #include "app/l10n_util_win.h" 10 #include "app/l10n_util_win.h"
11 #include "app/system_monitor.h"
11 #include "app/win_util.h" 12 #include "app/win_util.h"
12 #include "base/string_util.h" 13 #include "base/string_util.h"
13 #include "base/win_util.h" 14 #include "base/win_util.h"
14 #include "views/accessibility/view_accessibility.h" 15 #include "views/accessibility/view_accessibility.h"
15 #include "views/controls/native_control_win.h" 16 #include "views/controls/native_control_win.h"
16 #include "views/focus/focus_util_win.h" 17 #include "views/focus/focus_util_win.h"
17 #include "views/views_delegate.h" 18 #include "views/views_delegate.h"
18 #include "views/widget/aero_tooltip_manager.h" 19 #include "views/widget/aero_tooltip_manager.h"
19 #include "views/widget/default_theme_provider.h" 20 #include "views/widget/default_theme_provider.h"
20 #include "views/widget/drop_target_win.h" 21 #include "views/widget/drop_target_win.h"
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 } 764 }
764 SetMsgHandled(FALSE); 765 SetMsgHandled(FALSE);
765 return 0; 766 return 0;
766 } 767 }
767 768
768 void WidgetWin::OnPaint(HDC dc) { 769 void WidgetWin::OnPaint(HDC dc) {
769 root_view_->OnPaint(hwnd()); 770 root_view_->OnPaint(hwnd());
770 } 771 }
771 772
772 LRESULT WidgetWin::OnPowerBroadcast(DWORD power_event, DWORD data) { 773 LRESULT WidgetWin::OnPowerBroadcast(DWORD power_event, DWORD data) {
773 base::SystemMonitor* monitor = base::SystemMonitor::Get(); 774 SystemMonitor* monitor = SystemMonitor::Get();
774 if (monitor) 775 if (monitor)
775 monitor->ProcessWmPowerBroadcastMessage(power_event); 776 monitor->ProcessWmPowerBroadcastMessage(power_event);
776 SetMsgHandled(FALSE); 777 SetMsgHandled(FALSE);
777 return 0; 778 return 0;
778 } 779 }
779 780
780 void WidgetWin::OnRButtonDown(UINT flags, const CPoint& point) { 781 void WidgetWin::OnRButtonDown(UINT flags, const CPoint& point) {
781 ProcessMousePressed(point, flags | MK_RBUTTON, false, false); 782 ProcessMousePressed(point, flags | MK_RBUTTON, false, false);
782 } 783 }
783 784
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 } 1215 }
1215 return NULL; 1216 return NULL;
1216 } 1217 }
1217 1218
1218 // static 1219 // static
1219 Widget* Widget::GetWidgetFromNativeWindow(gfx::NativeWindow native_window) { 1220 Widget* Widget::GetWidgetFromNativeWindow(gfx::NativeWindow native_window) {
1220 return Widget::GetWidgetFromNativeView(native_window); 1221 return Widget::GetWidgetFromNativeView(native_window);
1221 } 1222 }
1222 1223
1223 } // namespace views 1224 } // namespace views
OLDNEW
« chrome/browser/session_history_uitest.cc ('K') | « views/widget/widget_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698