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

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

Issue 695803003: Make clicks on <a> request a navigation (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 struct WebConsoleMessage; 60 struct WebConsoleMessage;
61 struct WebPoint; 61 struct WebPoint;
62 struct WebRect; 62 struct WebRect;
63 struct WebSize; 63 struct WebSize;
64 64
65 // Since a WebView is a WebWidget, a WebViewClient is a WebWidgetClient. 65 // Since a WebView is a WebWidget, a WebViewClient is a WebWidgetClient.
66 // Virtual inheritance allows an implementation of WebWidgetClient to be 66 // Virtual inheritance allows an implementation of WebWidgetClient to be
67 // easily reused as part of an implementation of WebViewClient. 67 // easily reused as part of an implementation of WebViewClient.
68 class WebViewClient : virtual public WebWidgetClient { 68 class WebViewClient : virtual public WebWidgetClient {
69 public: 69 public:
70 virtual ServiceProvider* services() = 0; 70 virtual ServiceProvider& services() = 0;
71 71
72 // Editing ------------------------------------------------------------- 72 // Editing -------------------------------------------------------------
73 73
74 // This method is called in response to WebView's handleInputEvent() 74 // This method is called in response to WebView's handleInputEvent()
75 // when the default action for the current keyboard event is not 75 // when the default action for the current keyboard event is not
76 // suppressed by the page, to give the embedder a chance to handle 76 // suppressed by the page, to give the embedder a chance to handle
77 // the keyboard event specially. 77 // the keyboard event specially.
78 // 78 //
79 // Returns true if the keyboard event was handled by the embedder, 79 // Returns true if the keyboard event was handled by the embedder,
80 // indicating that the default action should be suppressed. 80 // indicating that the default action should be suppressed.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // Cancels any previously scheduled content intents that have not yet launch ed. 175 // Cancels any previously scheduled content intents that have not yet launch ed.
176 virtual void cancelScheduledContentIntents() { } 176 virtual void cancelScheduledContentIntents() { }
177 177
178 protected: 178 protected:
179 ~WebViewClient() { } 179 ~WebViewClient() { }
180 }; 180 };
181 181
182 } // namespace blink 182 } // namespace blink
183 183
184 #endif 184 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698