| 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 #if defined(OS_WIN) | |
| 230 virtual void SetParentNativeViewAccessible( | |
| 231 gfx::NativeViewAccessible accessible_parent) = 0; | |
| 232 #endif | |
| 233 | |
| 234 // Tab navigation state ------------------------------------------------------ | 229 // Tab navigation state ------------------------------------------------------ |
| 235 | 230 |
| 236 // Returns the current navigation properties, which if a navigation is | 231 // Returns the current navigation properties, which if a navigation is |
| 237 // pending may be provisional (e.g., the navigation could result in a | 232 // 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). | 233 // download, in which case the URL would revert to what it was previously). |
| 239 virtual const base::string16& GetTitle() const = 0; | 234 virtual const base::string16& GetTitle() const = 0; |
| 240 | 235 |
| 241 // The max page ID for any page that the current SiteInstance has loaded in | 236 // The max page ID for any page that the current SiteInstance has loaded in |
| 242 // this WebContents. Page IDs are specific to a given SiteInstance and | 237 // this WebContents. Page IDs are specific to a given SiteInstance and |
| 243 // WebContents, corresponding to a specific RenderView in the renderer. | 238 // WebContents, corresponding to a specific RenderView in the renderer. |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 | 592 |
| 598 private: | 593 private: |
| 599 // This interface should only be implemented inside content. | 594 // This interface should only be implemented inside content. |
| 600 friend class WebContentsImpl; | 595 friend class WebContentsImpl; |
| 601 WebContents() {} | 596 WebContents() {} |
| 602 }; | 597 }; |
| 603 | 598 |
| 604 } // namespace content | 599 } // namespace content |
| 605 | 600 |
| 606 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 601 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |