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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 years, 9 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) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. 3 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved.
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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 } 363 }
364 364
365 void ScrollableArea::didAddScrollbar(Scrollbar& scrollbar, ScrollbarOrientation orientation) 365 void ScrollableArea::didAddScrollbar(Scrollbar& scrollbar, ScrollbarOrientation orientation)
366 { 366 {
367 if (orientation == VerticalScrollbar) 367 if (orientation == VerticalScrollbar)
368 scrollAnimator().didAddVerticalScrollbar(scrollbar); 368 scrollAnimator().didAddVerticalScrollbar(scrollbar);
369 else 369 else
370 scrollAnimator().didAddHorizontalScrollbar(scrollbar); 370 scrollAnimator().didAddHorizontalScrollbar(scrollbar);
371 371
372 // <rdar://problem/9797253> AppKit resets the scrollbar's style when you att ach a scrollbar 372 // <rdar://problem/9797253> AppKit resets the scrollbar's style when you att ach a scrollbar
373 setScrollbarOverlayStyle(scrollbarOverlayStyle()); 373 setScrollbarOverlayStyle(getScrollbarOverlayStyle());
374 } 374 }
375 375
376 void ScrollableArea::willRemoveScrollbar(Scrollbar& scrollbar, ScrollbarOrientat ion orientation) 376 void ScrollableArea::willRemoveScrollbar(Scrollbar& scrollbar, ScrollbarOrientat ion orientation)
377 { 377 {
378 if (orientation == VerticalScrollbar) 378 if (orientation == VerticalScrollbar)
379 scrollAnimator().willRemoveVerticalScrollbar(scrollbar); 379 scrollAnimator().willRemoveVerticalScrollbar(scrollbar);
380 else 380 else
381 scrollAnimator().willRemoveHorizontalScrollbar(scrollbar); 381 scrollAnimator().willRemoveHorizontalScrollbar(scrollbar);
382 } 382 }
383 383
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 std::max(0, size.height() - horizontalScrollbarHeight)); 617 std::max(0, size.height() - horizontalScrollbarHeight));
618 } 618 }
619 619
620 DEFINE_TRACE(ScrollableArea) 620 DEFINE_TRACE(ScrollableArea)
621 { 621 {
622 visitor->trace(m_scrollAnimator); 622 visitor->trace(m_scrollAnimator);
623 visitor->trace(m_programmaticScrollAnimator); 623 visitor->trace(m_programmaticScrollAnimator);
624 } 624 }
625 625
626 } // namespace blink 626 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollableArea.h ('k') | third_party/WebKit/Source/platform/scroll/Scrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698