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

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

Issue 925933004: Prune HitTestResult and stop special-casing links. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address review comments Created 5 years, 10 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/WebView.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 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 28 matching lines...) Expand all
39 #include "sky/engine/public/web/WebFrame.h" 39 #include "sky/engine/public/web/WebFrame.h"
40 #include "sky/engine/public/web/WebNavigatorContentUtilsClient.h" 40 #include "sky/engine/public/web/WebNavigatorContentUtilsClient.h"
41 #include "sky/engine/public/web/WebPageVisibilityState.h" 41 #include "sky/engine/public/web/WebPageVisibilityState.h"
42 #include "sky/engine/public/web/WebTextAffinity.h" 42 #include "sky/engine/public/web/WebTextAffinity.h"
43 #include "sky/engine/public/web/WebTextDirection.h" 43 #include "sky/engine/public/web/WebTextDirection.h"
44 44
45 namespace blink { 45 namespace blink {
46 46
47 class ServiceProvider; 47 class ServiceProvider;
48 class WebElement; 48 class WebElement;
49 class WebHitTestResult;
50 class WebImage; 49 class WebImage;
51 class WebKeyboardEvent; 50 class WebKeyboardEvent;
52 class WebNode; 51 class WebNode;
53 class WebRange; 52 class WebRange;
54 class WebURL; 53 class WebURL;
55 class WebURLRequest; 54 class WebURLRequest;
56 class WebView; 55 class WebView;
57 class WebWidget; 56 class WebWidget;
58 struct WebConsoleMessage; 57 struct WebConsoleMessage;
59 struct WebPoint; 58 struct WebPoint;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // 95 //
97 // Returns true if the keyboard event was handled by the embedder, 96 // Returns true if the keyboard event was handled by the embedder,
98 // indicating that the default action should be suppressed. 97 // indicating that the default action should be suppressed.
99 virtual bool handleCurrentKeyboardEvent() { return false; } 98 virtual bool handleCurrentKeyboardEvent() { return false; }
100 99
101 // UI ------------------------------------------------------------------ 100 // UI ------------------------------------------------------------------
102 101
103 // Called when script modifies window.status 102 // Called when script modifies window.status
104 virtual void setStatusText(const WebString&) { } 103 virtual void setStatusText(const WebString&) { }
105 104
106 // Called when keyboard focus switches to an anchor with the given URL.
107 virtual void setKeyboardFocusURL(const WebURL&) { }
108
109 // Called to determine if drag-n-drop operations may initiate a page 105 // Called to determine if drag-n-drop operations may initiate a page
110 // navigation. 106 // navigation.
111 virtual bool acceptsLoadDrops() { return true; } 107 virtual bool acceptsLoadDrops() { return true; }
112 108
113 // Take focus away from the WebView by focusing an adjacent UI element 109 // Take focus away from the WebView by focusing an adjacent UI element
114 // in the containing window. 110 // in the containing window.
115 virtual void focusNext() { } 111 virtual void focusNext() { }
116 virtual void focusPrevious() { } 112 virtual void focusPrevious() { }
117 113
118 // Called when a new node gets focused. 114 // Called when a new node gets focused.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 return WebPageVisibilityStateVisible; 151 return WebPageVisibilityStateVisible;
156 } 152 }
157 153
158 protected: 154 protected:
159 ~WebViewClient() { } 155 ~WebViewClient() { }
160 }; 156 };
161 157
162 } // namespace blink 158 } // namespace blink
163 159
164 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEWCLIENT_H_ 160 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEWCLIENT_H_
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebView.h ('k') | sky/engine/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698