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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 329053004: Fix race in BrowserAccessibilityManagerWin creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 virtual void AccessibilityScrollToPoint( 184 virtual void AccessibilityScrollToPoint(
185 int acc_obj_id, gfx::Point point) OVERRIDE; 185 int acc_obj_id, gfx::Point point) OVERRIDE;
186 virtual void AccessibilitySetTextSelection( 186 virtual void AccessibilitySetTextSelection(
187 int acc_obj_id, int start_offset, int end_offset) OVERRIDE; 187 int acc_obj_id, int start_offset, int end_offset) OVERRIDE;
188 virtual bool AccessibilityViewHasFocus() const OVERRIDE; 188 virtual bool AccessibilityViewHasFocus() const OVERRIDE;
189 virtual gfx::Rect AccessibilityGetViewBounds() const OVERRIDE; 189 virtual gfx::Rect AccessibilityGetViewBounds() const OVERRIDE;
190 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) 190 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds)
191 const OVERRIDE; 191 const OVERRIDE;
192 virtual void AccessibilityHitTest(const gfx::Point& point) OVERRIDE; 192 virtual void AccessibilityHitTest(const gfx::Point& point) OVERRIDE;
193 virtual void AccessibilityFatalError() OVERRIDE; 193 virtual void AccessibilityFatalError() OVERRIDE;
194 #if defined(OS_WIN)
195 virtual HWND GetAccessibleParentHWND() const OVERRIDE;
196 virtual IAccessible* GetParentIAccessible() const OVERRIDE;
197 #endif
194 198
195 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const; 199 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const;
196 200
197 // Notification that the screen info has changed. 201 // Notification that the screen info has changed.
198 void NotifyScreenInfoChanged(); 202 void NotifyScreenInfoChanged();
199 203
200 // Invalidates the cached screen info so that next resize request 204 // Invalidates the cached screen info so that next resize request
201 // will carry the up to date screen info. Unlike 205 // will carry the up to date screen info. Unlike
202 // |NotifyScreenInfoChanged|, this doesn't send a message to the renderer. 206 // |NotifyScreenInfoChanged|, this doesn't send a message to the renderer.
203 void InvalidateScreenInfo(); 207 void InvalidateScreenInfo();
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 // Removes the given accessibility mode from the current accessibility mode 402 // Removes the given accessibility mode from the current accessibility mode
399 // bitmap, managing the bits that are shared with other modes such that a 403 // bitmap, managing the bits that are shared with other modes such that a
400 // bit will only be turned off when all modes that depend on it have been 404 // bit will only be turned off when all modes that depend on it have been
401 // removed. 405 // removed.
402 void RemoveAccessibilityMode(AccessibilityMode mode); 406 void RemoveAccessibilityMode(AccessibilityMode mode);
403 407
404 // Resets the accessibility mode to the default setting in 408 // Resets the accessibility mode to the default setting in
405 // BrowserStateAccessibilityImpl. 409 // BrowserStateAccessibilityImpl.
406 void ResetAccessibilityMode(); 410 void ResetAccessibilityMode();
407 411
408 #if defined(OS_WIN)
409 void SetParentNativeViewAccessible(
410 gfx::NativeViewAccessible accessible_parent);
411 gfx::NativeViewAccessible GetParentNativeViewAccessible() const;
412 #endif
413
414 // Executes the edit command on the RenderView. 412 // Executes the edit command on the RenderView.
415 void ExecuteEditCommand(const std::string& command, 413 void ExecuteEditCommand(const std::string& command,
416 const std::string& value); 414 const std::string& value);
417 415
418 // Tells the renderer to scroll the currently focused node into rect only if 416 // Tells the renderer to scroll the currently focused node into rect only if
419 // the currently focused node is a Text node (textfield, text area or content 417 // the currently focused node is a Text node (textfield, text area or content
420 // editable divs). 418 // editable divs).
421 void ScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); 419 void ScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect);
422 420
423 // Requests the renderer to move the caret selection towards the point. 421 // Requests the renderer to move the caret selection towards the point.
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 #endif 859 #endif
862 860
863 int64 last_input_number_; 861 int64 last_input_number_;
864 862
865 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 863 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
866 }; 864 };
867 865
868 } // namespace content 866 } // namespace content
869 867
870 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 868 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698