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

Side by Side Diff: third_party/WebKit/Source/web/WebPluginContainerImpl.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 | « no previous file | third_party/WebKit/Source/web/WebPluginContainerImpl.cpp » ('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) 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void clearScriptObjects() override; 108 void clearScriptObjects() override;
109 NPObject* scriptableObjectForElement() override; 109 NPObject* scriptableObjectForElement() override;
110 v8::Local<v8::Object> v8ObjectForElement() override; 110 v8::Local<v8::Object> v8ObjectForElement() override;
111 WebString executeScriptURL(const WebURL&, bool popupsAllowed) override; 111 WebString executeScriptURL(const WebURL&, bool popupsAllowed) override;
112 void loadFrameRequest(const WebURLRequest&, const WebString& target) overrid e; 112 void loadFrameRequest(const WebURLRequest&, const WebString& target) overrid e;
113 bool isRectTopmost(const WebRect&) override; 113 bool isRectTopmost(const WebRect&) override;
114 void requestTouchEventType(TouchEventRequestType) override; 114 void requestTouchEventType(TouchEventRequestType) override;
115 void setWantsWheelEvents(bool) override; 115 void setWantsWheelEvents(bool) override;
116 WebPoint rootFrameToLocalPoint(const WebPoint&) override; 116 WebPoint rootFrameToLocalPoint(const WebPoint&) override;
117 WebPoint localToRootFramePoint(const WebPoint&) override; 117 WebPoint localToRootFramePoint(const WebPoint&) override;
118 WebRect localToScreenRect(const WebRect&) override;
118 119
119 // Non-Oilpan, this cannot be null. With Oilpan, it will be 120 // Non-Oilpan, this cannot be null. With Oilpan, it will be
120 // null when in a disposed state, pending finalization during the next GC. 121 // null when in a disposed state, pending finalization during the next GC.
121 WebPlugin* plugin() override { return m_webPlugin; } 122 WebPlugin* plugin() override { return m_webPlugin; }
122 void setPlugin(WebPlugin*) override; 123 void setPlugin(WebPlugin*) override;
123 124
124 float deviceScaleFactor() override; 125 float deviceScaleFactor() override;
125 float pageScaleFactor() override; 126 float pageScaleFactor() override;
126 float pageZoomFactor() override; 127 float pageZoomFactor() override;
127 128
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 }; 209 };
209 210
210 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer()); 211 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer());
211 // Unlike Widget, we need not worry about object type for container. 212 // Unlike Widget, we need not worry about object type for container.
212 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 213 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
213 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); 214 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue);
214 215
215 } // namespace blink 216 } // namespace blink
216 217
217 #endif 218 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698