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

Side by Side Diff: Source/WebKit/chromium/src/WebFrameImpl.cpp

Issue 10907083: Merge 126609 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 3 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/WebKit/chromium/src/WebFrameImpl.h ('k') | no next file » | 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 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1173 unsigned WebFrameImpl::unloadListenerCount() const 1173 unsigned WebFrameImpl::unloadListenerCount() const
1174 { 1174 {
1175 return frame()->domWindow()->pendingUnloadEventListeners(); 1175 return frame()->domWindow()->pendingUnloadEventListeners();
1176 } 1176 }
1177 1177
1178 bool WebFrameImpl::isProcessingUserGesture() const 1178 bool WebFrameImpl::isProcessingUserGesture() const
1179 { 1179 {
1180 return ScriptController::processingUserGesture(); 1180 return ScriptController::processingUserGesture();
1181 } 1181 }
1182 1182
1183 bool WebFrameImpl::consumeUserGesture() const
1184 {
1185 return UserGestureIndicator::consumeUserGesture();
1186 }
1187
1183 bool WebFrameImpl::willSuppressOpenerInNewFrame() const 1188 bool WebFrameImpl::willSuppressOpenerInNewFrame() const
1184 { 1189 {
1185 return frame()->loader()->suppressOpenerInNewFrame(); 1190 return frame()->loader()->suppressOpenerInNewFrame();
1186 } 1191 }
1187 1192
1188 void WebFrameImpl::replaceSelection(const WebString& text) 1193 void WebFrameImpl::replaceSelection(const WebString& text)
1189 { 1194 {
1190 bool selectReplacement = false; 1195 bool selectReplacement = false;
1191 bool smartReplace = true; 1196 bool smartReplace = true;
1192 frame()->editor()->replaceSelectionWithText(text, selectReplacement, smartRe place); 1197 frame()->editor()->replaceSelectionWithText(text, selectReplacement, smartRe place);
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after
2444 2449
2445 String scriptResult; 2450 String scriptResult;
2446 if (!result.getString(scriptResult)) 2451 if (!result.getString(scriptResult))
2447 return; 2452 return;
2448 2453
2449 if (!m_frame->navigationScheduler()->locationChangePending()) 2454 if (!m_frame->navigationScheduler()->locationChangePending())
2450 m_frame->document()->loader()->writer()->replaceDocument(scriptResult, o wnerDocument.get()); 2455 m_frame->document()->loader()->writer()->replaceDocument(scriptResult, o wnerDocument.get());
2451 } 2456 }
2452 2457
2453 } // namespace WebKit 2458 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/WebFrameImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698