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

Side by Side Diff: sky/engine/web/WebLocalFrameImpl.h

Issue 646273006: Get rid of ScrollView. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: merge to ToT Created 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 virtual void setCanHaveScrollbars(bool) OVERRIDE; 157 virtual void setCanHaveScrollbars(bool) OVERRIDE;
158 158
159 LocalFrame* frame() const { return m_frame.get(); } 159 LocalFrame* frame() const { return m_frame.get(); }
160 WebFrameClient* client() const { return m_client; } 160 WebFrameClient* client() const { return m_client; }
161 void setClient(WebFrameClient* client) { m_client = client; } 161 void setClient(WebFrameClient* client) { m_client = client; }
162 162
163 void setInputEventsTransformForEmulation(const IntSize&, float); 163 void setInputEventsTransformForEmulation(const IntSize&, float);
164 164
165 static void selectWordAroundPosition(LocalFrame*, VisiblePosition); 165 static void selectWordAroundPosition(LocalFrame*, VisiblePosition);
166 166
167 // Invalidates vertical scrollbar only.
168 void invalidateScrollbar() const;
169
170 // Invalidates both content area and the scrollbar. 167 // Invalidates both content area and the scrollbar.
171 void invalidateAll() const; 168 void invalidateAll() const;
172 169
173 // Returns a hit-tested VisiblePosition for the given point 170 // Returns a hit-tested VisiblePosition for the given point
174 VisiblePosition visiblePositionForWindowPoint(const WebPoint&); 171 VisiblePosition visiblePositionForWindowPoint(const WebPoint&);
175 172
176 private: 173 private:
177 friend class FrameLoaderClientImpl; 174 friend class FrameLoaderClientImpl;
178 175
179 explicit WebLocalFrameImpl(WebFrameClient*); 176 explicit WebLocalFrameImpl(WebFrameClient*);
(...skipping 13 matching lines...) Expand all
193 // Stores the additional input events offset and scale when device metrics e mulation is enabled. 190 // Stores the additional input events offset and scale when device metrics e mulation is enabled.
194 IntSize m_inputEventsOffsetForEmulation; 191 IntSize m_inputEventsOffsetForEmulation;
195 float m_inputEventsScaleFactorForEmulation; 192 float m_inputEventsScaleFactorForEmulation;
196 }; 193 };
197 194
198 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 195 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
199 196
200 } // namespace blink 197 } // namespace blink
201 198
202 #endif 199 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698