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

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

Issue 273423004: Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 | Annotate | Revision Log
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 <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 virtual WebUI* CreateWebUI(const GURL& url) = 0; 215 virtual WebUI* CreateWebUI(const GURL& url) = 0;
216 216
217 // Returns the committed WebUI if one exists, otherwise the pending one. 217 // Returns the committed WebUI if one exists, otherwise the pending one.
218 virtual WebUI* GetWebUI() const = 0; 218 virtual WebUI* GetWebUI() const = 0;
219 virtual WebUI* GetCommittedWebUI() const = 0; 219 virtual WebUI* GetCommittedWebUI() const = 0;
220 220
221 // Allows overriding the user agent used for NavigationEntries it owns. 221 // Allows overriding the user agent used for NavigationEntries it owns.
222 virtual void SetUserAgentOverride(const std::string& override) = 0; 222 virtual void SetUserAgentOverride(const std::string& override) = 0;
223 virtual const std::string& GetUserAgentOverride() const = 0; 223 virtual const std::string& GetUserAgentOverride() const = 0;
224 224
225 // Enable the accessibility tree for this WebContents in the renderer,
226 // but don't enable creating a native accessibility tree on the browser
227 // side.
228 virtual void EnableTreeOnlyAccessibilityMode() = 0;
229
230 // Returns true only if "tree only" accessibility mode is on.
231 virtual bool IsTreeOnlyAccessibilityModeForTesting() const = 0;
232
233 // Returns true only if complete accessibility mode is on, meaning there's
234 // both renderer accessibility, and a native browser accessibility tree.
235 virtual bool IsFullAccessibilityModeForTesting() const = 0;
236
225 #if defined(OS_WIN) 237 #if defined(OS_WIN)
226 virtual void SetParentNativeViewAccessible( 238 virtual void SetParentNativeViewAccessible(
227 gfx::NativeViewAccessible accessible_parent) = 0; 239 gfx::NativeViewAccessible accessible_parent) = 0;
228 #endif 240 #endif
229 241
230 // Tab navigation state ------------------------------------------------------ 242 // Tab navigation state ------------------------------------------------------
231 243
232 // Returns the current navigation properties, which if a navigation is 244 // Returns the current navigation properties, which if a navigation is
233 // pending may be provisional (e.g., the navigation could result in a 245 // pending may be provisional (e.g., the navigation could result in a
234 // download, in which case the URL would revert to what it was previously). 246 // download, in which case the URL would revert to what it was previously).
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 601
590 private: 602 private:
591 // This interface should only be implemented inside content. 603 // This interface should only be implemented inside content.
592 friend class WebContentsImpl; 604 friend class WebContentsImpl;
593 WebContents() {} 605 WebContents() {}
594 }; 606 };
595 607
596 } // namespace content 608 } // namespace content
597 609
598 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 610 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698