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

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

Issue 2558933002: Add more fine-grained accessibility modes. (Closed)
Patch Set: Reformat enums as uppercase 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 const std::string& frame_name) = 0; 295 const std::string& frame_name) = 0;
296 296
297 // Returns the committed WebUI if one exists, otherwise the pending one. 297 // Returns the committed WebUI if one exists, otherwise the pending one.
298 virtual WebUI* GetWebUI() const = 0; 298 virtual WebUI* GetWebUI() const = 0;
299 virtual WebUI* GetCommittedWebUI() const = 0; 299 virtual WebUI* GetCommittedWebUI() const = 0;
300 300
301 // Allows overriding the user agent used for NavigationEntries it owns. 301 // Allows overriding the user agent used for NavigationEntries it owns.
302 virtual void SetUserAgentOverride(const std::string& override) = 0; 302 virtual void SetUserAgentOverride(const std::string& override) = 0;
303 virtual const std::string& GetUserAgentOverride() const = 0; 303 virtual const std::string& GetUserAgentOverride() const = 0;
304 304
305 // Enable the accessibility tree for this WebContents in the renderer, 305 // Set the accessibility mode so that accessibility events are forwarded
306 // but don't enable creating a native accessibility tree on the browser 306 // to each WebContentsObserver.
307 // side. 307 virtual void EnableWebContentsOnlyAccessibilityMode() = 0;
308 virtual void EnableTreeOnlyAccessibilityMode() = 0;
309 308
310 // Returns true only if "tree only" accessibility mode is on. 309 // Returns true only if the WebContentsObserver accessibility mode is
311 virtual bool IsTreeOnlyAccessibilityModeForTesting() const = 0; 310 // enabled.
311 virtual bool IsWebContentsOnlyAccessibilityModeForTesting() const = 0;
312 312
313 // Returns true only if complete accessibility mode is on, meaning there's 313 // Returns true only if complete accessibility mode is on, meaning there's
314 // both renderer accessibility, and a native browser accessibility tree. 314 // both renderer accessibility, and a native browser accessibility tree.
315 virtual bool IsFullAccessibilityModeForTesting() const = 0; 315 virtual bool IsFullAccessibilityModeForTesting() const = 0;
316 316
317 virtual const PageImportanceSignals& GetPageImportanceSignals() const = 0; 317 virtual const PageImportanceSignals& GetPageImportanceSignals() const = 0;
318 318
319 // Tab navigation state ------------------------------------------------------ 319 // Tab navigation state ------------------------------------------------------
320 320
321 // Returns the current navigation properties, which if a navigation is 321 // Returns the current navigation properties, which if a navigation is
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 765
766 private: 766 private:
767 // This interface should only be implemented inside content. 767 // This interface should only be implemented inside content.
768 friend class WebContentsImpl; 768 friend class WebContentsImpl;
769 WebContents() {} 769 WebContents() {}
770 }; 770 };
771 771
772 } // namespace content 772 } // namespace content
773 773
774 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 774 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698