OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1377 } | 1377 } |
1378 | 1378 |
1379 void WebLocalFrameImpl::resetMatchCount() | 1379 void WebLocalFrameImpl::resetMatchCount() |
1380 { | 1380 { |
1381 ensureTextFinder().resetMatchCount(); | 1381 ensureTextFinder().resetMatchCount(); |
1382 } | 1382 } |
1383 | 1383 |
1384 void WebLocalFrameImpl::sendOrientationChangeEvent() | 1384 void WebLocalFrameImpl::sendOrientationChangeEvent() |
1385 { | 1385 { |
1386 if (frame()) | 1386 if (frame()) |
1387 frame()->sendOrientationChangeEvent(); | 1387 ScreenOrientationController::from(*frame()).notifyOrientationChanged(); |
1388 } | 1388 } |
1389 | 1389 |
1390 void WebLocalFrameImpl::dispatchMessageEventWithOriginCheck(const WebSecurityOri
gin& intendedTargetOrigin, const WebDOMEvent& event) | 1390 void WebLocalFrameImpl::dispatchMessageEventWithOriginCheck(const WebSecurityOri
gin& intendedTargetOrigin, const WebDOMEvent& event) |
1391 { | 1391 { |
1392 ASSERT(!event.isNull()); | 1392 ASSERT(!event.isNull()); |
1393 frame()->domWindow()->dispatchMessageEventWithOriginCheck(intendedTargetOrig
in.get(), event, nullptr); | 1393 frame()->domWindow()->dispatchMessageEventWithOriginCheck(intendedTargetOrig
in.get(), event, nullptr); |
1394 } | 1394 } |
1395 | 1395 |
1396 int WebLocalFrameImpl::findMatchMarkersVersion() const | 1396 int WebLocalFrameImpl::findMatchMarkersVersion() const |
1397 { | 1397 { |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1858 { | 1858 { |
1859 RefPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClientImpl, host
, owner); | 1859 RefPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClientImpl, host
, owner); |
1860 setWebCoreFrame(frame); | 1860 setWebCoreFrame(frame); |
1861 frame->tree().setName(name, fallbackName); | 1861 frame->tree().setName(name, fallbackName); |
1862 // May dispatch JS events; frame may be detached after this. | 1862 // May dispatch JS events; frame may be detached after this. |
1863 frame->init(); | 1863 frame->init(); |
1864 return frame; | 1864 return frame; |
1865 } | 1865 } |
1866 | 1866 |
1867 } // namespace blink | 1867 } // namespace blink |
OLD | NEW |