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

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

Issue 842113005: Delete a bunch of noop paint invalidation code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix comment Created 5 years, 11 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
« no previous file with comments | « sky/engine/web/ChromeClientImpl.cpp ('k') | sky/engine/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « sky/engine/web/ChromeClientImpl.cpp ('k') | sky/engine/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698