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

Side by Side Diff: sky/engine/public/web/WebView.h

Issue 640143004: Remove context menus. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « sky/engine/public/web/WebInputEvent.h ('k') | sky/engine/web/BUILD.gn » ('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, 2010, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011, 2012 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 // Set an override of device scale factor passed from WebView to 260 // Set an override of device scale factor passed from WebView to
261 // compositor. Pass zero to cancel override. This is used to implement 261 // compositor. Pass zero to cancel override. This is used to implement
262 // device metrics emulation. 262 // device metrics emulation.
263 virtual void setCompositorDeviceScaleFactorOverride(float) = 0; 263 virtual void setCompositorDeviceScaleFactorOverride(float) = 0;
264 264
265 // Set offset and scale on the root composited layer. This is used 265 // Set offset and scale on the root composited layer. This is used
266 // to implement device metrics emulation. 266 // to implement device metrics emulation.
267 virtual void setRootLayerTransform(const WebSize& offset, float scale) = 0; 267 virtual void setRootLayerTransform(const WebSize& offset, float scale) = 0;
268 268
269 // Context menu --------------------------------------------------------
270
271 virtual void performCustomContextMenuAction(unsigned action) = 0;
272
273 // Shows a context menu for the currently focused element.
274 virtual void showContextMenu() = 0;
275
276
277 // SmartClip support --------------------------------------------------- 269 // SmartClip support ---------------------------------------------------
278 virtual void extractSmartClipData(WebRect initRect, WebString& text, WebStri ng& html, WebRect& resultRect) = 0; 270 virtual void extractSmartClipData(WebRect initRect, WebString& text, WebStri ng& html, WebRect& resultRect) = 0;
279 271
280 // Custom colors ------------------------------------------------------- 272 // Custom colors -------------------------------------------------------
281 273
282 virtual void setSelectionColors(unsigned activeBackgroundColor, 274 virtual void setSelectionColors(unsigned activeBackgroundColor,
283 unsigned activeForegroundColor, 275 unsigned activeForegroundColor,
284 unsigned inactiveBackgroundColor, 276 unsigned inactiveBackgroundColor,
285 unsigned inactiveForegroundColor) = 0; 277 unsigned inactiveForegroundColor) = 0;
286 278
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 322
331 // Testing functionality for TestRunner --------------------------------- 323 // Testing functionality for TestRunner ---------------------------------
332 324
333 protected: 325 protected:
334 ~WebView() {} 326 ~WebView() {}
335 }; 327 };
336 328
337 } // namespace blink 329 } // namespace blink
338 330
339 #endif 331 #endif
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebInputEvent.h ('k') | sky/engine/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698