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

Side by Side Diff: webkit/port/platform/FramelessScrollView.h

Issue 7419: Move many files that were suffixed Win.cpp to Chromium.cpp, and place them in... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 | Annotate | Revision Log
« no previous file with comments | « webkit/port/platform/FileChooserWin.cpp ('k') | webkit/port/platform/FramelessScrollView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « webkit/port/platform/FileChooserWin.cpp ('k') | webkit/port/platform/FramelessScrollView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698