Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1272)

Side by Side Diff: webkit/glue/webframe.h

Issue 9746: Change old code from "unloadListnerChanged" model to new WebKit EnableSuddenT... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/webframe_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/webframe_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698