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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2103733004: Set navigationStart correctly for all load types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment, fix indent. Created 4 years, 5 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
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 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after
1912 { 1912 {
1913 return frame() && frame()->navigationScheduler().isNavigationScheduledWithin (intervalInSeconds); 1913 return frame() && frame()->navigationScheduler().isNavigationScheduledWithin (intervalInSeconds);
1914 } 1914 }
1915 1915
1916 void WebLocalFrameImpl::setCommittedFirstRealLoad() 1916 void WebLocalFrameImpl::setCommittedFirstRealLoad()
1917 { 1917 {
1918 DCHECK(frame()); 1918 DCHECK(frame());
1919 ensureFrameLoaderHasCommitted(frame()->loader()); 1919 ensureFrameLoaderHasCommitted(frame()->loader());
1920 } 1920 }
1921 1921
1922 bool WebLocalFrameImpl::getDidAccessInitialDocument() const
1923 {
1924 return frame() && frame()->loader().getDidAccessInitialDocument();
1925 }
1926
1922 void WebLocalFrameImpl::sendOrientationChangeEvent() 1927 void WebLocalFrameImpl::sendOrientationChangeEvent()
1923 { 1928 {
1924 if (!frame()) 1929 if (!frame())
1925 return; 1930 return;
1926 1931
1927 // Screen Orientation API 1932 // Screen Orientation API
1928 if (ScreenOrientationController::from(*frame())) 1933 if (ScreenOrientationController::from(*frame()))
1929 ScreenOrientationController::from(*frame())->notifyOrientationChanged(); 1934 ScreenOrientationController::from(*frame())->notifyOrientationChanged();
1930 1935
1931 // Legacy window.orientation API 1936 // Legacy window.orientation API
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 { 2147 {
2143 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2148 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2144 } 2149 }
2145 2150
2146 void WebLocalFrameImpl::clearActiveFindMatch() 2151 void WebLocalFrameImpl::clearActiveFindMatch()
2147 { 2152 {
2148 ensureTextFinder().clearActiveFindMatch(); 2153 ensureTextFinder().clearActiveFindMatch();
2149 } 2154 }
2150 2155
2151 } // namespace blink 2156 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698