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

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

Issue 2830753004: Pipe the devTools FrameId from blink into the browser for headless (Closed)
Patch Set: Changes for Sami and creis@ Created 3 years, 7 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 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 // for the first time. 986 // for the first time.
987 if (!received_previously && web_frame_->Client()) 987 if (!received_previously && web_frame_->Client())
988 web_frame_->Client()->SetHasReceivedUserGesture(); 988 web_frame_->Client()->SetHasReceivedUserGesture();
989 // WebAutofillClient reacts only to the user gestures for this particular 989 // WebAutofillClient reacts only to the user gestures for this particular
990 // frame. |received_previously| is ignored because it may be true due to an 990 // frame. |received_previously| is ignored because it may be true due to an
991 // event in a child frame. 991 // event in a child frame.
992 if (WebAutofillClient* autofill_client = web_frame_->AutofillClient()) 992 if (WebAutofillClient* autofill_client = web_frame_->AutofillClient())
993 autofill_client->UserGestureObserved(); 993 autofill_client->UserGestureObserved();
994 } 994 }
995 995
996 void LocalFrameClientImpl::SetDevToolsFrameId(const String& devtools_frame_id) {
997 if (web_frame_->Client())
998 web_frame_->Client()->SetDevToolsFrameId(devtools_frame_id);
999 }
1000
996 void LocalFrameClientImpl::AbortClientNavigation() { 1001 void LocalFrameClientImpl::AbortClientNavigation() {
997 if (web_frame_->Client()) 1002 if (web_frame_->Client())
998 web_frame_->Client()->AbortClientNavigation(); 1003 web_frame_->Client()->AbortClientNavigation();
999 } 1004 }
1000 1005
1001 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { 1006 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const {
1002 return web_frame_->GetTextCheckerClient(); 1007 return web_frame_->GetTextCheckerClient();
1003 } 1008 }
1004 1009
1005 } // namespace blink 1010 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698