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

Side by Side Diff: chrome/browser/render_widget_host_hwnd.h

Issue 4057: Adds MSAA/IAccessible exposure of web content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 months 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) 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_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__ 5 #ifndef CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__
6 #define CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__ 6 #define CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlcrack.h> 10 #include <atlcrack.h>
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 MESSAGE_HANDLER(WM_SYSKEYUP, OnKeyEvent) 100 MESSAGE_HANDLER(WM_SYSKEYUP, OnKeyEvent)
101 MESSAGE_HANDLER(WM_KEYDOWN, OnKeyEvent) 101 MESSAGE_HANDLER(WM_KEYDOWN, OnKeyEvent)
102 MESSAGE_HANDLER(WM_KEYUP, OnKeyEvent) 102 MESSAGE_HANDLER(WM_KEYUP, OnKeyEvent)
103 MESSAGE_HANDLER(WM_MOUSEWHEEL, OnWheelEvent) 103 MESSAGE_HANDLER(WM_MOUSEWHEEL, OnWheelEvent)
104 MESSAGE_HANDLER(WM_HSCROLL, OnWheelEvent) 104 MESSAGE_HANDLER(WM_HSCROLL, OnWheelEvent)
105 MESSAGE_HANDLER(WM_VSCROLL, OnWheelEvent) 105 MESSAGE_HANDLER(WM_VSCROLL, OnWheelEvent)
106 MESSAGE_HANDLER(WM_CHAR, OnKeyEvent) 106 MESSAGE_HANDLER(WM_CHAR, OnKeyEvent)
107 MESSAGE_HANDLER(WM_SYSCHAR, OnKeyEvent) 107 MESSAGE_HANDLER(WM_SYSCHAR, OnKeyEvent)
108 MESSAGE_HANDLER(WM_IME_CHAR, OnKeyEvent) 108 MESSAGE_HANDLER(WM_IME_CHAR, OnKeyEvent)
109 MESSAGE_HANDLER(WM_MOUSEACTIVATE, OnMouseActivate) 109 MESSAGE_HANDLER(WM_MOUSEACTIVATE, OnMouseActivate)
110 MESSAGE_HANDLER(WM_GETOBJECT, OnGetObject)
110 END_MSG_MAP() 111 END_MSG_MAP()
111 112
112 // Overridden from RenderWidgetHostView: 113 // Overridden from RenderWidgetHostView:
113 virtual void DidBecomeSelected(); 114 virtual void DidBecomeSelected();
114 virtual void WasHidden(); 115 virtual void WasHidden();
115 virtual void SetSize(const gfx::Size& size); 116 virtual void SetSize(const gfx::Size& size);
116 virtual HWND GetPluginHWND(); 117 virtual HWND GetPluginHWND();
117 virtual void ForwardMouseEventToRenderer(UINT message, 118 virtual void ForwardMouseEventToRenderer(UINT message,
118 WPARAM wparam, 119 WPARAM wparam,
119 LPARAM lparam); 120 LPARAM lparam);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 158 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
158 LRESULT OnImeEndComposition( 159 LRESULT OnImeEndComposition(
159 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 160 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
160 LRESULT OnMouseEvent( 161 LRESULT OnMouseEvent(
161 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 162 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
162 LRESULT OnKeyEvent( 163 LRESULT OnKeyEvent(
163 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 164 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
164 LRESULT OnWheelEvent( 165 LRESULT OnWheelEvent(
165 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 166 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
166 LRESULT OnMouseActivate(UINT, WPARAM, LPARAM, BOOL& handled); 167 LRESULT OnMouseActivate(UINT, WPARAM, LPARAM, BOOL& handled);
168 // Handle MSAA requests for accessibility information.
169 LRESULT OnGetObject(UINT message, WPARAM wparam, LPARAM lparam,
170 BOOL& handled);
167 // Handle vertical scrolling 171 // Handle vertical scrolling
168 LRESULT OnVScroll(int code, short position, HWND scrollbar_control); 172 LRESULT OnVScroll(int code, short position, HWND scrollbar_control);
169 // Handle horizontal scrolling 173 // Handle horizontal scrolling
170 LRESULT OnHScroll(int code, short position, HWND scrollbar_control); 174 LRESULT OnHScroll(int code, short position, HWND scrollbar_control);
171 175
172 void OnFinalMessage(HWND window); 176 void OnFinalMessage(HWND window);
173 177
174 private: 178 private:
175 // Tells Windows that we want to hear about mouse exit messages. 179 // Tells Windows that we want to hear about mouse exit messages.
176 void TrackMouseLeave(bool start_tracking); 180 void TrackMouseLeave(bool start_tracking);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 bool tooltip_showing_; 243 bool tooltip_showing_;
240 244
241 // Factory used to safely scope delayed calls to ShutdownHost(). 245 // Factory used to safely scope delayed calls to ShutdownHost().
242 ScopedRunnableMethodFactory<RenderWidgetHostHWND> shutdown_factory_; 246 ScopedRunnableMethodFactory<RenderWidgetHostHWND> shutdown_factory_;
243 247
244 // Our parent HWND. We keep a reference to it as we SetParent(NULL) when 248 // Our parent HWND. We keep a reference to it as we SetParent(NULL) when
245 // hidden to prevent getting messages (Paint, Resize...), and we reattach 249 // hidden to prevent getting messages (Paint, Resize...), and we reattach
246 // when shown again. 250 // when shown again.
247 HWND parent_hwnd_; 251 HWND parent_hwnd_;
248 252
253 // Instance of accessibility information for the root of the MSAA
254 // tree representation of the WebKit render tree.
255 CComPtr<IAccessible> browser_accessibility_root_;
256
249 // The time at which this view started displaying white pixels as a result of 257 // The time at which this view started displaying white pixels as a result of
250 // not having anything to paint (empty backing store from renderer). This 258 // not having anything to paint (empty backing store from renderer). This
251 // value returns true for is_null() if we are not recording whiteout times. 259 // value returns true for is_null() if we are not recording whiteout times.
252 TimeTicks whiteout_start_time_; 260 TimeTicks whiteout_start_time_;
253 261
254 DISALLOW_EVIL_CONSTRUCTORS(RenderWidgetHostHWND); 262 DISALLOW_EVIL_CONSTRUCTORS(RenderWidgetHostHWND);
255 }; 263 };
256 264
257 #endif // #ifndef CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__ 265 #endif // #ifndef CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__
258 266
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698