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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.h

Issue 2560733002: SELECT element: Fix a bug that intrinsic width is too narrow in less-than-100% zoom level. (Closed)
Patch Set: PartScrollbarVerticalTrack -> PartScrollbarDownArrow to fix Android crash Created 4 years 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) 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 ScrollbarControlSize controlSize() const override { return m_controlSize; } 101 ScrollbarControlSize controlSize() const override { return m_controlSize; }
102 102
103 ScrollbarPart pressedPart() const override { return m_pressedPart; } 103 ScrollbarPart pressedPart() const override { return m_pressedPart; }
104 ScrollbarPart hoveredPart() const override { return m_hoveredPart; } 104 ScrollbarPart hoveredPart() const override { return m_hoveredPart; }
105 105
106 void styleChanged() override {} 106 void styleChanged() override {}
107 void setScrollbarsHidden(bool) override; 107 void setScrollbarsHidden(bool) override;
108 bool enabled() const override { return m_enabled; } 108 bool enabled() const override { return m_enabled; }
109 void setEnabled(bool) override; 109 void setEnabled(bool) override;
110 110
111 // This returns device-scale-factor-aware pixel value.
112 // e.g. 15 in dsf=1.0, 30 in dsf=2.0.
113 // See also ScrolbarTheme::scrollbatThickness().
111 int scrollbarThickness() const; 114 int scrollbarThickness() const;
112 115
113 // Called by the ScrollableArea when the scroll offset changes. 116 // Called by the ScrollableArea when the scroll offset changes.
114 // Will trigger paint invalidation if required. 117 // Will trigger paint invalidation if required.
115 void offsetDidChange(); 118 void offsetDidChange();
116 119
117 void disconnectFromScrollableArea(); 120 void disconnectFromScrollableArea();
118 ScrollableArea* getScrollableArea() const { return m_scrollableArea; } 121 ScrollableArea* getScrollableArea() const { return m_scrollableArea; }
119 122
120 int pressedPos() const { return m_pressedPos; } 123 int pressedPos() const { return m_pressedPos; }
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 258
256 DEFINE_TYPE_CASTS(Scrollbar, 259 DEFINE_TYPE_CASTS(Scrollbar,
257 Widget, 260 Widget,
258 widget, 261 widget,
259 widget->isScrollbar(), 262 widget->isScrollbar(),
260 widget.isScrollbar()); 263 widget.isScrollbar());
261 264
262 } // namespace blink 265 } // namespace blink
263 266
264 #endif // Scrollbar_h 267 #endif // Scrollbar_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698