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

Side by Side Diff: content/public/browser/web_contents.h

Issue 2558933002: Add more fine-grained accessibility modes. (Closed)
Patch Set: Rename constants Created 4 years 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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 const std::string& frame_name) = 0; 299 const std::string& frame_name) = 0;
300 300
301 // Returns the committed WebUI if one exists, otherwise the pending one. 301 // Returns the committed WebUI if one exists, otherwise the pending one.
302 virtual WebUI* GetWebUI() const = 0; 302 virtual WebUI* GetWebUI() const = 0;
303 virtual WebUI* GetCommittedWebUI() const = 0; 303 virtual WebUI* GetCommittedWebUI() const = 0;
304 304
305 // Allows overriding the user agent used for NavigationEntries it owns. 305 // Allows overriding the user agent used for NavigationEntries it owns.
306 virtual void SetUserAgentOverride(const std::string& override) = 0; 306 virtual void SetUserAgentOverride(const std::string& override) = 0;
307 virtual const std::string& GetUserAgentOverride() const = 0; 307 virtual const std::string& GetUserAgentOverride() const = 0;
308 308
309 // Enable the accessibility tree for this WebContents in the renderer, 309 // Set the accessibility mode so that accessibility events are forwarded
310 // but don't enable creating a native accessibility tree on the browser 310 // to each WebContentsObserver.
311 // side. 311 virtual void EnableWebContentsOnlyAccessibilityMode();
312 virtual void EnableTreeOnlyAccessibilityMode() = 0;
313 312
314 // Returns true only if "tree only" accessibility mode is on. 313 // Returns true only if the WebContentsObserver accessibility mode is
315 virtual bool IsTreeOnlyAccessibilityModeForTesting() const = 0; 314 // enabled.
315 virtual bool IsWebContentsOnlyAccessibilityModeForTesting() const = 0;
316 316
317 // Returns true only if complete accessibility mode is on, meaning there's 317 // Returns true only if complete accessibility mode is on, meaning there's
318 // both renderer accessibility, and a native browser accessibility tree. 318 // both renderer accessibility, and a native browser accessibility tree.
319 virtual bool IsFullAccessibilityModeForTesting() const = 0; 319 virtual bool IsFullAccessibilityModeForTesting() const = 0;
320 320
321 virtual const PageImportanceSignals& GetPageImportanceSignals() const = 0; 321 virtual const PageImportanceSignals& GetPageImportanceSignals() const = 0;
322 322
323 // Tab navigation state ------------------------------------------------------ 323 // Tab navigation state ------------------------------------------------------
324 324
325 // Returns the current navigation properties, which if a navigation is 325 // Returns the current navigation properties, which if a navigation is
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 769
770 private: 770 private:
771 // This interface should only be implemented inside content. 771 // This interface should only be implemented inside content.
772 friend class WebContentsImpl; 772 friend class WebContentsImpl;
773 WebContents() {} 773 WebContents() {}
774 }; 774 };
775 775
776 } // namespace content 776 } // namespace content
777 777
778 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 778 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698