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

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

Issue 680703002: Remove more frame-level scrolling machinery. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/public/web/WebFrame.h ('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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 static WebLocalFrameImpl* fromFrame(LocalFrame*); 144 static WebLocalFrameImpl* fromFrame(LocalFrame*);
145 static WebLocalFrameImpl* fromFrame(LocalFrame&); 145 static WebLocalFrameImpl* fromFrame(LocalFrame&);
146 146
147 WebViewImpl* viewImpl() const; 147 WebViewImpl* viewImpl() const;
148 148
149 FrameView* frameView() const { return frame() ? frame()->view() : 0; } 149 FrameView* frameView() const { return frame() ? frame()->view() : 0; }
150 150
151 void didFail(const ResourceError&); 151 void didFail(const ResourceError&);
152 152
153 // Sets whether the WebLocalFrameImpl allows its document to be scrolled.
154 // If the parameter is true, allow the document to be scrolled.
155 // Otherwise, disallow scrolling.
156 virtual void setCanHaveScrollbars(bool) override;
157
158 LocalFrame* frame() const { return m_frame.get(); } 153 LocalFrame* frame() const { return m_frame.get(); }
159 WebFrameClient* client() const { return m_client; } 154 WebFrameClient* client() const { return m_client; }
160 void setClient(WebFrameClient* client) { m_client = client; } 155 void setClient(WebFrameClient* client) { m_client = client; }
161 156
162 void setInputEventsTransformForEmulation(const IntSize&, float); 157 void setInputEventsTransformForEmulation(const IntSize&, float);
163 158
164 static void selectWordAroundPosition(LocalFrame*, VisiblePosition); 159 static void selectWordAroundPosition(LocalFrame*, VisiblePosition);
165 160
166 // Invalidates both content area and the scrollbar. 161 // Invalidates both content area and the scrollbar.
167 void invalidateAll() const; 162 void invalidateAll() const;
(...skipping 21 matching lines...) Expand all
189 // Stores the additional input events offset and scale when device metrics e mulation is enabled. 184 // Stores the additional input events offset and scale when device metrics e mulation is enabled.
190 IntSize m_inputEventsOffsetForEmulation; 185 IntSize m_inputEventsOffsetForEmulation;
191 float m_inputEventsScaleFactorForEmulation; 186 float m_inputEventsScaleFactorForEmulation;
192 }; 187 };
193 188
194 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 189 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
195 190
196 } // namespace blink 191 } // namespace blink
197 192
198 #endif 193 #endif
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebFrame.h ('k') | sky/engine/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698