OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_VIEWS_WIDGET_WIN_H_ | 5 #ifndef CHROME_VIEWS_WIDGET_WIN_H_ |
6 #define CHROME_VIEWS_WIDGET_WIN_H_ | 6 #define CHROME_VIEWS_WIDGET_WIN_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlcrack.h> | 9 #include <atlcrack.h> |
10 | 10 |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/system_monitor.h" |
12 #include "chrome/views/focus_manager.h" | 13 #include "chrome/views/focus_manager.h" |
13 #include "chrome/views/layout_manager.h" | 14 #include "chrome/views/layout_manager.h" |
14 #include "chrome/views/widget.h" | 15 #include "chrome/views/widget.h" |
15 | 16 |
16 class ChromeCanvas; | 17 class ChromeCanvas; |
17 | 18 |
18 namespace gfx { | 19 namespace gfx { |
19 class Rect; | 20 class Rect; |
20 } | 21 } |
21 | 22 |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 SetMsgHandled(FALSE); | 404 SetMsgHandled(FALSE); |
404 return 0; | 405 return 0; |
405 } | 406 } |
406 virtual LRESULT OnNCUAHDrawFrame(UINT msg, WPARAM w_param, LPARAM l_param) { | 407 virtual LRESULT OnNCUAHDrawFrame(UINT msg, WPARAM w_param, LPARAM l_param) { |
407 SetMsgHandled(FALSE); | 408 SetMsgHandled(FALSE); |
408 return 0; | 409 return 0; |
409 } | 410 } |
410 virtual LRESULT OnNotify(int w_param, NMHDR* l_param); | 411 virtual LRESULT OnNotify(int w_param, NMHDR* l_param); |
411 virtual void OnPaint(HDC dc); | 412 virtual void OnPaint(HDC dc); |
412 virtual LRESULT OnPowerBroadcast(DWORD power_event, DWORD data) { | 413 virtual LRESULT OnPowerBroadcast(DWORD power_event, DWORD data) { |
| 414 base::SystemMonitor* monitor = base::SystemMonitor::Get(); |
| 415 if (monitor) |
| 416 monitor->ProcessWmPowerBroadcastMessage(power_event); |
413 SetMsgHandled(FALSE); | 417 SetMsgHandled(FALSE); |
414 return 0; | 418 return 0; |
415 } | 419 } |
416 virtual void OnRButtonDblClk(UINT flags, const CPoint& point); | 420 virtual void OnRButtonDblClk(UINT flags, const CPoint& point); |
417 virtual void OnRButtonDown(UINT flags, const CPoint& point); | 421 virtual void OnRButtonDown(UINT flags, const CPoint& point); |
418 virtual void OnRButtonUp(UINT flags, const CPoint& point); | 422 virtual void OnRButtonUp(UINT flags, const CPoint& point); |
419 virtual LRESULT OnReflectedMessage(UINT msg, WPARAM w_param, LPARAM l_param) { | 423 virtual LRESULT OnReflectedMessage(UINT msg, WPARAM w_param, LPARAM l_param) { |
420 SetMsgHandled(FALSE); | 424 SetMsgHandled(FALSE); |
421 return 0; | 425 return 0; |
422 } | 426 } |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 CComPtr<IAccessible> accessibility_root_; | 582 CComPtr<IAccessible> accessibility_root_; |
579 | 583 |
580 // Our hwnd. | 584 // Our hwnd. |
581 HWND hwnd_; | 585 HWND hwnd_; |
582 }; | 586 }; |
583 | 587 |
584 } // namespace views | 588 } // namespace views |
585 | 589 |
586 #endif // #ifndef CHROME_VIEWS_WIDGET_WIN_H_ | 590 #endif // #ifndef CHROME_VIEWS_WIDGET_WIN_H_ |
587 | 591 |
OLD | NEW |