| 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 class WebContentsObserver; | 67 class WebContentsObserver; |
| 68 class WebContentsView; | 68 class WebContentsView; |
| 69 class WebContentsViewDelegate; | 69 class WebContentsViewDelegate; |
| 70 struct AXEventNotificationDetails; | 70 struct AXEventNotificationDetails; |
| 71 struct ColorSuggestion; | 71 struct ColorSuggestion; |
| 72 struct FaviconURL; | 72 struct FaviconURL; |
| 73 struct LoadNotificationDetails; | 73 struct LoadNotificationDetails; |
| 74 struct ResourceRedirectDetails; | 74 struct ResourceRedirectDetails; |
| 75 struct ResourceRequestDetails; | 75 struct ResourceRequestDetails; |
| 76 | 76 |
| 77 #if defined(OS_ANDROID) |
| 78 class WebContentsAndroid; |
| 79 #endif |
| 80 |
| 77 // Factory function for the implementations that content knows about. Takes | 81 // Factory function for the implementations that content knows about. Takes |
| 78 // ownership of |delegate|. | 82 // ownership of |delegate|. |
| 79 WebContentsView* CreateWebContentsView( | 83 WebContentsView* CreateWebContentsView( |
| 80 WebContentsImpl* web_contents, | 84 WebContentsImpl* web_contents, |
| 81 WebContentsViewDelegate* delegate, | 85 WebContentsViewDelegate* delegate, |
| 82 RenderViewHostDelegateView** render_view_host_delegate_view); | 86 RenderViewHostDelegateView** render_view_host_delegate_view); |
| 83 | 87 |
| 84 class CONTENT_EXPORT WebContentsImpl | 88 class CONTENT_EXPORT WebContentsImpl |
| 85 : public NON_EXPORTED_BASE(WebContents), | 89 : public NON_EXPORTED_BASE(WebContents), |
| 86 public NON_EXPORTED_BASE(RenderFrameHostDelegate), | 90 public NON_EXPORTED_BASE(RenderFrameHostDelegate), |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 const ImageDownloadCallback& callback) OVERRIDE; | 323 const ImageDownloadCallback& callback) OVERRIDE; |
| 320 virtual bool IsSubframe() const OVERRIDE; | 324 virtual bool IsSubframe() const OVERRIDE; |
| 321 virtual void Find(int request_id, | 325 virtual void Find(int request_id, |
| 322 const base::string16& search_text, | 326 const base::string16& search_text, |
| 323 const blink::WebFindOptions& options) OVERRIDE; | 327 const blink::WebFindOptions& options) OVERRIDE; |
| 324 virtual void StopFinding(StopFindAction action) OVERRIDE; | 328 virtual void StopFinding(StopFindAction action) OVERRIDE; |
| 325 virtual void InsertCSS(const std::string& css) OVERRIDE; | 329 virtual void InsertCSS(const std::string& css) OVERRIDE; |
| 326 #if defined(OS_ANDROID) | 330 #if defined(OS_ANDROID) |
| 327 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() | 331 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() |
| 328 OVERRIDE; | 332 OVERRIDE; |
| 333 virtual WebContentsAndroid* GetWebContentsAndroid() OVERRIDE; |
| 329 #elif defined(OS_MACOSX) | 334 #elif defined(OS_MACOSX) |
| 330 virtual void SetAllowOverlappingViews(bool overlapping) OVERRIDE; | 335 virtual void SetAllowOverlappingViews(bool overlapping) OVERRIDE; |
| 331 virtual bool GetAllowOverlappingViews() OVERRIDE; | 336 virtual bool GetAllowOverlappingViews() OVERRIDE; |
| 332 virtual void SetAllowOtherViews(bool allow) OVERRIDE; | 337 virtual void SetAllowOtherViews(bool allow) OVERRIDE; |
| 333 virtual bool GetAllowOtherViews() OVERRIDE; | 338 virtual bool GetAllowOtherViews() OVERRIDE; |
| 334 #endif | 339 #endif |
| 335 | 340 |
| 336 // Implementation of PageNavigator. | 341 // Implementation of PageNavigator. |
| 337 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; | 342 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; |
| 338 | 343 |
| (...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 // The accessibility mode for all frames. This is queried when each frame | 1192 // The accessibility mode for all frames. This is queried when each frame |
| 1188 // is created, and broadcast to all frames when it changes. | 1193 // is created, and broadcast to all frames when it changes. |
| 1189 AccessibilityMode accessibility_mode_; | 1194 AccessibilityMode accessibility_mode_; |
| 1190 | 1195 |
| 1191 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1196 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 1192 }; | 1197 }; |
| 1193 | 1198 |
| 1194 } // namespace content | 1199 } // namespace content |
| 1195 | 1200 |
| 1196 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1201 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |