OLD | NEW |
| (Empty) |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef FramelessScrollView_h | |
6 #define FramelessScrollView_h | |
7 | |
8 #include "FrameView.h" | |
9 | |
10 namespace WebCore { | |
11 | |
12 class PlatformKeyboardEvent; | |
13 | |
14 // A FramelessScrollView is a ScrollView that can be used to render custom | |
15 // content, which does not have an associated Frame. This extends from | |
16 // FrameView because much of WebCore unfortunately assumes that a | |
17 // ScrollView is a FrameView. | |
18 // | |
19 // TODO: It may be better to just develop a custom subclass of Widget that | |
20 // can have scroll bars for this instead of trying to reuse ScrollView. | |
21 // | |
22 class FramelessScrollView : public FrameView { | |
23 public: | |
24 FramelessScrollView() : FrameView(0) {} | |
25 | |
26 virtual IntRect windowClipRect() const; | |
27 | |
28 // Event handlers | |
29 virtual bool handleMouseDownEvent(const PlatformMouseEvent&) = 0; | |
30 virtual bool handleMouseMoveEvent(const PlatformMouseEvent&) = 0; | |
31 virtual bool handleMouseReleaseEvent(const PlatformMouseEvent&) = 0; | |
32 virtual bool handleWheelEvent(const PlatformWheelEvent&) = 0; | |
33 virtual bool handleKeyEvent(const PlatformKeyboardEvent&) = 0; | |
34 }; | |
35 } | |
36 | |
37 #endif // FramelessScrollView_h | |
38 | |
OLD | NEW |