| OLD | NEW |
| 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 26 matching lines...) Expand all Loading... |
| 37 #include "WebDragOperation.h" | 37 #include "WebDragOperation.h" |
| 38 #include "WebFrame.h" | 38 #include "WebFrame.h" |
| 39 #include "WebNavigatorContentUtilsClient.h" | 39 #include "WebNavigatorContentUtilsClient.h" |
| 40 #include "WebPageVisibilityState.h" | 40 #include "WebPageVisibilityState.h" |
| 41 #include "WebTextAffinity.h" | 41 #include "WebTextAffinity.h" |
| 42 #include "WebTextDirection.h" | 42 #include "WebTextDirection.h" |
| 43 #include "WebWidgetClient.h" | 43 #include "WebWidgetClient.h" |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 class ServiceProvider; |
| 47 class WebCompositorOutputSurface; | 48 class WebCompositorOutputSurface; |
| 48 class WebElement; | 49 class WebElement; |
| 49 class WebGestureEvent; | 50 class WebGestureEvent; |
| 50 class WebHitTestResult; | 51 class WebHitTestResult; |
| 51 class WebImage; | 52 class WebImage; |
| 52 class WebKeyboardEvent; | 53 class WebKeyboardEvent; |
| 53 class WebNode; | 54 class WebNode; |
| 54 class WebRange; | 55 class WebRange; |
| 55 class WebURL; | 56 class WebURL; |
| 56 class WebURLRequest; | 57 class WebURLRequest; |
| 57 class WebView; | 58 class WebView; |
| 58 class WebWidget; | 59 class WebWidget; |
| 59 struct WebConsoleMessage; | 60 struct WebConsoleMessage; |
| 60 struct WebPoint; | 61 struct WebPoint; |
| 61 struct WebRect; | 62 struct WebRect; |
| 62 struct WebSize; | 63 struct WebSize; |
| 63 | 64 |
| 64 // Since a WebView is a WebWidget, a WebViewClient is a WebWidgetClient. | 65 // Since a WebView is a WebWidget, a WebViewClient is a WebWidgetClient. |
| 65 // Virtual inheritance allows an implementation of WebWidgetClient to be | 66 // Virtual inheritance allows an implementation of WebWidgetClient to be |
| 66 // easily reused as part of an implementation of WebViewClient. | 67 // easily reused as part of an implementation of WebViewClient. |
| 67 class WebViewClient : virtual public WebWidgetClient { | 68 class WebViewClient : virtual public WebWidgetClient { |
| 68 public: | 69 public: |
| 70 virtual ServiceProvider* services() = 0; |
| 71 |
| 69 // Editing ------------------------------------------------------------- | 72 // Editing ------------------------------------------------------------- |
| 70 | 73 |
| 71 // This method is called in response to WebView's handleInputEvent() | 74 // This method is called in response to WebView's handleInputEvent() |
| 72 // when the default action for the current keyboard event is not | 75 // when the default action for the current keyboard event is not |
| 73 // 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 |
| 74 // the keyboard event specially. | 77 // the keyboard event specially. |
| 75 // | 78 // |
| 76 // Returns true if the keyboard event was handled by the embedder, | 79 // Returns true if the keyboard event was handled by the embedder, |
| 77 // indicating that the default action should be suppressed. | 80 // indicating that the default action should be suppressed. |
| 78 virtual bool handleCurrentKeyboardEvent() { return false; } | 81 virtual bool handleCurrentKeyboardEvent() { return false; } |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // 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. |
| 173 virtual void cancelScheduledContentIntents() { } | 176 virtual void cancelScheduledContentIntents() { } |
| 174 | 177 |
| 175 protected: | 178 protected: |
| 176 ~WebViewClient() { } | 179 ~WebViewClient() { } |
| 177 }; | 180 }; |
| 178 | 181 |
| 179 } // namespace blink | 182 } // namespace blink |
| 180 | 183 |
| 181 #endif | 184 #endif |
| OLD | NEW |