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

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: Rebased 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 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 // for the first time. 981 // for the first time.
982 if (!received_previously && web_frame_->Client()) 982 if (!received_previously && web_frame_->Client())
983 web_frame_->Client()->SetHasReceivedUserGesture(); 983 web_frame_->Client()->SetHasReceivedUserGesture();
984 // WebAutofillClient reacts only to the user gestures for this particular 984 // WebAutofillClient reacts only to the user gestures for this particular
985 // frame. |received_previously| is ignored because it may be true due to an 985 // frame. |received_previously| is ignored because it may be true due to an
986 // event in a child frame. 986 // event in a child frame.
987 if (WebAutofillClient* autofill_client = web_frame_->AutofillClient()) 987 if (WebAutofillClient* autofill_client = web_frame_->AutofillClient())
988 autofill_client->UserGestureObserved(); 988 autofill_client->UserGestureObserved();
989 } 989 }
990 990
991 void LocalFrameClientImpl::SetDevToolsFrameId(const String& devtools_frame_id) {
992 if (web_frame_->Client())
993 web_frame_->Client()->SetDevToolsFrameId(devtools_frame_id);
994 }
995
991 void LocalFrameClientImpl::AbortClientNavigation() { 996 void LocalFrameClientImpl::AbortClientNavigation() {
992 if (web_frame_->Client()) 997 if (web_frame_->Client())
993 web_frame_->Client()->AbortClientNavigation(); 998 web_frame_->Client()->AbortClientNavigation();
994 } 999 }
995 1000
996 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { 1001 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const {
997 return web_frame_->GetTextCheckerClient(); 1002 return web_frame_->GetTextCheckerClient();
998 } 1003 }
999 1004
1000 } // namespace blink 1005 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/LocalFrameClientImpl.h ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698