| 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 27 matching lines...) Expand all Loading... |
| 38 #include "sky/engine/public/web/WebPageVisibilityState.h" | 38 #include "sky/engine/public/web/WebPageVisibilityState.h" |
| 39 #include "sky/engine/public/web/WebTextAffinity.h" | 39 #include "sky/engine/public/web/WebTextAffinity.h" |
| 40 #include "sky/engine/public/web/WebTextDirection.h" | 40 #include "sky/engine/public/web/WebTextDirection.h" |
| 41 #include "sky/engine/public/web/WebWidgetClient.h" | 41 #include "sky/engine/public/web/WebWidgetClient.h" |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 class ServiceProvider; | 45 class ServiceProvider; |
| 46 class WebCompositorOutputSurface; | 46 class WebCompositorOutputSurface; |
| 47 class WebElement; | 47 class WebElement; |
| 48 class WebGestureEvent; | |
| 49 class WebHitTestResult; | 48 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; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // Called when a new node gets focused. | 100 // Called when a new node gets focused. |
| 102 virtual void focusedNodeChanged(const WebNode&) { } | 101 virtual void focusedNodeChanged(const WebNode&) { } |
| 103 | 102 |
| 104 // Indicates two things: | 103 // Indicates two things: |
| 105 // 1) This view may have a new layout now. | 104 // 1) This view may have a new layout now. |
| 106 // 2) Calling layout() is a no-op. | 105 // 2) Calling layout() is a no-op. |
| 107 // After calling WebWidget::layout(), expect to get this notification | 106 // After calling WebWidget::layout(), expect to get this notification |
| 108 // unless the view did not need a layout. | 107 // unless the view did not need a layout. |
| 109 virtual void didUpdateLayout() { } | 108 virtual void didUpdateLayout() { } |
| 110 | 109 |
| 111 // Return true to swallow the input event if the embedder will start a disam
biguation popup | |
| 112 virtual bool didTapMultipleTargets(const WebGestureEvent&, const WebVector<W
ebRect>& targetRects) { return false; } | |
| 113 | |
| 114 // Returns comma separated list of accept languages. | 110 // Returns comma separated list of accept languages. |
| 115 virtual WebString acceptLanguages() { return WebString(); } | 111 virtual WebString acceptLanguages() { return WebString(); } |
| 116 | 112 |
| 117 // Developer tools ----------------------------------------------------- | 113 // Developer tools ----------------------------------------------------- |
| 118 | 114 |
| 119 // Called to notify the client that the inspector's settings were | 115 // Called to notify the client that the inspector's settings were |
| 120 // changed and should be saved. See WebView::inspectorSettings. | 116 // changed and should be saved. See WebView::inspectorSettings. |
| 121 virtual void didUpdateInspectorSettings() { } | 117 virtual void didUpdateInspectorSettings() { } |
| 122 | 118 |
| 123 virtual void didUpdateInspectorSetting(const WebString& key, const WebString
& value) { } | 119 virtual void didUpdateInspectorSetting(const WebString& key, const WebString
& value) { } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 148 return WebPageVisibilityStateVisible; | 144 return WebPageVisibilityStateVisible; |
| 149 } | 145 } |
| 150 | 146 |
| 151 protected: | 147 protected: |
| 152 ~WebViewClient() { } | 148 ~WebViewClient() { } |
| 153 }; | 149 }; |
| 154 | 150 |
| 155 } // namespace blink | 151 } // namespace blink |
| 156 | 152 |
| 157 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEWCLIENT_H_ | 153 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEWCLIENT_H_ |
| OLD | NEW |