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

Unified Diff: content/browser/renderer_host/legacy_render_widget_host_win.h

Issue 2781613003: Added a class acting as a fake caret for accessibility. (Closed)
Patch Set: Fixed compilation error due to rebase. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/legacy_render_widget_host_win.h
diff --git a/content/browser/renderer_host/legacy_render_widget_host_win.h b/content/browser/renderer_host/legacy_render_widget_host_win.h
index 398c633a69cca5fa2e6bf6398f6b0e4ad55510b6..91a02052432b235f8d5fe59cf65754cb08c81edd 100644
--- a/content/browser/renderer_host/legacy_render_widget_host_win.h
+++ b/content/browser/renderer_host/legacy_render_widget_host_win.h
@@ -24,6 +24,7 @@ class DirectManipulationHelper;
} // namespace gfx
namespace ui {
+class AXFakeCaretWin;
class WindowEventTarget;
}
@@ -120,6 +121,9 @@ class CONTENT_EXPORT LegacyRenderWidgetHostHWND
host_ = host;
}
+ // Changes the position of the fake caret.
+ void MoveCaretTo(const gfx::Rect& bounds);
+
protected:
void OnFinalMessage(HWND hwnd) override;
@@ -159,6 +163,9 @@ class CONTENT_EXPORT LegacyRenderWidgetHostHWND
RenderWidgetHostViewAura* host_;
+ // Some assistive software need to track the location of the caret.
+ std::unique_ptr<ui::AXFakeCaretWin> ax_fake_caret_;
+
// This class provides functionality to register the legacy window as a
// Direct Manipulation consumer. This allows us to support smooth scroll
// in Chrome on Windows 10.

Powered by Google App Engine
This is Rietveld 408576698