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

Side by Side Diff: Source/core/platform/chromium/support/WebScrollbarThemeClientImpl.h

Issue 26936002: Remove Widget's dependency upon its own inheritor aka ScrollView. This was nasty from an OO design… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Fix for clang compile error Created 7 years, 2 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 WebScrollbarThemeClientImpl(WebKit::WebScrollbar*); 42 WebScrollbarThemeClientImpl(WebKit::WebScrollbar*);
43 ~WebScrollbarThemeClientImpl(); 43 ~WebScrollbarThemeClientImpl();
44 44
45 // Implement ScrollbarThemeClient interface 45 // Implement ScrollbarThemeClient interface
46 virtual int x() const OVERRIDE; 46 virtual int x() const OVERRIDE;
47 virtual int y() const OVERRIDE; 47 virtual int y() const OVERRIDE;
48 virtual int width() const OVERRIDE; 48 virtual int width() const OVERRIDE;
49 virtual int height() const OVERRIDE; 49 virtual int height() const OVERRIDE;
50 virtual IntSize size() const OVERRIDE; 50 virtual IntSize size() const OVERRIDE;
51 virtual IntPoint location() const OVERRIDE; 51 virtual IntPoint location() const OVERRIDE;
52 virtual ScrollView* parent() const OVERRIDE; 52 virtual Widget* parent() const OVERRIDE;
53 virtual ScrollView* root() const OVERRIDE; 53 virtual Widget* root() const OVERRIDE;
54 virtual void setFrameRect(const IntRect&) OVERRIDE; 54 virtual void setFrameRect(const IntRect&) OVERRIDE;
55 virtual IntRect frameRect() const OVERRIDE; 55 virtual IntRect frameRect() const OVERRIDE;
56 virtual void invalidate() OVERRIDE; 56 virtual void invalidate() OVERRIDE;
57 virtual void invalidateRect(const IntRect&) OVERRIDE; 57 virtual void invalidateRect(const IntRect&) OVERRIDE;
58 virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const OVERRIDE; 58 virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const OVERRIDE;
59 virtual void getTickmarks(Vector<IntRect>&) const OVERRIDE; 59 virtual void getTickmarks(Vector<IntRect>&) const OVERRIDE;
60 virtual bool isScrollableAreaActive() const OVERRIDE; 60 virtual bool isScrollableAreaActive() const OVERRIDE;
61 virtual bool isScrollViewScrollbar() const OVERRIDE; 61 virtual bool isScrollViewScrollbar() const OVERRIDE;
62 virtual IntPoint convertFromContainingWindow(const IntPoint&) OVERRIDE; 62 virtual IntPoint convertFromContainingWindow(const IntPoint&) OVERRIDE;
63 virtual bool isCustomScrollbar() const OVERRIDE; 63 virtual bool isCustomScrollbar() const OVERRIDE;
(...skipping 14 matching lines...) Expand all
78 virtual bool isAlphaLocked() const OVERRIDE; 78 virtual bool isAlphaLocked() const OVERRIDE;
79 virtual void setIsAlphaLocked(bool) OVERRIDE; 79 virtual void setIsAlphaLocked(bool) OVERRIDE;
80 80
81 private: 81 private:
82 WebKit::WebScrollbar* m_scrollbar; 82 WebKit::WebScrollbar* m_scrollbar;
83 }; 83 };
84 84
85 } 85 }
86 86
87 #endif // WebScrollbarThemeClientImpl_h 87 #endif // WebScrollbarThemeClientImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698