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

Side by Side Diff: Source/web/WebLocalFrameImpl.cpp

Issue 366853008: [screen-orientation] Expose orientation info in OrientationInformation interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698