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

Side by Side Diff: third_party/WebKit/Source/core/page/ChromeClient.h

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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, 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 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 virtual WebScreenInfo screenInfo() const = 0; 162 virtual WebScreenInfo screenInfo() const = 0;
163 virtual void setCursor(const Cursor&, LocalFrame* localRoot) = 0; 163 virtual void setCursor(const Cursor&, LocalFrame* localRoot) = 0;
164 // End methods used by HostWindow. 164 // End methods used by HostWindow.
165 virtual Cursor lastSetCursorForTesting() const = 0; 165 virtual Cursor lastSetCursorForTesting() const = 0;
166 166
167 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&) const { } 167 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&) const { }
168 168
169 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0; 169 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0;
170 virtual void pageScaleFactorChanged() const { } 170 virtual void pageScaleFactorChanged() const { }
171 virtual float clampPageScaleFactorToLimits(float scale) const { return scale ; } 171 virtual float clampPageScaleFactorToLimits(float scale) const { return scale ; }
172 virtual void mainFrameScrollOffsetChanged() const {}
172 virtual void layoutUpdated(LocalFrame*) const { } 173 virtual void layoutUpdated(LocalFrame*) const { }
173 174
174 void mouseDidMoveOverElement(const HitTestResult&); 175 void mouseDidMoveOverElement(const HitTestResult&);
175 virtual void setToolTip(const String&, TextDirection) = 0; 176 virtual void setToolTip(const String&, TextDirection) = 0;
176 void clearToolTip(); 177 void clearToolTip();
177 178
178 void print(LocalFrame*); 179 void print(LocalFrame*);
179 180
180 virtual void annotatedRegionsChanged() = 0; 181 virtual void annotatedRegionsChanged() = 0;
181 182
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 302
302 LayoutPoint m_lastToolTipPoint; 303 LayoutPoint m_lastToolTipPoint;
303 String m_lastToolTipText; 304 String m_lastToolTipText;
304 305
305 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 306 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
306 }; 307 };
307 308
308 } // namespace blink 309 } // namespace blink
309 310
310 #endif // ChromeClient_h 311 #endif // ChromeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698