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

Side by Side Diff: Source/core/page/FrameView.h

Issue 15927026: Enabled using viewport on desktop browsers behind experimental flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WIP Created 7 years, 4 months 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
OLDNEW
1 /* 1 /*
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 RenderView* renderView() const { return m_frame ? m_frame->contentRenderer() : 0; } 79 RenderView* renderView() const { return m_frame ? m_frame->contentRenderer() : 0; }
80 80
81 int mapFromLayoutToCSSUnits(LayoutUnit); 81 int mapFromLayoutToCSSUnits(LayoutUnit);
82 LayoutUnit mapFromCSSToLayoutUnits(int); 82 LayoutUnit mapFromCSSToLayoutUnits(int);
83 83
84 LayoutUnit marginWidth() const { return m_margins.width(); } // -1 means def ault 84 LayoutUnit marginWidth() const { return m_margins.width(); } // -1 means def ault
85 LayoutUnit marginHeight() const { return m_margins.height(); } // -1 means d efault 85 LayoutUnit marginHeight() const { return m_margins.height(); } // -1 means d efault
86 void setMarginWidth(LayoutUnit); 86 void setMarginWidth(LayoutUnit);
87 void setMarginHeight(LayoutUnit); 87 void setMarginHeight(LayoutUnit);
88 88
89 virtual IntSize layoutSize(VisibleContentRectIncludesScrollbars = ExcludeScr ollbars) const;
90 void setLayoutSize(const IntSize&);
91
89 virtual void setCanHaveScrollbars(bool); 92 virtual void setCanHaveScrollbars(bool);
90 void updateCanHaveScrollbars(); 93 void updateCanHaveScrollbars();
91 94
92 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation); 95 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation);
93 96
94 virtual void setContentsSize(const IntSize&); 97 virtual void setContentsSize(const IntSize&);
95 98
96 void layout(bool allowSubtree = true); 99 void layout(bool allowSubtree = true);
97 bool didFirstLayout() const; 100 bool didFirstLayout() const;
98 void layoutTimerFired(Timer<FrameView>*); 101 void layoutTimerFired(Timer<FrameView>*);
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 unsigned m_nestedLayoutCount; 460 unsigned m_nestedLayoutCount;
458 Timer<FrameView> m_postLayoutTasksTimer; 461 Timer<FrameView> m_postLayoutTasksTimer;
459 bool m_firstLayoutCallbackPending; 462 bool m_firstLayoutCallbackPending;
460 463
461 bool m_firstLayout; 464 bool m_firstLayout;
462 bool m_isTransparent; 465 bool m_isTransparent;
463 Color m_baseBackgroundColor; 466 Color m_baseBackgroundColor;
464 IntSize m_lastViewportSize; 467 IntSize m_lastViewportSize;
465 float m_lastZoomFactor; 468 float m_lastZoomFactor;
466 469
470 // Client can explicitly set a layout size, if unset the frameRect is used
471 IntSize m_layoutSize;
472
467 AtomicString m_mediaType; 473 AtomicString m_mediaType;
468 AtomicString m_mediaTypeWhenNotPrinting; 474 AtomicString m_mediaTypeWhenNotPrinting;
469 475
470 OwnPtr<FrameActionScheduler> m_actionScheduler; 476 OwnPtr<FrameActionScheduler> m_actionScheduler;
471 477
472 bool m_overflowStatusDirty; 478 bool m_overflowStatusDirty;
473 bool m_horizontalOverflow; 479 bool m_horizontalOverflow;
474 bool m_verticalOverflow; 480 bool m_verticalOverflow;
475 RenderObject* m_viewportRenderer; 481 RenderObject* m_viewportRenderer;
476 482
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 ASSERT(!widget || widget->isFrameView()); 585 ASSERT(!widget || widget->isFrameView());
580 return static_cast<const FrameView*>(widget); 586 return static_cast<const FrameView*>(widget);
581 } 587 }
582 588
583 // This will catch anyone doing an unnecessary cast. 589 // This will catch anyone doing an unnecessary cast.
584 void toFrameView(const FrameView*); 590 void toFrameView(const FrameView*);
585 591
586 } // namespace WebCore 592 } // namespace WebCore
587 593
588 #endif // FrameView_h 594 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698