Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_WEBFRAME_H_ | 5 #ifndef WEBKIT_GLUE_WEBFRAME_H_ |
| 6 #define WEBKIT_GLUE_WEBFRAME_H_ | 6 #define WEBKIT_GLUE_WEBFRAME_H_ |
| 7 | 7 |
| 8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 #include "skia/ext/bitmap_platform_device.h" | 10 #include "skia/ext/bitmap_platform_device.h" |
| 11 #include "skia/ext/platform_canvas.h" | 11 #include "skia/ext/platform_canvas.h" |
| 12 #include "webkit/glue/feed.h" | 12 #include "webkit/glue/feed.h" |
| 13 | 13 |
| 14 class WebAppCacheContext; | |
| 14 class WebDataSource; | 15 class WebDataSource; |
| 15 class WebError; | 16 class WebError; |
| 16 class WebRequest; | 17 class WebRequest; |
| 17 class WebView; | 18 class WebView; |
| 18 class WebTextInput; | 19 class WebTextInput; |
| 19 struct NPObject; | 20 struct NPObject; |
| 20 | 21 |
| 21 namespace gfx { | 22 namespace gfx { |
| 22 class Rect; | 23 class Rect; |
| 23 class Size; | 24 class Size; |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 373 // will succeed even if a child frame failed to load. | 374 // will succeed even if a child frame failed to load. |
| 374 virtual bool BeginPrint(const gfx::Size& page_size_px, | 375 virtual bool BeginPrint(const gfx::Size& page_size_px, |
| 375 int* page_count) = 0; | 376 int* page_count) = 0; |
| 376 | 377 |
| 377 // Prints one page. |page| is 0-based. | 378 // Prints one page. |page| is 0-based. |
| 378 // Returns the page shrinking factor calculated by webkit (usually between | 379 // Returns the page shrinking factor calculated by webkit (usually between |
| 379 // 1/1.25 and 1/2). Returns 0 if the page number is invalid or not in printing | 380 // 1/1.25 and 1/2). Returns 0 if the page number is invalid or not in printing |
| 380 // mode. | 381 // mode. |
| 381 virtual float PrintPage(int page, skia::PlatformCanvas* canvas) = 0; | 382 virtual float PrintPage(int page, skia::PlatformCanvas* canvas) = 0; |
| 382 | 383 |
| 384 // Initiates app cache selection for the context with the resource currently | |
|
darin (slow to review)
2009/04/13 18:39:00
nit: seems bad to wedge these app cache specific m
| |
| 385 // committed in the webframe. | |
| 386 virtual void SelectAppCacheWithoutManifest() = 0; | |
| 387 virtual void SelectAppCacheWithManifest(const GURL& manifest_url) = 0; | |
| 388 | |
| 389 // Returns a pointer to the WebAppCacheContext for this frame. | |
| 390 virtual WebAppCacheContext* GetAppCacheContext() const = 0; | |
| 391 | |
| 383 // Reformats the web frame for screen display. | 392 // Reformats the web frame for screen display. |
| 384 virtual void EndPrint() = 0; | 393 virtual void EndPrint() = 0; |
| 385 | 394 |
| 386 // Only for test_shell | 395 // Only for test_shell |
| 387 virtual int PendingFrameUnloadEventCount() const = 0; | 396 virtual int PendingFrameUnloadEventCount() const = 0; |
| 388 | 397 |
| 389 protected: | 398 protected: |
| 390 virtual ~WebFrame() {} | 399 virtual ~WebFrame() {} |
| 391 | 400 |
| 392 private: | 401 private: |
| 393 DISALLOW_COPY_AND_ASSIGN(WebFrame); | 402 DISALLOW_COPY_AND_ASSIGN(WebFrame); |
| 394 }; | 403 }; |
| 395 | 404 |
| 396 #endif // WEBKIT_GLUE_WEBFRAME_H_ | 405 #endif // WEBKIT_GLUE_WEBFRAME_H_ |
| OLD | NEW |