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

Side by Side Diff: Source/platform/scroll/ScrollView.h

Issue 383603002: Update scrollbar layer opacity when scrollbar theme changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update test expectations Created 6 years, 5 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
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.cpp ('k') | Source/platform/scroll/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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 public: 299 public:
300 explicit InUpdateScrollbarsScope(ScrollView* view) 300 explicit InUpdateScrollbarsScope(ScrollView* view)
301 : m_scope(view->m_inUpdateScrollbars, true) 301 : m_scope(view->m_inUpdateScrollbars, true)
302 { } 302 { }
303 private: 303 private:
304 TemporaryChange<bool> m_scope; 304 TemporaryChange<bool> m_scope;
305 }; 305 };
306 306
307 private: 307 private:
308 bool adjustScrollbarExistence(ComputeScrollbarExistenceOption = FirstPass); 308 bool adjustScrollbarExistence(ComputeScrollbarExistenceOption = FirstPass);
309 void adjustScrollbarOpacity();
309 310
310 RefPtr<Scrollbar> m_horizontalScrollbar; 311 RefPtr<Scrollbar> m_horizontalScrollbar;
311 RefPtr<Scrollbar> m_verticalScrollbar; 312 RefPtr<Scrollbar> m_verticalScrollbar;
312 ScrollbarMode m_horizontalScrollbarMode; 313 ScrollbarMode m_horizontalScrollbarMode;
313 ScrollbarMode m_verticalScrollbarMode; 314 ScrollbarMode m_verticalScrollbarMode;
314 315
315 bool m_horizontalScrollbarLock; 316 bool m_horizontalScrollbarLock;
316 bool m_verticalScrollbarLock; 317 bool m_verticalScrollbarLock;
317 318
318 HashSet<RefPtr<Widget> > m_children; 319 HashSet<RefPtr<Widget> > m_children;
(...skipping 21 matching lines...) Expand all
340 341
341 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR ect& verticalOverhangRect); 342 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR ect& verticalOverhangRect);
342 void updateOverhangAreas(); 343 void updateOverhangAreas();
343 }; // class ScrollView 344 }; // class ScrollView
344 345
345 DEFINE_TYPE_CASTS(ScrollView, Widget, widget, widget->isScrollView(), widget.isS crollView()); 346 DEFINE_TYPE_CASTS(ScrollView, Widget, widget, widget->isScrollView(), widget.isS crollView());
346 347
347 } // namespace WebCore 348 } // namespace WebCore
348 349
349 #endif // ScrollView_h 350 #endif // ScrollView_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.cpp ('k') | Source/platform/scroll/ScrollView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698