Chromium Code Reviews| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 class PageState; | 51 class PageState; | 
| 52 class RenderFrameHost; | 52 class RenderFrameHost; | 
| 53 class RenderProcessHost; | 53 class RenderProcessHost; | 
| 54 class RenderViewHost; | 54 class RenderViewHost; | 
| 55 class RenderWidgetHostView; | 55 class RenderWidgetHostView; | 
| 56 class SiteInstance; | 56 class SiteInstance; | 
| 57 class WebContentsDelegate; | 57 class WebContentsDelegate; | 
| 58 struct CustomContextMenuContext; | 58 struct CustomContextMenuContext; | 
| 59 struct DropData; | 59 struct DropData; | 
| 60 struct Manifest; | 60 struct Manifest; | 
| 61 struct PageImportanceSignals; | |
| 61 struct RendererPreferences; | 62 struct RendererPreferences; | 
| 62 | 63 | 
| 63 // WebContents is the core class in content/. A WebContents renders web content | 64 // WebContents is the core class in content/. A WebContents renders web content | 
| 64 // (usually HTML) in a rectangular area. | 65 // (usually HTML) in a rectangular area. | 
| 65 // | 66 // | 
| 66 // Instantiating one is simple: | 67 // Instantiating one is simple: | 
| 67 // scoped_ptr<content::WebContents> web_contents( | 68 // scoped_ptr<content::WebContents> web_contents( | 
| 68 // content::WebContents::Create( | 69 // content::WebContents::Create( | 
| 69 // content::WebContents::CreateParams(browser_context))); | 70 // content::WebContents::CreateParams(browser_context))); | 
| 70 // gfx::NativeView view = web_contents->GetNativeView(); | 71 // gfx::NativeView view = web_contents->GetNativeView(); | 
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 271 | 272 | 
| 272 // Returns true only if complete accessibility mode is on, meaning there's | 273 // Returns true only if complete accessibility mode is on, meaning there's | 
| 273 // both renderer accessibility, and a native browser accessibility tree. | 274 // both renderer accessibility, and a native browser accessibility tree. | 
| 274 virtual bool IsFullAccessibilityModeForTesting() const = 0; | 275 virtual bool IsFullAccessibilityModeForTesting() const = 0; | 
| 275 | 276 | 
| 276 #if defined(OS_WIN) | 277 #if defined(OS_WIN) | 
| 277 virtual void SetParentNativeViewAccessible( | 278 virtual void SetParentNativeViewAccessible( | 
| 278 gfx::NativeViewAccessible accessible_parent) = 0; | 279 gfx::NativeViewAccessible accessible_parent) = 0; | 
| 279 #endif | 280 #endif | 
| 280 | 281 | 
| 282 virtual const PageImportanceSignals& GetPageImportanceSignals() const = 0; | |
| 
 
noyau (Ping after 24h)
2015/09/28 15:36:10
Please add comments to methods in interfaces: We h
 
 | |
| 283 | |
| 281 // Tab navigation state ------------------------------------------------------ | 284 // Tab navigation state ------------------------------------------------------ | 
| 282 | 285 | 
| 283 // Returns the current navigation properties, which if a navigation is | 286 // Returns the current navigation properties, which if a navigation is | 
| 284 // pending may be provisional (e.g., the navigation could result in a | 287 // pending may be provisional (e.g., the navigation could result in a | 
| 285 // download, in which case the URL would revert to what it was previously). | 288 // download, in which case the URL would revert to what it was previously). | 
| 286 virtual const base::string16& GetTitle() const = 0; | 289 virtual const base::string16& GetTitle() const = 0; | 
| 287 | 290 | 
| 288 // The max page ID for any page that the current SiteInstance has loaded in | 291 // The max page ID for any page that the current SiteInstance has loaded in | 
| 289 // this WebContents. Page IDs are specific to a given SiteInstance and | 292 // this WebContents. Page IDs are specific to a given SiteInstance and | 
| 290 // WebContents, corresponding to a specific RenderView in the renderer. | 293 // WebContents, corresponding to a specific RenderView in the renderer. | 
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 691 | 694 | 
| 692 private: | 695 private: | 
| 693 // This interface should only be implemented inside content. | 696 // This interface should only be implemented inside content. | 
| 694 friend class WebContentsImpl; | 697 friend class WebContentsImpl; | 
| 695 WebContents() {} | 698 WebContents() {} | 
| 696 }; | 699 }; | 
| 697 | 700 | 
| 698 } // namespace content | 701 } // namespace content | 
| 699 | 702 | 
| 700 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 703 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 
| OLD | NEW |