| OLD | NEW |
| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 const MouseEventCallback& callback) OVERRIDE; | 176 const MouseEventCallback& callback) OVERRIDE; |
| 177 virtual void RemoveMouseEventCallback( | 177 virtual void RemoveMouseEventCallback( |
| 178 const MouseEventCallback& callback) OVERRIDE; | 178 const MouseEventCallback& callback) OVERRIDE; |
| 179 virtual void GetWebScreenInfo(blink::WebScreenInfo* result) OVERRIDE; | 179 virtual void GetWebScreenInfo(blink::WebScreenInfo* result) OVERRIDE; |
| 180 virtual void GetSnapshotFromRenderer( | 180 virtual void GetSnapshotFromRenderer( |
| 181 const gfx::Rect& src_subrect, | 181 const gfx::Rect& src_subrect, |
| 182 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; | 182 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; |
| 183 | 183 |
| 184 virtual SkBitmap::Config PreferredReadbackFormat() OVERRIDE; | 184 virtual SkBitmap::Config PreferredReadbackFormat() OVERRIDE; |
| 185 | 185 |
| 186 virtual void AccessibilityDoDefaultAction(int object_id) OVERRIDE; |
| 187 virtual void AccessibilitySetFocus(int object_id) OVERRIDE; |
| 188 virtual void AccessibilityScrollToMakeVisible( |
| 189 int acc_obj_id, gfx::Rect subfocus) OVERRIDE; |
| 190 virtual void AccessibilityScrollToPoint( |
| 191 int acc_obj_id, gfx::Point point) OVERRIDE; |
| 192 virtual void AccessibilitySetTextSelection( |
| 193 int acc_obj_id, int start_offset, int end_offset) OVERRIDE; |
| 194 |
| 186 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const; | 195 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const; |
| 187 | 196 |
| 188 // Notification that the screen info has changed. | 197 // Notification that the screen info has changed. |
| 189 void NotifyScreenInfoChanged(); | 198 void NotifyScreenInfoChanged(); |
| 190 | 199 |
| 191 // Invalidates the cached screen info so that next resize request | 200 // Invalidates the cached screen info so that next resize request |
| 192 // will carry the up to date screen info. Unlike | 201 // will carry the up to date screen info. Unlike |
| 193 // |NotifyScreenInfoChanged|, this doesn't send a message to the renderer. | 202 // |NotifyScreenInfoChanged|, this doesn't send a message to the renderer. |
| 194 void InvalidateScreenInfo(); | 203 void InvalidateScreenInfo(); |
| 195 | 204 |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 // Removes the given accessibility mode from the current accessibility mode | 416 // Removes the given accessibility mode from the current accessibility mode |
| 408 // bitmap, managing the bits that are shared with other modes such that a | 417 // bitmap, managing the bits that are shared with other modes such that a |
| 409 // bit will only be turned off when all modes that depend on it have been | 418 // bit will only be turned off when all modes that depend on it have been |
| 410 // removed. | 419 // removed. |
| 411 void RemoveAccessibilityMode(AccessibilityMode mode); | 420 void RemoveAccessibilityMode(AccessibilityMode mode); |
| 412 | 421 |
| 413 // Resets the accessibility mode to the default setting in | 422 // Resets the accessibility mode to the default setting in |
| 414 // BrowserStateAccessibilityImpl. | 423 // BrowserStateAccessibilityImpl. |
| 415 void ResetAccessibilityMode(); | 424 void ResetAccessibilityMode(); |
| 416 | 425 |
| 417 // Relay a request from assistive technology to perform the default action | |
| 418 // on a given node. | |
| 419 void AccessibilityDoDefaultAction(int object_id); | |
| 420 | |
| 421 // Relay a request from assistive technology to set focus to a given node. | |
| 422 void AccessibilitySetFocus(int object_id); | |
| 423 | |
| 424 // Relay a request from assistive technology to make a given object | |
| 425 // visible by scrolling as many scrollable containers as necessary. | |
| 426 // In addition, if it's not possible to make the entire object visible, | |
| 427 // scroll so that the |subfocus| rect is visible at least. The subfocus | |
| 428 // rect is in local coordinates of the object itself. | |
| 429 void AccessibilityScrollToMakeVisible( | |
| 430 int acc_obj_id, gfx::Rect subfocus); | |
| 431 | |
| 432 // Relay a request from assistive technology to move a given object | |
| 433 // to a specific location, in the WebContents area coordinate space, i.e. | |
| 434 // (0, 0) is the top-left corner of the WebContents. | |
| 435 void AccessibilityScrollToPoint(int acc_obj_id, gfx::Point point); | |
| 436 | |
| 437 // Relay a request from assistive technology to set text selection. | |
| 438 void AccessibilitySetTextSelection( | |
| 439 int acc_obj_id, int start_offset, int end_offset); | |
| 440 | |
| 441 // Kill the renderer because we got a fatal accessibility error. | 426 // Kill the renderer because we got a fatal accessibility error. |
| 442 void FatalAccessibilityTreeError(); | 427 void FatalAccessibilityTreeError(); |
| 443 | 428 |
| 444 #if defined(OS_WIN) | 429 #if defined(OS_WIN) |
| 445 void SetParentNativeViewAccessible( | 430 void SetParentNativeViewAccessible( |
| 446 gfx::NativeViewAccessible accessible_parent); | 431 gfx::NativeViewAccessible accessible_parent); |
| 447 gfx::NativeViewAccessible GetParentNativeViewAccessible() const; | 432 gfx::NativeViewAccessible GetParentNativeViewAccessible() const; |
| 448 #endif | 433 #endif |
| 449 | 434 |
| 450 // Executes the edit command on the RenderView. | 435 // Executes the edit command on the RenderView. |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; | 933 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; |
| 949 | 934 |
| 950 int64 last_input_number_; | 935 int64 last_input_number_; |
| 951 | 936 |
| 952 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 937 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 953 }; | 938 }; |
| 954 | 939 |
| 955 } // namespace content | 940 } // namespace content |
| 956 | 941 |
| 957 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 942 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |