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

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: Adress Dmitry's comments + sync. Created 4 years, 2 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 21 matching lines...) Expand all
32 #include "platform/Cursor.h" 32 #include "platform/Cursor.h"
33 #include "platform/HostWindow.h" 33 #include "platform/HostWindow.h"
34 #include "platform/PopupMenu.h" 34 #include "platform/PopupMenu.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "platform/scroll/ScrollTypes.h" 36 #include "platform/scroll/ScrollTypes.h"
37 #include "public/platform/BlameContext.h" 37 #include "public/platform/BlameContext.h"
38 #include "public/platform/WebDragOperation.h" 38 #include "public/platform/WebDragOperation.h"
39 #include "public/platform/WebEventListenerProperties.h" 39 #include "public/platform/WebEventListenerProperties.h"
40 #include "public/platform/WebFocusType.h" 40 #include "public/platform/WebFocusType.h"
41 #include "wtf/Forward.h" 41 #include "wtf/Forward.h"
42 #include "wtf/Optional.h"
42 #include "wtf/Vector.h" 43 #include "wtf/Vector.h"
43 #include <memory> 44 #include <memory>
44 45
45 namespace blink { 46 namespace blink {
46 47
47 class AXObject; 48 class AXObject;
48 class ColorChooser; 49 class ColorChooser;
49 class ColorChooserClient; 50 class ColorChooserClient;
50 class CompositorAnimationTimeline; 51 class CompositorAnimationTimeline;
51 class CompositorProxyClient; 52 class CompositorProxyClient;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 virtual void* webView() const = 0; 159 virtual void* webView() const = 0;
159 160
160 virtual IntRect windowResizerRect(LocalFrame&) const = 0; 161 virtual IntRect windowResizerRect(LocalFrame&) const = 0;
161 162
162 // Methods used by HostWindow. 163 // Methods used by HostWindow.
163 virtual WebScreenInfo screenInfo() const = 0; 164 virtual WebScreenInfo screenInfo() const = 0;
164 virtual void setCursor(const Cursor&, LocalFrame* localRoot) = 0; 165 virtual void setCursor(const Cursor&, LocalFrame* localRoot) = 0;
165 // End methods used by HostWindow. 166 // End methods used by HostWindow.
166 virtual Cursor lastSetCursorForTesting() const = 0; 167 virtual Cursor lastSetCursorForTesting() const = 0;
167 168
169 // Returns a custom visible content rect if a viewport override is active.
170 virtual WTF::Optional<IntRect> visibleContentRectForPainting() const { retur n WTF::nullopt; }
171
168 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&) const { } 172 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&) const { }
169 173
170 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0; 174 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0;
171 virtual void pageScaleFactorChanged() const { } 175 virtual void pageScaleFactorChanged() const { }
172 virtual float clampPageScaleFactorToLimits(float scale) const { return scale ; } 176 virtual float clampPageScaleFactorToLimits(float scale) const { return scale ; }
177 virtual void mainFrameScrollOffsetChanged() const { }
173 virtual void layoutUpdated(LocalFrame*) const { } 178 virtual void layoutUpdated(LocalFrame*) const { }
174 179
175 void mouseDidMoveOverElement(const HitTestResult&); 180 void mouseDidMoveOverElement(const HitTestResult&);
176 virtual void setToolTip(const String&, TextDirection) = 0; 181 virtual void setToolTip(const String&, TextDirection) = 0;
177 void clearToolTip(); 182 void clearToolTip();
178 183
179 void print(LocalFrame*); 184 void print(LocalFrame*);
180 185
181 virtual void annotatedRegionsChanged() = 0; 186 virtual void annotatedRegionsChanged() = 0;
182 187
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 310
306 LayoutPoint m_lastToolTipPoint; 311 LayoutPoint m_lastToolTipPoint;
307 String m_lastToolTipText; 312 String m_lastToolTipText;
308 313
309 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 314 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
310 }; 315 };
311 316
312 } // namespace blink 317 } // namespace blink
313 318
314 #endif // ChromeClient_h 319 #endif // ChromeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698