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

Side by Side Diff: Source/web/WebFrameImpl.h

Issue 28983004: Split the frame tree logic out of HistoryItem (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 bool m_findMatchRectsAreValid; 505 bool m_findMatchRectsAreValid;
506 506
507 // Contents size when find-in-page match rects were last computed for this 507 // Contents size when find-in-page match rects were last computed for this
508 // frame's cache. 508 // frame's cache.
509 WebCore::IntSize m_contentsSizeForCurrentFindMatchRects; 509 WebCore::IntSize m_contentsSizeForCurrentFindMatchRects;
510 510
511 // Valid between calls to BeginPrint() and EndPrint(). Containts the print 511 // Valid between calls to BeginPrint() and EndPrint(). Containts the print
512 // information. Is used by PrintPage(). 512 // information. Is used by PrintPage().
513 OwnPtr<ChromePrintContext> m_printContext; 513 OwnPtr<ChromePrintContext> m_printContext;
514 514
515 // Ensure we don't overwrite valid history data during same document loads
516 // from HistoryItems
517 bool m_inSameDocumentHistoryLoad;
518
519 // Stores the additional input events offset and scale when device metrics e mulation is enabled. 515 // Stores the additional input events offset and scale when device metrics e mulation is enabled.
520 WebCore::IntSize m_inputEventsOffsetForEmulation; 516 WebCore::IntSize m_inputEventsOffsetForEmulation;
521 float m_inputEventsScaleFactorForEmulation; 517 float m_inputEventsScaleFactorForEmulation;
522 }; 518 };
523 519
524 inline WebFrameImpl* toWebFrameImpl(WebFrame* webFrame) 520 inline WebFrameImpl* toWebFrameImpl(WebFrame* webFrame)
525 { 521 {
526 return static_cast<WebFrameImpl*>(webFrame); 522 return static_cast<WebFrameImpl*>(webFrame);
527 } 523 }
528 524
529 inline const WebFrameImpl* toWebFrameImpl(const WebFrame* webFrame) 525 inline const WebFrameImpl* toWebFrameImpl(const WebFrame* webFrame)
530 { 526 {
531 return static_cast<const WebFrameImpl*>(webFrame); 527 return static_cast<const WebFrameImpl*>(webFrame);
532 } 528 }
533 529
534 // This will catch anyone doing an unnecessary cast. 530 // This will catch anyone doing an unnecessary cast.
535 void toWebFrameImpl(const WebFrameImpl*); 531 void toWebFrameImpl(const WebFrameImpl*);
536 532
537 } // namespace blink 533 } // namespace blink
538 534
539 #endif 535 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698