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

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

Issue 1560403002: Scale scrollbar in use-zoom-for-dsf mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unintentional change 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
263 protected: 265 protected:
264 ~ChromeClient() override { } 266 ~ChromeClient() override { }
265 267
266 virtual void showMouseOverURL(const HitTestResult&) = 0; 268 virtual void showMouseOverURL(const HitTestResult&) = 0;
267 virtual void setWindowRect(const IntRect&) = 0; 269 virtual void setWindowRect(const IntRect&) = 0;
268 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String& message, bool isReload) = 0; 270 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String& message, bool isReload) = 0;
269 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; 271 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0;
270 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; 272 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0;
271 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0; 273 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0;
272 virtual void printDelegate(LocalFrame*) = 0; 274 virtual void printDelegate(LocalFrame*) = 0;
273 275
274 private: 276 private:
275 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message); 277 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message);
276 void setToolTip(const HitTestResult&); 278 void setToolTip(const HitTestResult&);
277 279
278 LayoutPoint m_lastToolTipPoint; 280 LayoutPoint m_lastToolTipPoint;
279 String m_lastToolTipText; 281 String m_lastToolTipText;
280 282
281 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 283 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
282 }; 284 };
283 285
284 } // namespace blink 286 } // namespace blink
285 287
286 #endif // ChromeClient_h 288 #endif // ChromeClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp ('k') | third_party/WebKit/Source/core/page/ChromeClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698