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

Side by Side Diff: sky/engine/core/frame/FrameView.h

Issue 870073003: Remove mouse events from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 /* 1 /*
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 void setCursor(const Cursor&); 153 void setCursor(const Cursor&);
154 154
155 // FIXME: Remove this method once plugin loading is decoupled from layout. 155 // FIXME: Remove this method once plugin loading is decoupled from layout.
156 void flushAnyPendingPostLayoutTasks(); 156 void flushAnyPendingPostLayoutTasks();
157 157
158 typedef HashSet<ScrollableArea*> ScrollableAreaSet; 158 typedef HashSet<ScrollableArea*> ScrollableAreaSet;
159 void addScrollableArea(ScrollableArea*); 159 void addScrollableArea(ScrollableArea*);
160 void removeScrollableArea(ScrollableArea*); 160 void removeScrollableArea(ScrollableArea*);
161 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas. get(); } 161 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas. get(); }
162 162
163 // This function exists for ports that need to handle wheel events manually.
164 // On Mac WebKit1 the underlying NSScrollView just does the scrolling, but o n most other platforms
165 // we need this function in order to do the scroll ourselves.
166 bool wheelEvent(const PlatformWheelEvent&);
167
168 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters = hasSoftwareFilters; } 163 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters = hasSoftwareFilters; }
169 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } 164 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; }
170 165
171 bool isActive() const; 166 bool isActive() const;
172 167
173 // FIXME: This should probably be renamed as the 'inSubtreeLayout' parameter 168 // FIXME: This should probably be renamed as the 'inSubtreeLayout' parameter
174 // passed around the FrameView layout methods can be true while this returns 169 // passed around the FrameView layout methods can be true while this returns
175 // false. 170 // false.
176 bool isSubtreeLayout() const { return !!m_layoutSubtreeRoot; } 171 bool isSubtreeLayout() const { return !!m_layoutSubtreeRoot; }
177 172
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 bool m_layoutSizeFixedToFrameSize; 261 bool m_layoutSizeFixedToFrameSize;
267 262
268 Vector<IntRect> m_tickmarks; 263 Vector<IntRect> m_tickmarks;
269 }; 264 };
270 265
271 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 266 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
272 267
273 } // namespace blink 268 } // namespace blink
274 269
275 #endif // SKY_ENGINE_CORE_FRAME_FRAMEVIEW_H_ 270 #endif // SKY_ENGINE_CORE_FRAME_FRAMEVIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698