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

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

Issue 1012473002: Remove WebPlugin::updateFocus(bool). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/tests/FakeWebPlugin.h ('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, 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 virtual bool canProcessDrag() const { return false; } 88 virtual bool canProcessDrag() const { return false; }
89 89
90 virtual void paint(WebCanvas*, const WebRect&) = 0; 90 virtual void paint(WebCanvas*, const WebRect&) = 0;
91 91
92 // Coordinates are relative to the containing window. 92 // Coordinates are relative to the containing window.
93 virtual void updateGeometry( 93 virtual void updateGeometry(
94 const WebRect& frameRect, const WebRect& clipRect, 94 const WebRect& frameRect, const WebRect& clipRect,
95 const WebVector<WebRect>& cutOutsRects, bool isVisible) = 0; 95 const WebVector<WebRect>& cutOutsRects, bool isVisible) = 0;
96 96
97 // FIXME: Remove this once the Blink embedder has been updated to use 97 virtual void updateFocus(bool focused, WebFocusType) = 0;
98 // the new version of updateFocus.
99 virtual void updateFocus(bool focused) { }
100
101 virtual void updateFocus(bool focused, WebFocusType)
102 {
103 updateFocus(focused);
104 }
105 98
106 virtual void updateVisibility(bool) = 0; 99 virtual void updateVisibility(bool) = 0;
107 100
108 virtual bool acceptsInputEvents() = 0; 101 virtual bool acceptsInputEvents() = 0;
109 virtual bool handleInputEvent(const WebInputEvent&, WebCursorInfo&) = 0; 102 virtual bool handleInputEvent(const WebInputEvent&, WebCursorInfo&) = 0;
110 103
111 virtual bool handleDragStatusUpdate(WebDragStatus, const WebDragData&, WebDr agOperationsMask, const WebPoint& position, const WebPoint& screenPosition) { re turn false; } 104 virtual bool handleDragStatusUpdate(WebDragStatus, const WebDragData&, WebDr agOperationsMask, const WebPoint& position, const WebPoint& screenPosition) { re turn false; }
112 105
113 virtual void didReceiveResponse(const WebURLResponse&) = 0; 106 virtual void didReceiveResponse(const WebURLResponse&) = 0;
114 virtual void didReceiveData(const char* data, int dataLength) = 0; 107 virtual void didReceiveData(const char* data, int dataLength) = 0;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 virtual bool isPlaceholder() { return true; } 180 virtual bool isPlaceholder() { return true; }
188 virtual bool shouldPersist() const { return false; } 181 virtual bool shouldPersist() const { return false; }
189 182
190 protected: 183 protected:
191 ~WebPlugin() { } 184 ~WebPlugin() { }
192 }; 185 };
193 186
194 } // namespace blink 187 } // namespace blink
195 188
196 #endif 189 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/FakeWebPlugin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698