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

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

Issue 2814643003: Remove FrameViewBase as base class of PluginView. (Closed)
Patch Set: Remove FrameViewBase Paint, Show, Hide. Created 3 years, 8 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) 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 ScrollableArea* GetScrollableArea() const { return scrollable_area_; } 122 ScrollableArea* GetScrollableArea() const { return scrollable_area_; }
123 123
124 int PressedPos() const { return pressed_pos_; } 124 int PressedPos() const { return pressed_pos_; }
125 125
126 virtual void SetHoveredPart(ScrollbarPart); 126 virtual void SetHoveredPart(ScrollbarPart);
127 virtual void SetPressedPart(ScrollbarPart); 127 virtual void SetPressedPart(ScrollbarPart);
128 128
129 void SetProportion(int visible_size, int total_size); 129 void SetProportion(int visible_size, int total_size);
130 void SetPressedPos(int p) { pressed_pos_ = p; } 130 void SetPressedPos(int p) { pressed_pos_ = p; }
131 131
132 void Paint(GraphicsContext&, const CullRect&) const final; 132 void Paint(GraphicsContext&, const CullRect&) const;
133 133
134 bool IsOverlayScrollbar() const override; 134 bool IsOverlayScrollbar() const override;
135 bool ShouldParticipateInHitTesting(); 135 bool ShouldParticipateInHitTesting();
136 136
137 bool IsWindowActive() const; 137 bool IsWindowActive() const;
138 138
139 // Return if the gesture event was handled. |shouldUpdateCapture| 139 // Return if the gesture event was handled. |shouldUpdateCapture|
140 // will be set to true if the handler should update the capture 140 // will be set to true if the handler should update the capture
141 // state for this scrollbar. 141 // state for this scrollbar.
142 bool GestureEvent(const WebGestureEvent&, bool* should_update_capture); 142 bool GestureEvent(const WebGestureEvent&, bool* should_update_capture);
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 262
263 DEFINE_TYPE_CASTS(Scrollbar, 263 DEFINE_TYPE_CASTS(Scrollbar,
264 FrameViewBase, 264 FrameViewBase,
265 frameViewBase, 265 frameViewBase,
266 frameViewBase->IsScrollbar(), 266 frameViewBase->IsScrollbar(),
267 frameViewBase.IsScrollbar()); 267 frameViewBase.IsScrollbar());
268 268
269 } // namespace blink 269 } // namespace blink
270 270
271 #endif // Scrollbar_h 271 #endif // Scrollbar_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698