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

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

Issue 1774653002: Decouple scheduling animation of webview plugins from layout. (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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // of the corresponding object element. 96 // of the corresponding object element.
97 virtual bool getFormValue(WebString&) { return false; } 97 virtual bool getFormValue(WebString&) { return false; }
98 virtual bool supportsKeyboardFocus() const { return false; } 98 virtual bool supportsKeyboardFocus() const { return false; }
99 virtual bool supportsEditCommands() const { return false; } 99 virtual bool supportsEditCommands() const { return false; }
100 // Returns true if this plugin supports input method, which implements 100 // Returns true if this plugin supports input method, which implements
101 // setComposition() and confirmComposition() below. 101 // setComposition() and confirmComposition() below.
102 virtual bool supportsInputMethod() const { return false; } 102 virtual bool supportsInputMethod() const { return false; }
103 103
104 virtual bool canProcessDrag() const { return false; } 104 virtual bool canProcessDrag() const { return false; }
105 105
106 // TODO(schenney): Make these pure virtual when chromium changes land 106 virtual void updateAllLifecyclePhases() = 0;
107 virtual void layoutIfNeeded() { }
108 virtual void paint(WebCanvas*, const WebRect&) = 0; 107 virtual void paint(WebCanvas*, const WebRect&) = 0;
109 108
110 // Coordinates are relative to the containing window. 109 // Coordinates are relative to the containing window.
111 virtual void updateGeometry( 110 virtual void updateGeometry(
112 const WebRect& windowRect, const WebRect& clipRect, 111 const WebRect& windowRect, const WebRect& clipRect,
113 const WebRect& unobscuredRect, const WebVector<WebRect>& cutOutsRects, 112 const WebRect& unobscuredRect, const WebVector<WebRect>& cutOutsRects,
114 bool isVisible) = 0; 113 bool isVisible) = 0;
115 114
116 virtual void updateFocus(bool focused, WebFocusType) = 0; 115 virtual void updateFocus(bool focused, WebFocusType) = 0;
117 116
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 188
190 virtual bool isPlaceholder() { return true; } 189 virtual bool isPlaceholder() { return true; }
191 190
192 protected: 191 protected:
193 ~WebPlugin() { } 192 ~WebPlugin() { }
194 }; 193 };
195 194
196 } // namespace blink 195 } // namespace blink
197 196
198 #endif 197 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698