OLD | NEW |
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 Loading... |
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 |
OLD | NEW |