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

Side by Side Diff: sky/engine/public/web/WebFrameClient.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/WebContextMenuData.h ('k') | sky/engine/public/web/WebInputEvent.h » ('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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class WebInputEvent; 49 class WebInputEvent;
50 class WebMediaPlayer; 50 class WebMediaPlayer;
51 class WebMediaPlayerClient; 51 class WebMediaPlayerClient;
52 class WebNode; 52 class WebNode;
53 class WebString; 53 class WebString;
54 class WebURL; 54 class WebURL;
55 class WebURLLoader; 55 class WebURLLoader;
56 class WebURLResponse; 56 class WebURLResponse;
57 struct WebColorSuggestion; 57 struct WebColorSuggestion;
58 struct WebConsoleMessage; 58 struct WebConsoleMessage;
59 struct WebContextMenuData;
60 struct WebRect; 59 struct WebRect;
61 struct WebSize; 60 struct WebSize;
62 struct WebURLError; 61 struct WebURLError;
63 62
64 class WebFrameClient { 63 class WebFrameClient {
65 public: 64 public:
66 // Factory methods ----------------------------------------------------- 65 // Factory methods -----------------------------------------------------
67 66
68 // May return null. 67 // May return null.
69 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web MediaPlayerClient*) { return 0; } 68 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web MediaPlayerClient*) { return 0; }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 166
168 // Provides serialized markup of transition elements for use in the followin g navigation. 167 // Provides serialized markup of transition elements for use in the followin g navigation.
169 virtual void addNavigationTransitionData(const WebString& allowedDestination Origin, const WebString& selector, const WebString& markup) { } 168 virtual void addNavigationTransitionData(const WebString& allowedDestination Origin, const WebString& selector, const WebString& markup) { }
170 169
171 // Editing ------------------------------------------------------------- 170 // Editing -------------------------------------------------------------
172 171
173 // These methods allow the client to intercept and overrule editing 172 // These methods allow the client to intercept and overrule editing
174 // operations. 173 // operations.
175 virtual void didChangeSelection(bool isSelectionEmpty) { } 174 virtual void didChangeSelection(bool isSelectionEmpty) { }
176 175
177
178 // UI ------------------------------------------------------------------
179
180 // Shows a context menu with commands relevant to a specific element on
181 // the given frame. Additional context data is supplied.
182 virtual void showContextMenu(const WebContextMenuData&) { }
183
184 // Called when the data attached to the currently displayed context menu is
185 // invalidated. The context menu may be closed if possible.
186 virtual void clearContextMenu() { }
187
188
189 // Low-level resource notifications ------------------------------------ 176 // Low-level resource notifications ------------------------------------
190 177
191 // An element will request a resource. 178 // An element will request a resource.
192 virtual void willRequestResource(WebLocalFrame*, const WebCachedURLRequest&) { } 179 virtual void willRequestResource(WebLocalFrame*, const WebCachedURLRequest&) { }
193 180
194 // A request is about to be sent out, and the client may modify it. Request 181 // A request is about to be sent out, and the client may modify it. Request
195 // is writable, and changes to the URL, for example, will change the request 182 // is writable, and changes to the URL, for example, will change the request
196 // made. If this request is the result of a redirect, then redirectResponse 183 // made. If this request is the result of a redirect, then redirectResponse
197 // will be non-null and contain the response that triggered the redirect. 184 // will be non-null and contain the response that triggered the redirect.
198 virtual void willSendRequest( 185 virtual void willSendRequest(
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // Send initial drawing parameters to a child frame that is being rendered o ut of process. 251 // Send initial drawing parameters to a child frame that is being rendered o ut of process.
265 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { } 252 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { }
266 253
267 protected: 254 protected:
268 virtual ~WebFrameClient() { } 255 virtual ~WebFrameClient() { }
269 }; 256 };
270 257
271 } // namespace blink 258 } // namespace blink
272 259
273 #endif 260 #endif
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebContextMenuData.h ('k') | sky/engine/public/web/WebInputEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698