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

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: sync. 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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 599
600 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame); 600 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame);
601 webframe->didChangeContentsSize(size); 601 webframe->didChangeContentsSize(size);
602 } 602 }
603 603
604 void ChromeClientImpl::pageScaleFactorChanged() const 604 void ChromeClientImpl::pageScaleFactorChanged() const
605 { 605 {
606 m_webView->pageScaleFactorChanged(); 606 m_webView->pageScaleFactorChanged();
607 } 607 }
608 608
609 void ChromeClientImpl::mainFrameScrollOffsetChanged() const
610 {
611 m_webView->mainFrameScrollOffsetChanged();
612 }
613
609 float ChromeClientImpl::clampPageScaleFactorToLimits(float scale) const 614 float ChromeClientImpl::clampPageScaleFactorToLimits(float scale) const
610 { 615 {
611 return m_webView->clampPageScaleFactorToLimits(scale); 616 return m_webView->clampPageScaleFactorToLimits(scale);
612 } 617 }
613 618
614 void ChromeClientImpl::layoutUpdated(LocalFrame* frame) const 619 void ChromeClientImpl::layoutUpdated(LocalFrame* frame) const
615 { 620 {
616 m_webView->layoutUpdated(WebLocalFrameImpl::fromFrame(frame)); 621 m_webView->layoutUpdated(WebLocalFrameImpl::fromFrame(frame));
617 } 622 }
618 623
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 { 1099 {
1095 return wrapUnique(m_webView->scheduler()->createFrameScheduler(blameContext) .release()); 1100 return wrapUnique(m_webView->scheduler()->createFrameScheduler(blameContext) .release());
1096 } 1101 }
1097 1102
1098 double ChromeClientImpl::lastFrameTimeMonotonic() const 1103 double ChromeClientImpl::lastFrameTimeMonotonic() const
1099 { 1104 {
1100 return m_webView->lastFrameTimeMonotonic(); 1105 return m_webView->lastFrameTimeMonotonic();
1101 } 1106 }
1102 1107
1103 } // namespace blink 1108 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698