| 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_CONTAINER_WIN_H_ | 5 #ifndef CHROME_VIEWS_CONTAINER_WIN_H_ |
| 6 #define CHROME_VIEWS_CONTAINER_WIN_H_ | 6 #define CHROME_VIEWS_CONTAINER_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/container.h" | 14 #include "chrome/views/container.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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 SetMsgHandled(FALSE); | 409 SetMsgHandled(FALSE); |
| 411 return 0; | 410 return 0; |
| 412 } | 411 } |
| 413 virtual LRESULT OnNCUAHDrawFrame(UINT msg, WPARAM w_param, LPARAM l_param) { | 412 virtual LRESULT OnNCUAHDrawFrame(UINT msg, WPARAM w_param, LPARAM l_param) { |
| 414 SetMsgHandled(FALSE); | 413 SetMsgHandled(FALSE); |
| 415 return 0; | 414 return 0; |
| 416 } | 415 } |
| 417 virtual LRESULT OnNotify(int w_param, NMHDR* l_param); | 416 virtual LRESULT OnNotify(int w_param, NMHDR* l_param); |
| 418 virtual void OnPaint(HDC dc); | 417 virtual void OnPaint(HDC dc); |
| 419 virtual LRESULT OnPowerBroadcast(DWORD power_event, DWORD data) { | 418 virtual LRESULT OnPowerBroadcast(DWORD power_event, DWORD data) { |
| 420 base::SystemMonitor* monitor = base::SystemMonitor::Get(); | |
| 421 if (monitor) | |
| 422 monitor->ProcessWmPowerBroadcastMessage(power_event); | |
| 423 SetMsgHandled(FALSE); | 419 SetMsgHandled(FALSE); |
| 424 return 0; | 420 return 0; |
| 425 } | 421 } |
| 426 virtual void OnRButtonDblClk(UINT flags, const CPoint& point); | 422 virtual void OnRButtonDblClk(UINT flags, const CPoint& point); |
| 427 virtual void OnRButtonDown(UINT flags, const CPoint& point); | 423 virtual void OnRButtonDown(UINT flags, const CPoint& point); |
| 428 virtual void OnRButtonUp(UINT flags, const CPoint& point); | 424 virtual void OnRButtonUp(UINT flags, const CPoint& point); |
| 429 virtual LRESULT OnReflectedMessage(UINT msg, WPARAM w_param, LPARAM l_param) { | 425 virtual LRESULT OnReflectedMessage(UINT msg, WPARAM w_param, LPARAM l_param) { |
| 430 SetMsgHandled(FALSE); | 426 SetMsgHandled(FALSE); |
| 431 return 0; | 427 return 0; |
| 432 } | 428 } |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 CComPtr<IAccessible> accessibility_root_; | 584 CComPtr<IAccessible> accessibility_root_; |
| 589 | 585 |
| 590 // Our hwnd. | 586 // Our hwnd. |
| 591 HWND hwnd_; | 587 HWND hwnd_; |
| 592 }; | 588 }; |
| 593 | 589 |
| 594 } // namespace views | 590 } // namespace views |
| 595 | 591 |
| 596 #endif // #ifndef CHROME_VIEWS_CONTAINER_WIN_H_ | 592 #endif // #ifndef CHROME_VIEWS_CONTAINER_WIN_H_ |
| 597 | 593 |
| OLD | NEW |