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

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

Issue 26434002: Cleanup: Add more conversion helpers for usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // on failure. 213 // on failure.
214 virtual bool caretOrSelectionRange(size_t* location, size_t* length) { retur n false; } 214 virtual bool caretOrSelectionRange(size_t* location, size_t* length) { retur n false; }
215 215
216 // Changes the text direction of the selected input node. 216 // Changes the text direction of the selected input node.
217 virtual void setTextDirection(WebTextDirection) { } 217 virtual void setTextDirection(WebTextDirection) { }
218 218
219 // Returns true if the WebWidget uses GPU accelerated compositing 219 // Returns true if the WebWidget uses GPU accelerated compositing
220 // to render its contents. 220 // to render its contents.
221 virtual bool isAcceleratedCompositingActive() const { return false; } 221 virtual bool isAcceleratedCompositingActive() const { return false; }
222 222
223 // Returns true if the WebWidget created is of type WebPagePopup.
224 virtual bool isPagePopup() const { return false; }
225 // Returns true if the WebWidget created is of type WebPopupMenu.
226 virtual bool isPopupMenu() const { return false; }
227 // Returns true if the WebWidget created is of type WebHelperPlugin.
228 virtual bool isHelperPlugin() const { return false; }
229
223 // The WebLayerTreeView initialized on this WebWidgetClient will be going aw ay and 230 // The WebLayerTreeView initialized on this WebWidgetClient will be going aw ay and
224 // is no longer safe to access. 231 // is no longer safe to access.
225 virtual void willCloseLayerTreeView() { } 232 virtual void willCloseLayerTreeView() { }
226 233
227 // Calling WebWidgetClient::requestPointerLock() will result in one 234 // Calling WebWidgetClient::requestPointerLock() will result in one
228 // return call to didAcquirePointerLock() or didNotAcquirePointerLock(). 235 // return call to didAcquirePointerLock() or didNotAcquirePointerLock().
229 virtual void didAcquirePointerLock() { } 236 virtual void didAcquirePointerLock() { }
230 virtual void didNotAcquirePointerLock() { } 237 virtual void didNotAcquirePointerLock() { }
231 238
232 // Pointer lock was held, but has been lost. This may be due to a 239 // Pointer lock was held, but has been lost. This may be due to a
(...skipping 11 matching lines...) Expand all
244 // content. 251 // content.
245 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } 252 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ }
246 253
247 protected: 254 protected:
248 ~WebWidget() { } 255 ~WebWidget() { }
249 }; 256 };
250 257
251 } // namespace WebKit 258 } // namespace WebKit
252 259
253 #endif 260 #endif
OLDNEW
« Source/web/WebPopupMenuImpl.h ('K') | « Source/web/tests/FrameLoaderClientImplTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698