OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011, 2012 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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef SKY_ENGINE_PUBLIC_WEB_WEBVIEW_H_ | 31 #ifndef SKY_ENGINE_PUBLIC_WEB_WEBVIEW_H_ |
32 #define SKY_ENGINE_PUBLIC_WEB_WEBVIEW_H_ | 32 #define SKY_ENGINE_PUBLIC_WEB_WEBVIEW_H_ |
33 | 33 |
34 #include "../platform/WebColor.h" | 34 #include "../platform/WebColor.h" |
35 #include "../platform/WebString.h" | 35 #include "../platform/WebString.h" |
36 #include "../platform/WebVector.h" | 36 #include "../platform/WebVector.h" |
37 #include "sky/engine/public/web/WebPageVisibilityState.h" | 37 #include "sky/engine/public/web/WebPageVisibilityState.h" |
38 #include "sky/engine/public/web/WebWidget.h" | 38 #include "sky/engine/public/web/WebWidget.h" |
39 | 39 |
| 40 class GURL; |
| 41 |
40 namespace blink { | 42 namespace blink { |
41 | 43 |
42 class WebFrame; | 44 class WebFrame; |
43 class WebFrameClient; | 45 class WebFrameClient; |
44 class WebSettings; | 46 class WebSettings; |
45 class WebSpellCheckClient; | 47 class WebSpellCheckClient; |
46 class WebViewClient; | 48 class WebViewClient; |
47 struct WebPoint; | 49 struct WebPoint; |
48 | 50 |
49 class WebView : public WebWidget { | 51 class WebView : public WebWidget { |
50 public: | 52 public: |
| 53 // I've added this here so that it dies when WebView does. :) |
| 54 static bool shouldUseWebView(const GURL& url); |
| 55 |
51 // Initialization ------------------------------------------------------ | 56 // Initialization ------------------------------------------------------ |
52 | 57 |
53 // Creates a WebView that is NOT yet initialized. You will need to | 58 // Creates a WebView that is NOT yet initialized. You will need to |
54 // call setMainFrame to finish the initialization. It is valid | 59 // call setMainFrame to finish the initialization. It is valid |
55 // to pass a null client pointer. | 60 // to pass a null client pointer. |
56 BLINK_EXPORT static WebView* create(WebViewClient*); | 61 BLINK_EXPORT static WebView* create(WebViewClient*); |
57 | 62 |
58 // After creating a WebView, you should immediately call this method. | 63 // After creating a WebView, you should immediately call this method. |
59 // You can optionally modify the settings before calling this method. | 64 // You can optionally modify the settings before calling this method. |
60 // This WebFrame will receive events for the main frame and must not | 65 // This WebFrame will receive events for the main frame and must not |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 153 |
149 // Testing functionality for TestRunner --------------------------------- | 154 // Testing functionality for TestRunner --------------------------------- |
150 | 155 |
151 protected: | 156 protected: |
152 ~WebView() {} | 157 ~WebView() {} |
153 }; | 158 }; |
154 | 159 |
155 } // namespace blink | 160 } // namespace blink |
156 | 161 |
157 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEW_H_ | 162 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEW_H_ |
OLD | NEW |