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

Side by Side Diff: Source/platform/scroll/ScrollbarThemeClient.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
« no previous file with comments | « Source/core/rendering/RenderWidget.cpp ('k') | Source/web/WebInputEventConversion.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) 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 17 matching lines...) Expand all
28 28
29 #include "platform/geometry/IntPoint.h" 29 #include "platform/geometry/IntPoint.h"
30 #include "platform/geometry/IntRect.h" 30 #include "platform/geometry/IntRect.h"
31 #include "platform/geometry/IntSize.h" 31 #include "platform/geometry/IntSize.h"
32 #include "platform/scroll/ScrollTypes.h" 32 #include "platform/scroll/ScrollTypes.h"
33 #include "wtf/PassOwnPtr.h" 33 #include "wtf/PassOwnPtr.h"
34 #include "wtf/Vector.h" 34 #include "wtf/Vector.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 class ScrollView; 38 class Widget;
39 39
40 class ScrollbarThemeClient { 40 class ScrollbarThemeClient {
41 public: 41 public:
42 virtual int x() const = 0; 42 virtual int x() const = 0;
43 virtual int y() const = 0; 43 virtual int y() const = 0;
44 virtual int width() const = 0; 44 virtual int width() const = 0;
45 virtual int height() const = 0; 45 virtual int height() const = 0;
46 virtual IntSize size() const = 0; 46 virtual IntSize size() const = 0;
47 virtual IntPoint location() const = 0; 47 virtual IntPoint location() const = 0;
48 48
49 virtual ScrollView* parent() const = 0; 49 virtual Widget* parent() const = 0;
50 virtual ScrollView* root() const = 0; 50 virtual Widget* root() const = 0;
51 51
52 virtual void setFrameRect(const IntRect&) = 0; 52 virtual void setFrameRect(const IntRect&) = 0;
53 virtual IntRect frameRect() const = 0; 53 virtual IntRect frameRect() const = 0;
54 54
55 virtual void invalidate() = 0; 55 virtual void invalidate() = 0;
56 virtual void invalidateRect(const IntRect&) = 0; 56 virtual void invalidateRect(const IntRect&) = 0;
57 57
58 virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const = 0; 58 virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const = 0;
59 virtual void getTickmarks(Vector<IntRect>&) const = 0; 59 virtual void getTickmarks(Vector<IntRect>&) const = 0;
60 virtual bool isScrollableAreaActive() const = 0; 60 virtual bool isScrollableAreaActive() const = 0;
(...skipping 25 matching lines...) Expand all
86 virtual bool isAlphaLocked() const = 0; 86 virtual bool isAlphaLocked() const = 0;
87 virtual void setIsAlphaLocked(bool) = 0; 87 virtual void setIsAlphaLocked(bool) = 0;
88 88
89 protected: 89 protected:
90 virtual ~ScrollbarThemeClient() { } 90 virtual ~ScrollbarThemeClient() { }
91 }; 91 };
92 92
93 } // namespace WebCore 93 } // namespace WebCore
94 94
95 #endif // ScollbarThemeClient_h 95 #endif // ScollbarThemeClient_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderWidget.cpp ('k') | Source/web/WebInputEventConversion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698