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

Side by Side Diff: third_party/WebKit/public/web/WebPluginContainer.h

Issue 1763103002: WebPluginContainer: expose and implement localToScreenRect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « third_party/WebKit/Source/web/WebPluginContainerImpl.cpp ('k') | no next file » | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // receive wheel events in some cases (such as when threaded compositing 120 // receive wheel events in some cases (such as when threaded compositing
121 // is in use but a scroll bar is not in use). 121 // is in use but a scroll bar is not in use).
122 virtual void setWantsWheelEvents(bool) = 0; 122 virtual void setWantsWheelEvents(bool) = 0;
123 123
124 // Converts root frame's coordinates to plugin's local coordinates. 124 // Converts root frame's coordinates to plugin's local coordinates.
125 virtual WebPoint rootFrameToLocalPoint(const WebPoint&) = 0; 125 virtual WebPoint rootFrameToLocalPoint(const WebPoint&) = 0;
126 126
127 // Converts plugin's local coordinate to root frame's coordinates. 127 // Converts plugin's local coordinate to root frame's coordinates.
128 virtual WebPoint localToRootFramePoint(const WebPoint&) = 0; 128 virtual WebPoint localToRootFramePoint(const WebPoint&) = 0;
129 129
130 // Converts plugin's local coordinate to screen's coordinates.
131 virtual WebRect localToScreenRect(const WebRect&) = 0;
132
130 // Returns the plugin this container owns. This plugin will be 133 // Returns the plugin this container owns. This plugin will be
131 // automatically destroyed when the container is destroyed. 134 // automatically destroyed when the container is destroyed.
132 virtual WebPlugin* plugin() = 0; 135 virtual WebPlugin* plugin() = 0;
133 136
134 // Sets the plugin owned by this container. If the container already owned 137 // Sets the plugin owned by this container. If the container already owned
135 // a different plugin before this call, that old plugin is now unowned. 138 // a different plugin before this call, that old plugin is now unowned.
136 // The caller is then responsible for destroying the old plugin. 139 // The caller is then responsible for destroying the old plugin.
137 virtual void setPlugin(WebPlugin*) = 0; 140 virtual void setPlugin(WebPlugin*) = 0;
138 141
139 virtual float deviceScaleFactor() = 0; 142 virtual float deviceScaleFactor() = 0;
140 virtual float pageScaleFactor() = 0; 143 virtual float pageScaleFactor() = 0;
141 virtual float pageZoomFactor() = 0; 144 virtual float pageZoomFactor() = 0;
142 145
143 // Sets the layer representing the plugin for compositing. The 146 // Sets the layer representing the plugin for compositing. The
144 // WebPluginContainer does *not* take ownership. 147 // WebPluginContainer does *not* take ownership.
145 virtual void setWebLayer(WebLayer*) = 0; 148 virtual void setWebLayer(WebLayer*) = 0;
146 149
147 protected: 150 protected:
148 ~WebPluginContainer() { } 151 ~WebPluginContainer() { }
149 }; 152 };
150 153
151 } // namespace blink 154 } // namespace blink
152 155
153 #endif 156 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebPluginContainerImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698