| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 // with GetPageRect. | 345 // with GetPageRect. |
| 346 // Returns the number of printed pages computed. | 346 // Returns the number of printed pages computed. |
| 347 virtual int ComputePageRects(const gfx::Size& page_size_px) = 0; | 347 virtual int ComputePageRects(const gfx::Size& page_size_px) = 0; |
| 348 | 348 |
| 349 // Retrieves the paper page's view of the web page. | 349 // Retrieves the paper page's view of the web page. |
| 350 virtual void GetPageRect(int page, gfx::Rect* page_size) const = 0; | 350 virtual void GetPageRect(int page, gfx::Rect* page_size) const = 0; |
| 351 | 351 |
| 352 // Prints one page. |page| is 0-based. | 352 // Prints one page. |page| is 0-based. |
| 353 virtual bool SpoolPage(int page, gfx::PlatformCanvas* canvas) = 0; | 353 virtual bool SpoolPage(int page, gfx::PlatformCanvas* canvas) = 0; |
| 354 | 354 |
| 355 // Does this frame have an onunload or unbeforeunload event listener? | |
| 356 virtual bool HasUnloadListener() = 0; | |
| 357 | |
| 358 // Is this frame reloading with allowing stale data? This will be true when | 355 // Is this frame reloading with allowing stale data? This will be true when |
| 359 // the encoding of the page is changed and it needs to be re-interpreted, | 356 // the encoding of the page is changed and it needs to be re-interpreted, |
| 360 // but no additional loads should occur. | 357 // but no additional loads should occur. |
| 361 virtual bool IsReloadAllowingStaleData() const = 0; | 358 virtual bool IsReloadAllowingStaleData() const = 0; |
| 362 | 359 |
| 363 // Only for test_shell | 360 // Only for test_shell |
| 364 virtual int PendingFrameUnloadEventCount() const = 0; | 361 virtual int PendingFrameUnloadEventCount() const = 0; |
| 365 | 362 |
| 366 private: | 363 private: |
| 367 DISALLOW_COPY_AND_ASSIGN(WebFrame); | 364 DISALLOW_COPY_AND_ASSIGN(WebFrame); |
| 368 }; | 365 }; |
| 369 | 366 |
| 370 #endif // WEBKIT_GLUE_WEBFRAME_H_ | 367 #endif // WEBKIT_GLUE_WEBFRAME_H_ |
| OLD | NEW |