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

Side by Side Diff: third_party/WebKit/Source/core/loader/EmptyClients.h

Issue 1978763004: Drag image should always use the real device scale factor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « content/renderer/render_widget.h ('k') | third_party/WebKit/Source/core/page/ChromeClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org) 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org)
3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool tabsToLinks() override { return false; } 131 bool tabsToLinks() override { return false; }
132 132
133 IntRect windowResizerRect() const override { return IntRect(); } 133 IntRect windowResizerRect() const override { return IntRect(); }
134 134
135 void invalidateRect(const IntRect&) override {} 135 void invalidateRect(const IntRect&) override {}
136 void scheduleAnimation(Widget*) override {} 136 void scheduleAnimation(Widget*) override {}
137 137
138 IntRect viewportToScreen(const IntRect& r, const Widget*) const override { r eturn r; } 138 IntRect viewportToScreen(const IntRect& r, const Widget*) const override { r eturn r; }
139 float windowToViewportScalar(const float s) const override { return s; } 139 float windowToViewportScalar(const float s) const override { return s; }
140 WebScreenInfo screenInfo() const override { return WebScreenInfo(); } 140 WebScreenInfo screenInfo() const override { return WebScreenInfo(); }
141 float nonEmulatedDeviceScaleFactor() const { return 1.0f; }
142
141 void contentsSizeChanged(LocalFrame*, const IntSize&) const override {} 143 void contentsSizeChanged(LocalFrame*, const IntSize&) const override {}
142 144
143 void showMouseOverURL(const HitTestResult&) override {} 145 void showMouseOverURL(const HitTestResult&) override {}
144 146
145 void setToolTip(const String&, TextDirection) override {} 147 void setToolTip(const String&, TextDirection) override {}
146 148
147 void printDelegate(LocalFrame*) override {} 149 void printDelegate(LocalFrame*) override {}
148 150
149 void enumerateChosenDirectory(FileChooser*) override {} 151 void enumerateChosenDirectory(FileChooser*) override {}
150 152
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 ~EmptyContextMenuClient() override {} 328 ~EmptyContextMenuClient() override {}
327 void showContextMenu(const ContextMenu*) override {} 329 void showContextMenu(const ContextMenu*) override {}
328 void clearContextMenu() override {} 330 void clearContextMenu() override {}
329 }; 331 };
330 332
331 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); 333 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&);
332 334
333 } // namespace blink 335 } // namespace blink
334 336
335 #endif // EmptyClients_h 337 #endif // EmptyClients_h
OLDNEW
« no previous file with comments | « content/renderer/render_widget.h ('k') | third_party/WebKit/Source/core/page/ChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698