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