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

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

Issue 2790893004: Delete Android content detectors. (Closed)
Patch Set: Rebase Created 3 years, 8 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 25 matching lines...) Expand all
36 #include "WebAXEnums.h" 36 #include "WebAXEnums.h"
37 #include "WebFrame.h" 37 #include "WebFrame.h"
38 #include "WebPopupType.h" 38 #include "WebPopupType.h"
39 #include "WebTextDirection.h" 39 #include "WebTextDirection.h"
40 #include "WebWidgetClient.h" 40 #include "WebWidgetClient.h"
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class WebDateTimeChooserCompletion; 44 class WebDateTimeChooserCompletion;
45 class WebFileChooserCompletion; 45 class WebFileChooserCompletion;
46 class WebHitTestResult;
47 class WebNode; 46 class WebNode;
48 class WebSpeechRecognizer; 47 class WebSpeechRecognizer;
49 class WebStorageNamespace; 48 class WebStorageNamespace;
50 class WebURL; 49 class WebURL;
51 class WebURLRequest; 50 class WebURLRequest;
52 class WebView; 51 class WebView;
53 class WebWidget; 52 class WebWidget;
54 struct WebDateTimeChooserParams; 53 struct WebDateTimeChooserParams;
55 struct WebPoint; 54 struct WebPoint;
56 struct WebRect; 55 struct WebRect;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 231
233 // Zoom ---------------------------------------------------------------- 232 // Zoom ----------------------------------------------------------------
234 233
235 // Informs the browser that the zoom levels for this frame have changed from 234 // Informs the browser that the zoom levels for this frame have changed from
236 // the default values. 235 // the default values.
237 virtual void zoomLimitsChanged(double minimumLevel, double maximumLevel) {} 236 virtual void zoomLimitsChanged(double minimumLevel, double maximumLevel) {}
238 237
239 // Informs the browser that the page scale has changed. 238 // Informs the browser that the page scale has changed.
240 virtual void pageScaleFactorChanged() {} 239 virtual void pageScaleFactorChanged() {}
241 240
242 // Content detection ----------------------------------------------------
243
244 // Detects if the content at (or around) provided hit test result
245 // corresponds to an intent that could be handed by an embedder
246 // (e.g., email addresses, phone numbers).
247 virtual WebURL detectContentIntentAt(const WebHitTestResult&) {
248 return WebURL();
249 }
250
251 // Schedules a new content intent with the provided url.
252 // The boolean flag is set to true when the user gesture has been applied
253 // to the element from the main frame.
254 virtual void scheduleContentIntent(const WebURL&, bool isMainFrame) {}
255
256 // Cancels any previously scheduled content intents that have not yet
257 // launched.
258 virtual void cancelScheduledContentIntents() {}
259
260 // Draggable regions ---------------------------------------------------- 241 // Draggable regions ----------------------------------------------------
261 242
262 // Informs the browser that the draggable regions have been updated. 243 // Informs the browser that the draggable regions have been updated.
263 virtual void draggableRegionsChanged() {} 244 virtual void draggableRegionsChanged() {}
264 245
265 virtual bool canHandleGestureEvent() { return false; } 246 virtual bool canHandleGestureEvent() { return false; }
266 247
267 // TODO(lfg): These methods are only exposed through WebViewClient while we 248 // TODO(lfg): These methods are only exposed through WebViewClient while we
268 // refactor WebView to not inherit from WebWidget. 249 // refactor WebView to not inherit from WebWidget.
269 // WebWidgetClient overrides. 250 // WebWidgetClient overrides.
(...skipping 15 matching lines...) Expand all
285 bool pageChanged) override {} 266 bool pageChanged) override {}
286 void show(WebNavigationPolicy) override {} 267 void show(WebNavigationPolicy) override {}
287 virtual WebWidgetClient* widgetClient() { return this; } 268 virtual WebWidgetClient* widgetClient() { return this; }
288 269
289 protected: 270 protected:
290 }; 271 };
291 272
292 } // namespace blink 273 } // namespace blink
293 274
294 #endif 275 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698