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

Side by Side Diff: sky/engine/platform/scroll/Scrollbar.h

Issue 873963003: Remove more mouse-specific code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Build fixes 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
« no previous file with comments | « sky/engine/platform/scroll/ScrollableArea.cpp ('k') | sky/engine/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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void setPressedPart(ScrollbarPart); 68 void setPressedPart(ScrollbarPart);
69 69
70 void setProportion(int visibleSize, int totalSize); 70 void setProportion(int visibleSize, int totalSize);
71 void setPressedPos(int p) { m_pressedPos = p; } 71 void setPressedPos(int p) { m_pressedPos = p; }
72 72
73 virtual void paint(GraphicsContext*, const IntRect& damageRect) override; 73 virtual void paint(GraphicsContext*, const IntRect& damageRect) override;
74 74
75 bool isOverlayScrollbar() const; 75 bool isOverlayScrollbar() const;
76 bool shouldParticipateInHitTesting(); 76 bool shouldParticipateInHitTesting();
77 77
78 void mouseEntered();
79 void mouseExited();
80
81 virtual IntRect convertToContainingView(const IntRect&) const override; 78 virtual IntRect convertToContainingView(const IntRect&) const override;
82 virtual IntRect convertFromContainingView(const IntRect&) const override; 79 virtual IntRect convertFromContainingView(const IntRect&) const override;
83 80
84 virtual IntPoint convertToContainingView(const IntPoint&) const override; 81 virtual IntPoint convertToContainingView(const IntPoint&) const override;
85 virtual IntPoint convertFromContainingView(const IntPoint&) const override; 82 virtual IntPoint convertFromContainingView(const IntPoint&) const override;
86 83
87 void moveThumb(int pos); 84 void moveThumb(int pos);
88 85
89 static int scrollbarThickness(); 86 static int scrollbarThickness();
90 87
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 virtual bool isScrollbar() const override { return true; } 140 virtual bool isScrollbar() const override { return true; }
144 141
145 float scrollableAreaCurrentPos() const; 142 float scrollableAreaCurrentPos() const;
146 }; 143 };
147 144
148 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar()); 145 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar());
149 146
150 } // namespace blink 147 } // namespace blink
151 148
152 #endif // SKY_ENGINE_PLATFORM_SCROLL_SCROLLBAR_H_ 149 #endif // SKY_ENGINE_PLATFORM_SCROLL_SCROLLBAR_H_
OLDNEW
« no previous file with comments | « sky/engine/platform/scroll/ScrollableArea.cpp ('k') | sky/engine/platform/scroll/Scrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698