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

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

Issue 2082733002: Fix for PDF find-in-page bug. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_frame_impl.cc ('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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Otherwise an empty url is returned. 165 // Otherwise an empty url is returned.
166 virtual WebURL linkAtPosition(const WebPoint& position) const { return WebUR L(); } 166 virtual WebURL linkAtPosition(const WebPoint& position) const { return WebUR L(); }
167 167
168 // Find interface. 168 // Find interface.
169 // Start a new search. The plugin should search for a little bit at a time so that it 169 // Start a new search. The plugin should search for a little bit at a time so that it
170 // doesn't block the thread in case of a large document. The results, along with the 170 // doesn't block the thread in case of a large document. The results, along with the
171 // find's identifier, should be sent asynchronously to WebFrameClient's repo rtFindInPage* methods. 171 // find's identifier, should be sent asynchronously to WebFrameClient's repo rtFindInPage* methods.
172 // Returns true if the search started, or false if the plugin doesn't suppor t search. 172 // Returns true if the search started, or false if the plugin doesn't suppor t search.
173 virtual bool startFind(const WebString& searchText, bool caseSensitive, int identifier) { return false; } 173 virtual bool startFind(const WebString& searchText, bool caseSensitive, int identifier) { return false; }
174 // Tells the plugin to jump forward or backward in the list of find results. 174 // Tells the plugin to jump forward or backward in the list of find results.
175 virtual void selectFindResult(bool forward) { } 175 virtual void selectFindResult(bool forward, int identifier) { }
176 // Tells the plugin that the user has stopped the find operation. 176 // Tells the plugin that the user has stopped the find operation.
177 virtual void stopFind() { } 177 virtual void stopFind() { }
178 178
179 // View rotation types. 179 // View rotation types.
180 enum RotationType { 180 enum RotationType {
181 RotationType90Clockwise, 181 RotationType90Clockwise,
182 RotationType90Counterclockwise 182 RotationType90Counterclockwise
183 }; 183 };
184 // Whether the plugin can rotate the view of its content. 184 // Whether the plugin can rotate the view of its content.
185 virtual bool canRotateView() { return false; } 185 virtual bool canRotateView() { return false; }
186 // Rotates the plugin's view of its content. 186 // Rotates the plugin's view of its content.
187 virtual void rotateView(RotationType type) { } 187 virtual void rotateView(RotationType type) { }
188 188
189 virtual bool isPlaceholder() { return true; } 189 virtual bool isPlaceholder() { return true; }
190 190
191 protected: 191 protected:
192 ~WebPlugin() { } 192 ~WebPlugin() { }
193 }; 193 };
194 194
195 } // namespace blink 195 } // namespace blink
196 196
197 #endif 197 #endif
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698