| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 void didFail(const ResourceError&); | 132 void didFail(const ResourceError&); |
| 133 | 133 |
| 134 LocalFrame* frame() const { return m_frame.get(); } | 134 LocalFrame* frame() const { return m_frame.get(); } |
| 135 WebFrameClient* client() const { return m_client; } | 135 WebFrameClient* client() const { return m_client; } |
| 136 void setClient(WebFrameClient* client) { m_client = client; } | 136 void setClient(WebFrameClient* client) { m_client = client; } |
| 137 | 137 |
| 138 void setInputEventsTransformForEmulation(const IntSize&, float); | 138 void setInputEventsTransformForEmulation(const IntSize&, float); |
| 139 | 139 |
| 140 static void selectWordAroundPosition(LocalFrame*, VisiblePosition); | 140 static void selectWordAroundPosition(LocalFrame*, VisiblePosition); |
| 141 | 141 |
| 142 // Invalidates both content area and the scrollbar. | |
| 143 void invalidateAll() const; | |
| 144 | |
| 145 // Returns a hit-tested VisiblePosition for the given point | 142 // Returns a hit-tested VisiblePosition for the given point |
| 146 VisiblePosition visiblePositionForWindowPoint(const WebPoint&); | 143 VisiblePosition visiblePositionForWindowPoint(const WebPoint&); |
| 147 | 144 |
| 148 private: | 145 private: |
| 149 friend class FrameLoaderClientImpl; | 146 friend class FrameLoaderClientImpl; |
| 150 | 147 |
| 151 explicit WebLocalFrameImpl(WebFrameClient*); | 148 explicit WebLocalFrameImpl(WebFrameClient*); |
| 152 | 149 |
| 153 // Sets the local core frame and registers destruction observers. | 150 // Sets the local core frame and registers destruction observers. |
| 154 void setCoreFrame(PassRefPtr<LocalFrame>); | 151 void setCoreFrame(PassRefPtr<LocalFrame>); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 165 // Stores the additional input events offset and scale when device metrics e
mulation is enabled. | 162 // Stores the additional input events offset and scale when device metrics e
mulation is enabled. |
| 166 IntSize m_inputEventsOffsetForEmulation; | 163 IntSize m_inputEventsOffsetForEmulation; |
| 167 float m_inputEventsScaleFactorForEmulation; | 164 float m_inputEventsScaleFactorForEmulation; |
| 168 }; | 165 }; |
| 169 | 166 |
| 170 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); | 167 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); |
| 171 | 168 |
| 172 } // namespace blink | 169 } // namespace blink |
| 173 | 170 |
| 174 #endif // SKY_ENGINE_WEB_WEBLOCALFRAMEIMPL_H_ | 171 #endif // SKY_ENGINE_WEB_WEBLOCALFRAMEIMPL_H_ |
| OLD | NEW |