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

Side by Side Diff: cc/CCLayerImpl.h

Issue 10909255: Support high DPI scrollbar on top level web frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply setBoundsContainPageScale recursively on LayerChromium. Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/CCLayerImpl.cpp » ('j') | cc/LayerChromium.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CCLayerImpl_h 5 #ifndef CCLayerImpl_h
6 #define CCLayerImpl_h 6 #define CCLayerImpl_h
7 7
8 #include "CCInputHandler.h" 8 #include "CCInputHandler.h"
9 #include "CCLayerAnimationController.h" 9 #include "CCLayerAnimationController.h"
10 #include "CCRenderSurface.h" 10 #include "CCRenderSurface.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 void setHorizontalScrollbarLayer(CCScrollbarLayerImpl*); 249 void setHorizontalScrollbarLayer(CCScrollbarLayerImpl*);
250 250
251 CCScrollbarLayerImpl* verticalScrollbarLayer() const; 251 CCScrollbarLayerImpl* verticalScrollbarLayer() const;
252 void setVerticalScrollbarLayer(CCScrollbarLayerImpl*); 252 void setVerticalScrollbarLayer(CCScrollbarLayerImpl*);
253 253
254 protected: 254 protected:
255 explicit CCLayerImpl(int); 255 explicit CCLayerImpl(int);
256 256
257 void appendDebugBorderQuad(CCQuadSink&, const CCSharedQuadState*, CCAppendQu adsData&) const; 257 void appendDebugBorderQuad(CCQuadSink&, const CCSharedQuadState*, CCAppendQu adsData&) const;
258 258
259 IntRect layerRectToContentRect(const WebKit::WebRect& layerRect);
260
259 virtual void dumpLayerProperties(std::string*, int indent) const; 261 virtual void dumpLayerProperties(std::string*, int indent) const;
260 static std::string indentString(int indent); 262 static std::string indentString(int indent);
261 263
262 private: 264 private:
263 void setParent(CCLayerImpl* parent) { m_parent = parent; } 265 void setParent(CCLayerImpl* parent) { m_parent = parent; }
264 friend class TreeSynchronizer; 266 friend class TreeSynchronizer;
265 void clearChildList(); // Warning: This does not preserve tree structure inv ariants and so is only exposed to the tree synchronizer. 267 void clearChildList(); // Warning: This does not preserve tree structure inv ariants and so is only exposed to the tree synchronizer.
266 268
267 void noteLayerPropertyChangedForSubtree(); 269 void noteLayerPropertyChangedForSubtree();
268 270
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 384
383 // Manages scrollbars for this layer 385 // Manages scrollbars for this layer
384 OwnPtr<CCScrollbarAnimationController> m_scrollbarAnimationController; 386 OwnPtr<CCScrollbarAnimationController> m_scrollbarAnimationController;
385 }; 387 };
386 388
387 void sortLayers(Vector<CCLayerImpl*>::iterator first, Vector<CCLayerImpl*>::iter ator end, CCLayerSorter*); 389 void sortLayers(Vector<CCLayerImpl*>::iterator first, Vector<CCLayerImpl*>::iter ator end, CCLayerSorter*);
388 390
389 } 391 }
390 392
391 #endif // CCLayerImpl_h 393 #endif // CCLayerImpl_h
OLDNEW
« no previous file with comments | « no previous file | cc/CCLayerImpl.cpp » ('j') | cc/LayerChromium.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698