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

Side by Side Diff: sky/engine/core/frame/FrameView.h

Issue 680703002: Remove more frame-level scrolling machinery. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | sky/engine/core/frame/FrameView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 HostWindow* hostWindow() const; 68 HostWindow* hostWindow() const;
69 69
70 void invalidateRect(const IntRect&); 70 void invalidateRect(const IntRect&);
71 void setFrameRect(const IntRect&); 71 void setFrameRect(const IntRect&);
72 72
73 LocalFrame& frame() const { return *m_frame; } 73 LocalFrame& frame() const { return *m_frame; }
74 Page* page() const; 74 Page* page() const;
75 75
76 RenderView* renderView() const; 76 RenderView* renderView() const;
77 77
78 // FIXME(sky): Remove.
79 void setCanHaveScrollbars(bool);
80
81 void setContentsSize(const IntSize&);
82 IntPoint clampOffsetAtScale(const IntPoint& offset, float scale) const; 78 IntPoint clampOffsetAtScale(const IntPoint& offset, float scale) const;
83 79
84 void layout(bool allowSubtree = true); 80 void layout(bool allowSubtree = true);
85 bool didFirstLayout() const; 81 bool didFirstLayout() const;
86 void scheduleRelayout(); 82 void scheduleRelayout();
87 void scheduleRelayoutOfSubtree(RenderObject*); 83 void scheduleRelayoutOfSubtree(RenderObject*);
88 bool layoutPending() const; 84 bool layoutPending() const;
89 bool isInPerformLayout() const; 85 bool isInPerformLayout() const;
90 86
91 void setCanInvalidatePaintDuringPerformLayout(bool b) { m_canInvalidatePaint DuringPerformLayout = b; } 87 void setCanInvalidatePaintDuringPerformLayout(bool b) { m_canInvalidatePaint DuringPerformLayout = b; }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 bool isTransparent() const; 121 bool isTransparent() const;
126 void setTransparent(bool isTransparent); 122 void setTransparent(bool isTransparent);
127 123
128 // True if the FrameView is not transparent, and the base background color i s opaque. 124 // True if the FrameView is not transparent, and the base background color i s opaque.
129 bool hasOpaqueBackground() const; 125 bool hasOpaqueBackground() const;
130 126
131 Color baseBackgroundColor() const; 127 Color baseBackgroundColor() const;
132 void setBaseBackgroundColor(const Color&); 128 void setBaseBackgroundColor(const Color&);
133 void updateBackgroundRecursively(const Color&, bool); 129 void updateBackgroundRecursively(const Color&, bool);
134 130
135 void adjustViewSize();
136
137 IntRect windowClipRect(IncludeScrollbarsInRect = ExcludeScrollbars) const; 131 IntRect windowClipRect(IncludeScrollbarsInRect = ExcludeScrollbars) const;
138 132
139 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor ; } 133 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor ; }
140 void setVisibleContentScaleFactor(float); 134 void setVisibleContentScaleFactor(float);
141 135
142 float inputEventsScaleFactor() const; 136 float inputEventsScaleFactor() const;
143 IntSize inputEventsOffsetForEmulation() const; 137 IntSize inputEventsOffsetForEmulation() const;
144 void setInputEventsTransformForEmulation(const IntSize&, float); 138 void setInputEventsTransformForEmulation(const IntSize&, float);
145 139
146 // FIXME(sky): Remove
147 void setScrollPosition(const IntPoint&, ScrollBehavior = ScrollBehaviorInsta nt);
148 bool isRubberBandInProgress() const;
149 void setScrollPositionNonProgrammatically(const IntPoint&);
150
151 // This is different than visibleContentRect() in that it ignores negative ( or overly positive) 140 // This is different than visibleContentRect() in that it ignores negative ( or overly positive)
152 // offsets from rubber-banding, and it takes zooming into account. 141 // offsets from rubber-banding, and it takes zooming into account.
153 LayoutRect viewportConstrainedVisibleContentRect() const; 142 LayoutRect viewportConstrainedVisibleContentRect() const;
154 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he ightChanged); 143 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he ightChanged);
155 144
156 AtomicString mediaType() const; 145 AtomicString mediaType() const;
157 void setMediaType(const AtomicString&); 146 void setMediaType(const AtomicString&);
158 147
159 void addSlowRepaintObject(); 148 void addSlowRepaintObject();
160 void removeSlowRepaintObject(); 149 void removeSlowRepaintObject();
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); 464 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue);
476 } 465 }
477 private: 466 private:
478 FrameView* m_view; 467 FrameView* m_view;
479 bool m_originalValue; 468 bool m_originalValue;
480 }; 469 };
481 470
482 } // namespace blink 471 } // namespace blink
483 472
484 #endif // FrameView_h 473 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698