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

Side by Side Diff: third_party/WebKit/public/web/WebDocument.h

Issue 1589623002: Keep track of accessibility focus across windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final suggestions Created 4 years, 10 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // Accessibility support. These methods should only be called on the 115 // Accessibility support. These methods should only be called on the
116 // top-level document, because one accessibility cache spans all of 116 // top-level document, because one accessibility cache spans all of
117 // the documents on the page. 117 // the documents on the page.
118 118
119 // Gets the accessibility object for this document. 119 // Gets the accessibility object for this document.
120 BLINK_EXPORT WebAXObject accessibilityObject() const; 120 BLINK_EXPORT WebAXObject accessibilityObject() const;
121 121
122 // Gets the accessibility object for an object on this page by ID. 122 // Gets the accessibility object for an object on this page by ID.
123 BLINK_EXPORT WebAXObject accessibilityObjectFromID(int axID) const; 123 BLINK_EXPORT WebAXObject accessibilityObjectFromID(int axID) const;
124
125 // Gets the accessibility object that has focus.
126 BLINK_EXPORT WebAXObject focusedAccessibilityObject() const;
127
124 // Inserts the given CSS source code as a stylesheet in the document. 128 // Inserts the given CSS source code as a stylesheet in the document.
125 BLINK_EXPORT void insertStyleSheet(const WebString& sourceCode); 129 BLINK_EXPORT void insertStyleSheet(const WebString& sourceCode);
126 130
127 // Arranges to call WebFrameClient::didMatchCSS(frame(), ...) when one of 131 // Arranges to call WebFrameClient::didMatchCSS(frame(), ...) when one of
128 // the selectors matches or stops matching an element in this document. 132 // the selectors matches or stops matching an element in this document.
129 // Each call to this method overrides any previous calls. 133 // Each call to this method overrides any previous calls.
130 BLINK_EXPORT void watchCSSSelectors(const WebVector<WebString>& selectors); 134 BLINK_EXPORT void watchCSSSelectors(const WebVector<WebString>& selectors);
131 135
132 BLINK_EXPORT WebVector<WebDraggableRegion> draggableRegions() const; 136 BLINK_EXPORT WebVector<WebDraggableRegion> draggableRegions() const;
133 137
134 BLINK_EXPORT v8::Local<v8::Value> registerEmbedderCustomElement(const WebStr ing& name, v8::Local<v8::Value> options, WebExceptionCode&); 138 BLINK_EXPORT v8::Local<v8::Value> registerEmbedderCustomElement(const WebStr ing& name, v8::Local<v8::Value> options, WebExceptionCode&);
135 139
136 BLINK_EXPORT WebURL manifestURL() const; 140 BLINK_EXPORT WebURL manifestURL() const;
137 BLINK_EXPORT bool manifestUseCredentials() const; 141 BLINK_EXPORT bool manifestUseCredentials() const;
138 BLINK_EXPORT WebDistillabilityFeatures distillabilityFeatures(); 142 BLINK_EXPORT WebDistillabilityFeatures distillabilityFeatures();
139 143
140 #if BLINK_IMPLEMENTATION 144 #if BLINK_IMPLEMENTATION
141 WebDocument(const PassRefPtrWillBeRawPtr<Document>&); 145 WebDocument(const PassRefPtrWillBeRawPtr<Document>&);
142 WebDocument& operator=(const PassRefPtrWillBeRawPtr<Document>&); 146 WebDocument& operator=(const PassRefPtrWillBeRawPtr<Document>&);
143 operator PassRefPtrWillBeRawPtr<Document>() const; 147 operator PassRefPtrWillBeRawPtr<Document>() const;
144 #endif 148 #endif
145 }; 149 };
146 150
147 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument); 151 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument);
148 152
149 } // namespace blink 153 } // namespace blink
150 154
151 #endif 155 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/resources/calendarPicker.js ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698