OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |