| 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 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 // for the first time. | 985 // for the first time. |
| 986 if (!received_previously && web_frame_->Client()) | 986 if (!received_previously && web_frame_->Client()) |
| 987 web_frame_->Client()->SetHasReceivedUserGesture(); | 987 web_frame_->Client()->SetHasReceivedUserGesture(); |
| 988 // WebAutofillClient reacts only to the user gestures for this particular | 988 // WebAutofillClient reacts only to the user gestures for this particular |
| 989 // frame. |received_previously| is ignored because it may be true due to an | 989 // frame. |received_previously| is ignored because it may be true due to an |
| 990 // event in a child frame. | 990 // event in a child frame. |
| 991 if (WebAutofillClient* autofill_client = web_frame_->AutofillClient()) | 991 if (WebAutofillClient* autofill_client = web_frame_->AutofillClient()) |
| 992 autofill_client->UserGestureObserved(); | 992 autofill_client->UserGestureObserved(); |
| 993 } | 993 } |
| 994 | 994 |
| 995 void LocalFrameClientImpl::SetDevToolsFrameId(const String& devtools_frame_id) { |
| 996 if (web_frame_->Client()) |
| 997 web_frame_->Client()->SetDevToolsFrameId(devtools_frame_id); |
| 998 } |
| 999 |
| 995 void LocalFrameClientImpl::AbortClientNavigation() { | 1000 void LocalFrameClientImpl::AbortClientNavigation() { |
| 996 if (web_frame_->Client()) | 1001 if (web_frame_->Client()) |
| 997 web_frame_->Client()->AbortClientNavigation(); | 1002 web_frame_->Client()->AbortClientNavigation(); |
| 998 } | 1003 } |
| 999 | 1004 |
| 1000 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { | 1005 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { |
| 1001 return web_frame_->GetTextCheckerClient(); | 1006 return web_frame_->GetTextCheckerClient(); |
| 1002 } | 1007 } |
| 1003 | 1008 |
| 1004 } // namespace blink | 1009 } // namespace blink |
| OLD | NEW |