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

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2237433004: Adds DevTools commands for forced viewport override. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 598
599 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame); 599 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame);
600 webframe->didChangeContentsSize(size); 600 webframe->didChangeContentsSize(size);
601 } 601 }
602 602
603 void ChromeClientImpl::pageScaleFactorChanged() const 603 void ChromeClientImpl::pageScaleFactorChanged() const
604 { 604 {
605 m_webView->pageScaleFactorChanged(); 605 m_webView->pageScaleFactorChanged();
606 } 606 }
607 607
608 void ChromeClientImpl::mainFrameScrollOffsetChanged() const
609 {
610 m_webView->mainFrameScrollOffsetChanged();
611 }
612
608 float ChromeClientImpl::clampPageScaleFactorToLimits(float scale) const 613 float ChromeClientImpl::clampPageScaleFactorToLimits(float scale) const
609 { 614 {
610 return m_webView->clampPageScaleFactorToLimits(scale); 615 return m_webView->clampPageScaleFactorToLimits(scale);
611 } 616 }
612 617
613 void ChromeClientImpl::layoutUpdated(LocalFrame* frame) const 618 void ChromeClientImpl::layoutUpdated(LocalFrame* frame) const
614 { 619 {
615 m_webView->layoutUpdated(WebLocalFrameImpl::fromFrame(frame)); 620 m_webView->layoutUpdated(WebLocalFrameImpl::fromFrame(frame));
616 } 621 }
617 622
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 { 1084 {
1080 return wrapUnique(m_webView->scheduler()->createFrameScheduler(blameContext) .release()); 1085 return wrapUnique(m_webView->scheduler()->createFrameScheduler(blameContext) .release());
1081 } 1086 }
1082 1087
1083 double ChromeClientImpl::lastFrameTimeMonotonic() const 1088 double ChromeClientImpl::lastFrameTimeMonotonic() const
1084 { 1089 {
1085 return m_webView->lastFrameTimeMonotonic(); 1090 return m_webView->lastFrameTimeMonotonic();
1086 } 1091 }
1087 1092
1088 } // namespace blink 1093 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698