OLD | NEW |
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 Loading... |
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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 | 599 |
588 private: | 600 private: |
589 // This interface should only be implemented inside content. | 601 // This interface should only be implemented inside content. |
590 friend class WebContentsImpl; | 602 friend class WebContentsImpl; |
591 WebContents() {} | 603 WebContents() {} |
592 }; | 604 }; |
593 | 605 |
594 } // namespace content | 606 } // namespace content |
595 | 607 |
596 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 608 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |