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

Side by Side Diff: Source/web/WebLocalFrameImpl.h

Issue 1046953003: Add the WebHistoryCommitType to didFailProvisionalLoad, part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 Range* activeMatch() const; 290 Range* activeMatch() const;
291 291
292 // When a Find operation ends, we want to set the selection to what was acti ve 292 // When a Find operation ends, we want to set the selection to what was acti ve
293 // and set focus to the first focusable node we find (starting with the firs t 293 // and set focus to the first focusable node we find (starting with the firs t
294 // node in the matched range and going up the inheritance chain). If we find 294 // node in the matched range and going up the inheritance chain). If we find
295 // nothing to focus we focus the first focusable node in the range. This 295 // nothing to focus we focus the first focusable node in the range. This
296 // allows us to set focus to a link (when we find text inside a link), which 296 // allows us to set focus to a link (when we find text inside a link), which
297 // allows us to navigate by pressing Enter after closing the Find box. 297 // allows us to navigate by pressing Enter after closing the Find box.
298 void setFindEndstateFocusAndSelection(); 298 void setFindEndstateFocusAndSelection();
299 299
300 void didFail(const ResourceError&, bool wasProvisional); 300 void didFail(const ResourceError&, bool wasProvisional, HistoryCommitType);
301 301
302 // Sets whether the WebLocalFrameImpl allows its document to be scrolled. 302 // Sets whether the WebLocalFrameImpl allows its document to be scrolled.
303 // If the parameter is true, allow the document to be scrolled. 303 // If the parameter is true, allow the document to be scrolled.
304 // Otherwise, disallow scrolling. 304 // Otherwise, disallow scrolling.
305 virtual void setCanHaveScrollbars(bool) override; 305 virtual void setCanHaveScrollbars(bool) override;
306 306
307 LocalFrame* frame() const { return m_frame.get(); } 307 LocalFrame* frame() const { return m_frame.get(); }
308 WebFrameClient* client() const { return m_client; } 308 WebFrameClient* client() const { return m_client; }
309 void setClient(WebFrameClient* client) { m_client = client; } 309 void setClient(WebFrameClient* client) { m_client = client; }
310 310
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 GC_PLUGIN_IGNORE("340522") 396 GC_PLUGIN_IGNORE("340522")
397 Persistent<WebLocalFrameImpl> m_selfKeepAlive; 397 Persistent<WebLocalFrameImpl> m_selfKeepAlive;
398 #endif 398 #endif
399 }; 399 };
400 400
401 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 401 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
402 402
403 } // namespace blink 403 } // namespace blink
404 404
405 #endif 405 #endif
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698