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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 virtual WebUI* CreateWebUI(const GURL& url) = 0; | 219 virtual WebUI* CreateWebUI(const GURL& url) = 0; |
220 | 220 |
221 // Returns the committed WebUI if one exists, otherwise the pending one. | 221 // Returns the committed WebUI if one exists, otherwise the pending one. |
222 virtual WebUI* GetWebUI() const = 0; | 222 virtual WebUI* GetWebUI() const = 0; |
223 virtual WebUI* GetCommittedWebUI() const = 0; | 223 virtual WebUI* GetCommittedWebUI() const = 0; |
224 | 224 |
225 // Allows overriding the user agent used for NavigationEntries it owns. | 225 // Allows overriding the user agent used for NavigationEntries it owns. |
226 virtual void SetUserAgentOverride(const std::string& override) = 0; | 226 virtual void SetUserAgentOverride(const std::string& override) = 0; |
227 virtual const std::string& GetUserAgentOverride() const = 0; | 227 virtual const std::string& GetUserAgentOverride() const = 0; |
228 | 228 |
| 229 // Enable the accessibility tree for this WebContents in the renderer, |
| 230 // but don't enable creating a native accessibility tree on the browser |
| 231 // side. |
| 232 virtual void EnableTreeOnlyAccessibilityMode() = 0; |
| 233 |
| 234 // Returns true only if "tree only" accessibility mode is on. |
| 235 virtual bool IsTreeOnlyAccessibilityModeForTesting() const = 0; |
| 236 |
| 237 // Returns true only if complete accessibility mode is on, meaning there's |
| 238 // both renderer accessibility, and a native browser accessibility tree. |
| 239 virtual bool IsFullAccessibilityModeForTesting() const = 0; |
| 240 |
229 #if defined(OS_WIN) | 241 #if defined(OS_WIN) |
230 virtual void SetParentNativeViewAccessible( | 242 virtual void SetParentNativeViewAccessible( |
231 gfx::NativeViewAccessible accessible_parent) = 0; | 243 gfx::NativeViewAccessible accessible_parent) = 0; |
232 #endif | 244 #endif |
233 | 245 |
234 // Tab navigation state ------------------------------------------------------ | 246 // Tab navigation state ------------------------------------------------------ |
235 | 247 |
236 // Returns the current navigation properties, which if a navigation is | 248 // Returns the current navigation properties, which if a navigation is |
237 // pending may be provisional (e.g., the navigation could result in a | 249 // pending may be provisional (e.g., the navigation could result in a |
238 // download, in which case the URL would revert to what it was previously). | 250 // download, in which case the URL would revert to what it was previously). |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 | 619 |
608 private: | 620 private: |
609 // This interface should only be implemented inside content. | 621 // This interface should only be implemented inside content. |
610 friend class WebContentsImpl; | 622 friend class WebContentsImpl; |
611 WebContents() {} | 623 WebContents() {} |
612 }; | 624 }; |
613 | 625 |
614 } // namespace content | 626 } // namespace content |
615 | 627 |
616 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 628 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |