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

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.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) 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 LocalFrame*, const String& message, 97 LocalFrame*, const String& message,
98 const String& defaultValue, String& result) override; 98 const String& defaultValue, String& result) override;
99 void setStatusbarText(const String& message) override; 99 void setStatusbarText(const String& message) override;
100 bool tabsToLinks() override; 100 bool tabsToLinks() override;
101 IntRect windowResizerRect(LocalFrame&) const override; 101 IntRect windowResizerRect(LocalFrame&) const override;
102 void invalidateRect(const IntRect&) override; 102 void invalidateRect(const IntRect&) override;
103 void scheduleAnimation(Widget*) override; 103 void scheduleAnimation(Widget*) override;
104 IntRect viewportToScreen(const IntRect&, const Widget*) const override; 104 IntRect viewportToScreen(const IntRect&, const Widget*) const override;
105 float windowToViewportScalar(const float) const override; 105 float windowToViewportScalar(const float) const override;
106 WebScreenInfo screenInfo() const override; 106 WebScreenInfo screenInfo() const override;
107 WTF::Optional<IntRect> visibleContentRectForPainting() const override;
107 void contentsSizeChanged(LocalFrame*, const IntSize&) const override; 108 void contentsSizeChanged(LocalFrame*, const IntSize&) const override;
108 void pageScaleFactorChanged() const override; 109 void pageScaleFactorChanged() const override;
109 float clampPageScaleFactorToLimits(float scale) const override; 110 float clampPageScaleFactorToLimits(float scale) const override;
111 void mainFrameScrollOffsetChanged() const override;
110 void layoutUpdated(LocalFrame*) const override; 112 void layoutUpdated(LocalFrame*) const override;
111 void showMouseOverURL(const HitTestResult&) override; 113 void showMouseOverURL(const HitTestResult&) override;
112 void setToolTip(const String& tooltipText, TextDirection) override; 114 void setToolTip(const String& tooltipText, TextDirection) override;
113 void dispatchViewportPropertiesDidChange(const ViewportDescription&) const o verride; 115 void dispatchViewportPropertiesDidChange(const ViewportDescription&) const o verride;
114 void printDelegate(LocalFrame*) override; 116 void printDelegate(LocalFrame*) override;
115 void annotatedRegionsChanged() override; 117 void annotatedRegionsChanged() override;
116 ColorChooser* openColorChooser(LocalFrame*, ColorChooserClient*, const Color &) override; 118 ColorChooser* openColorChooser(LocalFrame*, ColorChooserClient*, const Color &) override;
117 DateTimeChooser* openDateTimeChooser(DateTimeChooserClient*, const DateTimeC hooserParameters&) override; 119 DateTimeChooser* openDateTimeChooser(DateTimeChooserClient*, const DateTimeC hooserParameters&) override;
118 void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) override; 120 void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) override;
119 void enumerateChosenDirectory(FileChooser*) override; 121 void enumerateChosenDirectory(FileChooser*) override;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 Cursor m_lastSetMouseCursorForTesting; 208 Cursor m_lastSetMouseCursorForTesting;
207 bool m_cursorOverridden; 209 bool m_cursorOverridden;
208 bool m_didRequestNonEmptyToolTip; 210 bool m_didRequestNonEmptyToolTip;
209 }; 211 };
210 212
211 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient Impl(), client.isChromeClientImpl()); 213 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient Impl(), client.isChromeClientImpl());
212 214
213 } // namespace blink 215 } // namespace blink
214 216
215 #endif 217 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698