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

Side by Side Diff: trunk/Source/core/platform/ScrollView.h

Issue 14057012: Revert 148647 "Remove frame flattening support as Chromium has n..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 7 years, 8 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 | « trunk/Source/core/page/Settings.in ('k') | trunk/Source/core/platform/ScrollView.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) 2004, 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Holger Hans Peter Freyther 3 * Copyright (C) 2009 Holger Hans Peter Freyther
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 void setHorizontalScrollbarLock(bool lock = true) { m_horizontalScrollbarLoc k = lock; } 91 void setHorizontalScrollbarLock(bool lock = true) { m_horizontalScrollbarLoc k = lock; }
92 bool horizontalScrollbarLock() const { return m_horizontalScrollbarLock; } 92 bool horizontalScrollbarLock() const { return m_horizontalScrollbarLock; }
93 void setVerticalScrollbarLock(bool lock = true) { m_verticalScrollbarLock = lock; } 93 void setVerticalScrollbarLock(bool lock = true) { m_verticalScrollbarLock = lock; }
94 bool verticalScrollbarLock() const { return m_verticalScrollbarLock; } 94 bool verticalScrollbarLock() const { return m_verticalScrollbarLock; }
95 95
96 void setScrollingModesLock(bool lock = true) { m_horizontalScrollbarLock = m _verticalScrollbarLock = lock; } 96 void setScrollingModesLock(bool lock = true) { m_horizontalScrollbarLock = m _verticalScrollbarLock = lock; }
97 97
98 virtual void setCanHaveScrollbars(bool); 98 virtual void setCanHaveScrollbars(bool);
99 bool canHaveScrollbars() const { return horizontalScrollbarMode() != Scrollb arAlwaysOff || verticalScrollbarMode() != ScrollbarAlwaysOff; } 99 bool canHaveScrollbars() const { return horizontalScrollbarMode() != Scrollb arAlwaysOff || verticalScrollbarMode() != ScrollbarAlwaysOff; }
100 100
101 virtual bool avoidScrollbarCreation() const { return false; }
102
101 virtual void setScrollbarOverlayStyle(ScrollbarOverlayStyle) OVERRIDE; 103 virtual void setScrollbarOverlayStyle(ScrollbarOverlayStyle) OVERRIDE;
102 104
103 // By default you only receive paint events for the area that is visible. In the case of using a 105 // By default you only receive paint events for the area that is visible. In the case of using a
104 // tiled backing store, this function can be set, so that the view paints th e entire contents. 106 // tiled backing store, this function can be set, so that the view paints th e entire contents.
105 bool paintsEntireContents() const { return m_paintsEntireContents; } 107 bool paintsEntireContents() const { return m_paintsEntireContents; }
106 void setPaintsEntireContents(bool); 108 void setPaintsEntireContents(bool);
107 109
108 // By default, paint events are clipped to the visible area. If set to 110 // By default, paint events are clipped to the visible area. If set to
109 // false, paint events are no longer clipped. paintsEntireContents() implie s !clipsRepaints(). 111 // false, paint events are no longer clipped. paintsEntireContents() implie s !clipsRepaints().
110 bool clipsRepaints() const { return m_clipsRepaints; } 112 bool clipsRepaints() const { return m_clipsRepaints; }
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 ASSERT(!widget || widget->isScrollView()); 389 ASSERT(!widget || widget->isScrollView());
388 return static_cast<const ScrollView*>(widget); 390 return static_cast<const ScrollView*>(widget);
389 } 391 }
390 392
391 // This will catch anyone doing an unnecessary cast. 393 // This will catch anyone doing an unnecessary cast.
392 void toScrollView(const ScrollView*); 394 void toScrollView(const ScrollView*);
393 395
394 } // namespace WebCore 396 } // namespace WebCore
395 397
396 #endif // ScrollView_h 398 #endif // ScrollView_h
OLDNEW
« no previous file with comments | « trunk/Source/core/page/Settings.in ('k') | trunk/Source/core/platform/ScrollView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698