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

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

Issue 99103006: Moving GraphicsContext and dependencies from core to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final patch - fixes Android Created 7 years 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 | « Source/platform/scroll/ScrollableArea.cpp ('k') | Source/platform/scroll/Scrollbar.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 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2006 Apple Computer, 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 25 matching lines...) Expand all
36 namespace WebCore { 36 namespace WebCore {
37 37
38 class GraphicsContext; 38 class GraphicsContext;
39 class IntRect; 39 class IntRect;
40 class PlatformGestureEvent; 40 class PlatformGestureEvent;
41 class PlatformMouseEvent; 41 class PlatformMouseEvent;
42 class ScrollableArea; 42 class ScrollableArea;
43 class ScrollbarTheme; 43 class ScrollbarTheme;
44 class ScrollView; 44 class ScrollView;
45 45
46 class Scrollbar : public Widget, 46 class PLATFORM_EXPORT Scrollbar : public Widget,
47 public ScrollbarThemeClient { 47 public ScrollbarThemeClient {
48 48
49 public: 49 public:
50 static PassRefPtr<Scrollbar> create(ScrollableArea*, ScrollbarOrientation, S crollbarControlSize); 50 static PassRefPtr<Scrollbar> create(ScrollableArea*, ScrollbarOrientation, S crollbarControlSize);
51 51
52 virtual ~Scrollbar(); 52 virtual ~Scrollbar();
53 53
54 // ScrollbarThemeClient implementation. 54 // ScrollbarThemeClient implementation.
55 virtual int x() const { return Widget::x(); } 55 virtual int x() const { return Widget::x(); }
56 virtual int y() const { return Widget::y(); } 56 virtual int y() const { return Widget::y(); }
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 ASSERT_WITH_SECURITY_IMPLICATION(!widget || widget->isScrollbar()); 207 ASSERT_WITH_SECURITY_IMPLICATION(!widget || widget->isScrollbar());
208 return static_cast<const Scrollbar*>(widget); 208 return static_cast<const Scrollbar*>(widget);
209 } 209 }
210 210
211 // This will catch anyone doing an unnecessary cast. 211 // This will catch anyone doing an unnecessary cast.
212 void toScrollbar(const Scrollbar*); 212 void toScrollbar(const Scrollbar*);
213 213
214 } // namespace WebCore 214 } // namespace WebCore
215 215
216 #endif // Scrollbar_h 216 #endif // Scrollbar_h
OLDNEW
« no previous file with comments | « Source/platform/scroll/ScrollableArea.cpp ('k') | Source/platform/scroll/Scrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698