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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
233 | 233 |
234 // Allows overriding the user agent used for NavigationEntries it owns. | 234 // Allows overriding the user agent used for NavigationEntries it owns. |
235 virtual void SetUserAgentOverride(const std::string& override) = 0; | 235 virtual void SetUserAgentOverride(const std::string& override) = 0; |
236 virtual const std::string& GetUserAgentOverride() const = 0; | 236 virtual const std::string& GetUserAgentOverride() const = 0; |
237 | 237 |
238 #if defined(OS_WIN) | 238 #if defined(OS_WIN) |
239 virtual void SetParentNativeViewAccessible( | 239 virtual void SetParentNativeViewAccessible( |
240 gfx::NativeViewAccessible accessible_parent) = 0; | 240 gfx::NativeViewAccessible accessible_parent) = 0; |
241 #endif | 241 #endif |
242 | 242 |
243 virtual void SetRendererAccessibilityMode(bool on) = 0; | |
David Tseng
2014/01/27 22:16:06
Why not expose this method inside of BrowserAccess
aboxhall
2014/01/28 00:18:42
I guess we could, although obviously that wouldn't
David Tseng
2014/01/28 00:48:45
I think we'll need both. BrowserAccessibilityState
aboxhall
2014/01/28 17:48:26
On second thoughts, I might take this out for now
| |
244 | |
243 // Tab navigation state ------------------------------------------------------ | 245 // Tab navigation state ------------------------------------------------------ |
244 | 246 |
245 // Returns the current navigation properties, which if a navigation is | 247 // Returns the current navigation properties, which if a navigation is |
246 // pending may be provisional (e.g., the navigation could result in a | 248 // pending may be provisional (e.g., the navigation could result in a |
247 // download, in which case the URL would revert to what it was previously). | 249 // download, in which case the URL would revert to what it was previously). |
248 virtual const base::string16& GetTitle() const = 0; | 250 virtual const base::string16& GetTitle() const = 0; |
249 | 251 |
250 // The max page ID for any page that the current SiteInstance has loaded in | 252 // The max page ID for any page that the current SiteInstance has loaded in |
251 // this WebContents. Page IDs are specific to a given SiteInstance and | 253 // this WebContents. Page IDs are specific to a given SiteInstance and |
252 // WebContents, corresponding to a specific RenderView in the renderer. | 254 // WebContents, corresponding to a specific RenderView in the renderer. |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
508 | 510 |
509 private: | 511 private: |
510 // This interface should only be implemented inside content. | 512 // This interface should only be implemented inside content. |
511 friend class WebContentsImpl; | 513 friend class WebContentsImpl; |
512 WebContents() {} | 514 WebContents() {} |
513 }; | 515 }; |
514 | 516 |
515 } // namespace content | 517 } // namespace content |
516 | 518 |
517 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 519 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |