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