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

Side by Side Diff: third_party/WebKit/WebCore/platform/Scrollbar.h

Issue 39293: WebKit merge 41447:41498 [third_party/WebKit] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove CRLF Created 11 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 | Annotate | Revision Log
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 24 matching lines...) Expand all
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 class GraphicsContext; 38 class GraphicsContext;
39 class IntRect; 39 class IntRect;
40 class ScrollbarClient; 40 class ScrollbarClient;
41 class ScrollbarTheme; 41 class ScrollbarTheme;
42 class PlatformMouseEvent; 42 class PlatformMouseEvent;
43 43
44 // These match the numbers we use over in WebKit (WebFrameView.m). 44 // These match the numbers we use over in WebKit (WebFrameView.m).
45 const int cScrollbarPixelsPerLineStep = 40; 45 const int cScrollbarPixelsPerLineStep = 40;
46 const float cMouseWheelPixelsPerLineStep = 40.0f / 3.0f;
47 const int cAmountToKeepWhenPaging = 40; 46 const int cAmountToKeepWhenPaging = 40;
48 47
49 class Scrollbar : public Widget, public RefCounted<Scrollbar> { 48 class Scrollbar : public Widget, public RefCounted<Scrollbar> {
50 protected: 49 protected:
51 Scrollbar(ScrollbarClient*, ScrollbarOrientation, ScrollbarControlSize, Scro llbarTheme* = 0); 50 Scrollbar(ScrollbarClient*, ScrollbarOrientation, ScrollbarControlSize, Scro llbarTheme* = 0);
52 51
53 public: 52 public:
54 virtual ~Scrollbar(); 53 virtual ~Scrollbar();
55 54
56 // Must be implemented by platforms that can't simply use the Scrollbar base class. Right now the only platform that is not using the base class is GTK. 55 // Must be implemented by platforms that can't simply use the Scrollbar base class. Right now the only platform that is not using the base class is GTK.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 158
160 Timer<Scrollbar> m_scrollTimer; 159 Timer<Scrollbar> m_scrollTimer;
161 bool m_overlapsResizer; 160 bool m_overlapsResizer;
162 161
163 bool m_suppressInvalidation; 162 bool m_suppressInvalidation;
164 }; 163 };
165 164
166 } 165 }
167 166
168 #endif 167 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/platform/ScrollView.cpp ('k') | third_party/WebKit/WebCore/platform/graphics/MediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698