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

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

Issue 1603253003: Add dedicated windowToViewport method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 253
254 virtual FloatSize elasticOverscroll() const { return FloatSize(); } 254 virtual FloatSize elasticOverscroll() const { return FloatSize(); }
255 255
256 // Called when observed XHR, fetch, and other fetch request with non-GET 256 // Called when observed XHR, fetch, and other fetch request with non-GET
257 // method is initiated from javascript. At this time, it is not guaranteed 257 // method is initiated from javascript. At this time, it is not guaranteed
258 // that this is comprehensive. 258 // that this is comprehensive.
259 virtual void didObserveNonGetFetchFromScript() const {} 259 virtual void didObserveNonGetFetchFromScript() const {}
260 260
261 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler() = 0; 261 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler() = 0;
262 262
263 float screenToViewport(float) const override;
264
265 protected: 263 protected:
266 ~ChromeClient() override { } 264 ~ChromeClient() override { }
267 265
268 virtual void showMouseOverURL(const HitTestResult&) = 0; 266 virtual void showMouseOverURL(const HitTestResult&) = 0;
269 virtual void setWindowRect(const IntRect&) = 0; 267 virtual void setWindowRect(const IntRect&) = 0;
270 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String& message, bool isReload) = 0; 268 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String& message, bool isReload) = 0;
271 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; 269 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0;
272 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; 270 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0;
273 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0; 271 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0;
274 virtual void printDelegate(LocalFrame*) = 0; 272 virtual void printDelegate(LocalFrame*) = 0;
275 273
276 private: 274 private:
277 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message); 275 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message);
278 void setToolTip(const HitTestResult&); 276 void setToolTip(const HitTestResult&);
279 277
280 LayoutPoint m_lastToolTipPoint; 278 LayoutPoint m_lastToolTipPoint;
281 String m_lastToolTipText; 279 String m_lastToolTipText;
282 280
283 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 281 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
284 }; 282 };
285 283
286 } // namespace blink 284 } // namespace blink
287 285
288 #endif // ChromeClient_h 286 #endif // ChromeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698