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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 class WebURLRequest; | 55 class WebURLRequest; |
56 class WebView; | 56 class WebView; |
57 class WebWidget; | 57 class WebWidget; |
58 struct WebConsoleMessage; | 58 struct WebConsoleMessage; |
59 struct WebPoint; | 59 struct WebPoint; |
60 struct WebRect; | 60 struct WebRect; |
61 struct WebSize; | 61 struct WebSize; |
62 | 62 |
63 class WebViewClient { | 63 class WebViewClient { |
64 public: | 64 public: |
65 virtual ServiceProvider& services() = 0; | 65 virtual ServiceProvider* services() { return nullptr; } |
66 | 66 |
67 // Initialize compositing for this widget. | 67 // Initialize compositing for this widget. |
68 virtual void initializeLayerTreeView() { BLINK_ASSERT_NOT_REACHED(); }; | 68 virtual void initializeLayerTreeView() { BLINK_ASSERT_NOT_REACHED(); }; |
69 | 69 |
70 // Called when the page should pump a frame. | 70 // Called when the page should pump a frame. |
71 virtual void scheduleVisualUpdate() { } | 71 virtual void scheduleVisualUpdate() { } |
72 | 72 |
73 // TODO(esprehn): Sky needs to implement these to control the mojo::View. | 73 // TODO(esprehn): Sky needs to implement these to control the mojo::View. |
74 | 74 |
75 // Called to get/set the position of the widget in screen coordinates. | 75 // Called to get/set the position of the widget in screen coordinates. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 return WebPageVisibilityStateVisible; | 155 return WebPageVisibilityStateVisible; |
156 } | 156 } |
157 | 157 |
158 protected: | 158 protected: |
159 ~WebViewClient() { } | 159 ~WebViewClient() { } |
160 }; | 160 }; |
161 | 161 |
162 } // namespace blink | 162 } // namespace blink |
163 | 163 |
164 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEWCLIENT_H_ | 164 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEWCLIENT_H_ |
OLD | NEW |