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

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

Issue 364253007: Revert of [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
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientationController.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ScreenOrientationController::from(*frame()).notifyOrientationChanged(); 1387 frame()->sendOrientationChangeEvent();
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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 1851
1852 void WebLocalFrameImpl::invalidateAll() const 1852 void WebLocalFrameImpl::invalidateAll() const
1853 { 1853 {
1854 ASSERT(frame() && frame()->view()); 1854 ASSERT(frame() && frame()->view());
1855 FrameView* view = frame()->view(); 1855 FrameView* view = frame()->view();
1856 view->invalidateRect(view->frameRect()); 1856 view->invalidateRect(view->frameRect());
1857 invalidateScrollbar(); 1857 invalidateScrollbar();
1858 } 1858 }
1859 1859
1860 } // namespace blink 1860 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientationController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698