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 | |
237 #if defined(OS_WIN) | 225 #if defined(OS_WIN) |
238 virtual void SetParentNativeViewAccessible( | 226 virtual void SetParentNativeViewAccessible( |
239 gfx::NativeViewAccessible accessible_parent) = 0; | 227 gfx::NativeViewAccessible accessible_parent) = 0; |
240 #endif | 228 #endif |
241 | 229 |
242 // Tab navigation state ------------------------------------------------------ | 230 // Tab navigation state ------------------------------------------------------ |
243 | 231 |
244 // Returns the current navigation properties, which if a navigation is | 232 // Returns the current navigation properties, which if a navigation is |
245 // pending may be provisional (e.g., the navigation could result in a | 233 // pending may be provisional (e.g., the navigation could result in a |
246 // download, in which case the URL would revert to what it was previously). | 234 // 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... |
599 | 587 |
600 private: | 588 private: |
601 // This interface should only be implemented inside content. | 589 // This interface should only be implemented inside content. |
602 friend class WebContentsImpl; | 590 friend class WebContentsImpl; |
603 WebContents() {} | 591 WebContents() {} |
604 }; | 592 }; |
605 | 593 |
606 } // namespace content | 594 } // namespace content |
607 | 595 |
608 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 596 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |