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

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

Issue 689283003: Remove scroll corners and resizers. (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 | « sky/engine/core/frame/FrameView.h ('k') | sky/engine/core/frame/Settings.in » ('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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 TextStream ts; 1087 TextStream ts;
1088 if (!m_trackedPaintInvalidationRects.isEmpty()) { 1088 if (!m_trackedPaintInvalidationRects.isEmpty()) {
1089 ts << "(repaint rects\n"; 1089 ts << "(repaint rects\n";
1090 for (size_t i = 0; i < m_trackedPaintInvalidationRects.size(); ++i) 1090 for (size_t i = 0; i < m_trackedPaintInvalidationRects.size(); ++i)
1091 ts << " (rect " << m_trackedPaintInvalidationRects[i].x() << " " << m_trackedPaintInvalidationRects[i].y() << " " << m_trackedPaintInvalidationRect s[i].width() << " " << m_trackedPaintInvalidationRects[i].height() << ")\n"; 1091 ts << " (rect " << m_trackedPaintInvalidationRects[i].x() << " " << m_trackedPaintInvalidationRects[i].y() << " " << m_trackedPaintInvalidationRect s[i].width() << " " << m_trackedPaintInvalidationRects[i].height() << ")\n";
1092 ts << ")\n"; 1092 ts << ")\n";
1093 } 1093 }
1094 return ts.release(); 1094 return ts.release();
1095 } 1095 }
1096 1096
1097 void FrameView::addResizerArea(RenderBox& resizerBox)
1098 {
1099 if (!m_resizerAreas)
1100 m_resizerAreas = adoptPtr(new ResizerAreaSet);
1101 m_resizerAreas->add(&resizerBox);
1102 }
1103
1104 void FrameView::removeResizerArea(RenderBox& resizerBox)
1105 {
1106 if (!m_resizerAreas)
1107 return;
1108
1109 ResizerAreaSet::iterator it = m_resizerAreas->find(&resizerBox);
1110 if (it != m_resizerAreas->end())
1111 m_resizerAreas->remove(it);
1112 }
1113
1114 void FrameView::addScrollableArea(ScrollableArea* scrollableArea) 1097 void FrameView::addScrollableArea(ScrollableArea* scrollableArea)
1115 { 1098 {
1116 ASSERT(scrollableArea); 1099 ASSERT(scrollableArea);
1117 if (!m_scrollableAreas) 1100 if (!m_scrollableAreas)
1118 m_scrollableAreas = adoptPtr(new ScrollableAreaSet); 1101 m_scrollableAreas = adoptPtr(new ScrollableAreaSet);
1119 m_scrollableAreas->add(scrollableArea); 1102 m_scrollableAreas->add(scrollableArea);
1120 } 1103 }
1121 1104
1122 void FrameView::removeScrollableArea(ScrollableArea* scrollableArea) 1105 void FrameView::removeScrollableArea(ScrollableArea* scrollableArea)
1123 { 1106 {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 void FrameView::setLayoutSizeInternal(const IntSize& size) 1138 void FrameView::setLayoutSizeInternal(const IntSize& size)
1156 { 1139 {
1157 if (m_layoutSize == size) 1140 if (m_layoutSize == size)
1158 return; 1141 return;
1159 1142
1160 m_layoutSize = size; 1143 m_layoutSize = size;
1161 contentsResized(); 1144 contentsResized();
1162 } 1145 }
1163 1146
1164 } // namespace blink 1147 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/frame/FrameView.h ('k') | sky/engine/core/frame/Settings.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698