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

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

Issue 2838503002: Remove redundant WebLocalFrame* parameter from WillReleaseScriptContext (Closed)
Patch Set: Rebase Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 v8::Local<v8::Context> context, 205 v8::Local<v8::Context> context,
206 int world_id) { 206 int world_id) {
207 if (web_frame_->Client()) 207 if (web_frame_->Client())
208 web_frame_->Client()->DidCreateScriptContext(web_frame_, context, world_id); 208 web_frame_->Client()->DidCreateScriptContext(web_frame_, context, world_id);
209 } 209 }
210 210
211 void LocalFrameClientImpl::WillReleaseScriptContext( 211 void LocalFrameClientImpl::WillReleaseScriptContext(
212 v8::Local<v8::Context> context, 212 v8::Local<v8::Context> context,
213 int world_id) { 213 int world_id) {
214 if (web_frame_->Client()) { 214 if (web_frame_->Client()) {
215 web_frame_->Client()->WillReleaseScriptContext(web_frame_, context, 215 web_frame_->Client()->WillReleaseScriptContext(context, world_id);
216 world_id);
217 } 216 }
218 } 217 }
219 218
220 bool LocalFrameClientImpl::AllowScriptExtensions() { 219 bool LocalFrameClientImpl::AllowScriptExtensions() {
221 return true; 220 return true;
222 } 221 }
223 222
224 void LocalFrameClientImpl::DidChangeScrollOffset() { 223 void LocalFrameClientImpl::DidChangeScrollOffset() {
225 if (web_frame_->Client()) 224 if (web_frame_->Client())
226 web_frame_->Client()->DidChangeScrollOffset(); 225 web_frame_->Client()->DidChangeScrollOffset();
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 void LocalFrameClientImpl::AbortClientNavigation() { 995 void LocalFrameClientImpl::AbortClientNavigation() {
997 if (web_frame_->Client()) 996 if (web_frame_->Client())
998 web_frame_->Client()->AbortClientNavigation(); 997 web_frame_->Client()->AbortClientNavigation();
999 } 998 }
1000 999
1001 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { 1000 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const {
1002 return web_frame_->GetTextCheckerClient(); 1001 return web_frame_->GetTextCheckerClient();
1003 } 1002 }
1004 1003
1005 } // namespace blink 1004 } // namespace blink
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698