summaryrefslogtreecommitdiffstats
path: root/chrome/views/hwnd_view_container.h
diff options
context:
space:
mode:
authorbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-05 17:02:47 +0000
committerbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-05 17:02:47 +0000
commit44fbeda9a35f7175dbe07be8dc6cdceb12a47059 (patch)
tree5d1355ce288e8ad0e53f9a848f869fb9f24f7935 /chrome/views/hwnd_view_container.h
parente1109c6bb01438970e99d221cab79982ad273440 (diff)
downloadchromium_src-44fbeda9a35f7175dbe07be8dc6cdceb12a47059.zip
chromium_src-44fbeda9a35f7175dbe07be8dc6cdceb12a47059.tar.gz
chromium_src-44fbeda9a35f7175dbe07be8dc6cdceb12a47059.tar.bz2
Copy WM_GETOBJECT handler impl from XPFrame to HWNDViewContainer. This will be used for the new frames.
Also provide virtual stub handlers for WM_ENDSESSION and WM_POWERBROADCAST B=1031854 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@378 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/hwnd_view_container.h')
-rw-r--r--chrome/views/hwnd_view_container.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/chrome/views/hwnd_view_container.h b/chrome/views/hwnd_view_container.h
index c9ceb12..c420e42 100644
--- a/chrome/views/hwnd_view_container.h
+++ b/chrome/views/hwnd_view_container.h
@@ -178,6 +178,9 @@ class HWNDViewContainer : public ViewContainer,
// Reflected message handler
MESSAGE_HANDLER_EX(kReflectedMessage, OnReflectedMessage)
+
+ // Non-atlcrack.h handlers
+ MESSAGE_HANDLER_EX(WM_GETOBJECT, OnGetObject)
// This list is in _ALPHABETICAL_ order! OR I WILL HURT YOU.
MSG_WM_ACTIVATE(OnActivate)
@@ -188,6 +191,7 @@ class HWNDViewContainer : public ViewContainer,
MSG_WM_CREATE(OnCreate)
MSG_WM_DESTROY(OnDestroy)
MSG_WM_ERASEBKGND(OnEraseBkgnd)
+ MSG_WM_ENDSESSION(OnEndSession)
MSG_WM_GETMINMAXINFO(OnGetMinMaxInfo)
MSG_WM_HSCROLL(OnHScroll)
MSG_WM_INITMENU(OnInitMenu)
@@ -217,6 +221,7 @@ class HWNDViewContainer : public ViewContainer,
MSG_WM_NCRBUTTONUP(OnNCRButtonUp)
MSG_WM_NOTIFY(OnNotify)
MSG_WM_PAINT(OnPaint)
+ MSG_WM_POWERBROADCAST(OnPowerBroadcast)
MSG_WM_RBUTTONDBLCLK(OnRButtonDblClk)
MSG_WM_RBUTTONDOWN(OnRButtonDown)
MSG_WM_RBUTTONUP(OnRButtonUp)
@@ -338,8 +343,10 @@ class HWNDViewContainer : public ViewContainer,
// WARNING: If you override this be sure and invoke super, otherwise we'll
// leak a few things.
virtual void OnDestroy();
+ virtual void OnEndSession(BOOL ending, UINT logoff) { SetMsgHandled(FALSE); }
virtual LRESULT OnEraseBkgnd(HDC dc);
virtual void OnGetMinMaxInfo(LPMINMAXINFO mm_info) { }
+ virtual LRESULT OnGetObject(UINT uMsg, WPARAM w_param, LPARAM l_param);
virtual void OnHScroll(int scroll_type, short position, HWND scrollbar) {
SetMsgHandled(FALSE);
}
@@ -371,6 +378,10 @@ class HWNDViewContainer : public ViewContainer,
virtual void OnNCRButtonUp(UINT flags, const CPoint& point);
virtual LRESULT OnNotify(int w_param, NMHDR* l_param);
virtual void OnPaint(HDC dc);
+ virtual LRESULT OnPowerBroadcast(DWORD power_event, DWORD data) {
+ SetMsgHandled(FALSE);
+ return 0;
+ }
virtual void OnRButtonDblClk(UINT flags, const CPoint& point);
virtual void OnRButtonDown(UINT flags, const CPoint& point);
virtual void OnRButtonUp(UINT flags, const CPoint& point);
@@ -517,10 +528,13 @@ class HWNDViewContainer : public ViewContainer,
// If true, the last event was a mouse move event.
bool last_mouse_event_was_move_;
- // Coordinates of the last mouse move event, in terms of the screen.
+ // Coordinates of the last mouse move event, in screen coordinates.
int last_mouse_move_x_;
int last_mouse_move_y_;
+ // Instance of accessibility information and handling for MSAA root
+ CComPtr<IAccessible> accessibility_root_;
+
// Our hwnd.
HWND hwnd_;
};