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

Side by Side Diff: webkit/glue/webframeloaderclient_impl.h

Issue 149620: Use WebWidget from the WebKit API. This change also makes... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/inspector_client_impl.cc ('k') | webkit/glue/webframeloaderclient_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ 5 #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__
6 #define WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ 6 #define WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__
7 7
8 #include "base/compiler_specific.h"
9
10 MSVC_PUSH_WARNING_LEVEL(0);
11 #include "FrameLoaderClient.h" 8 #include "FrameLoaderClient.h"
12 #include <wtf/RefPtr.h> 9 #include <wtf/RefPtr.h>
13 MSVC_POP_WARNING();
14 10
15 #include "build/build_config.h"
16 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
17 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "webkit/api/public/WebNavigationPolicy.h"
18 #include "webkit/glue/webview_delegate.h" 14 #include "webkit/glue/webview_delegate.h"
19 #include "webkit/glue/window_open_disposition.h"
20 15
21 namespace WebCore { 16 namespace WebCore {
22 class Frame; 17 class Frame;
23 class HTMLFormElement; 18 class HTMLFormElement;
24 class Widget; 19 class Widget;
25 } 20 }
26 21
27 namespace webkit_glue { 22 namespace webkit_glue {
28 class Alt404PageResourceFetcher; 23 class Alt404PageResourceFetcher;
29 } 24 }
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 205
211 // Callback function for download of alternate 404 pages. If the server is 206 // Callback function for download of alternate 404 pages. If the server is
212 // down or we take more than 1s to download the page, html will be an empty 207 // down or we take more than 1s to download the page, html will be an empty
213 // string. 208 // string.
214 void Alt404PageFinished(WebCore::DocumentLoader* loader, 209 void Alt404PageFinished(WebCore::DocumentLoader* loader,
215 const std::string& html); 210 const std::string& html);
216 211
217 private: 212 private:
218 void makeDocumentView(); 213 void makeDocumentView();
219 214
220 // Given a NavigationAction, determine the associated window opening 215 // Given a NavigationAction, determine the associated WebNavigationPolicy.
221 // disposition. For example, a middle click means "open in background tab". 216 // For example, a middle click means "open in background tab".
222 static bool ActionSpecifiesDisposition( 217 static bool ActionSpecifiesNavigationPolicy(
223 const WebCore::NavigationAction& action, 218 const WebCore::NavigationAction& action,
224 WindowOpenDisposition* disposition); 219 WebKit::WebNavigationPolicy* policy);
225 220
226 // Returns a valid GURL if we have an alt 404 server URL. 221 // Returns a valid GURL if we have an alt 404 server URL.
227 GURL GetAlt404PageUrl(WebCore::DocumentLoader* loader); 222 GURL GetAlt404PageUrl(WebCore::DocumentLoader* loader);
228 223
229 // Returns NavigationGestureAuto if the last load was not user initiated, 224 // Returns NavigationGestureAuto if the last load was not user initiated,
230 // otherwise returns NavigationGestureUnknown. 225 // otherwise returns NavigationGestureUnknown.
231 NavigationGesture NavigationGestureForLastLoad(); 226 NavigationGesture NavigationGestureForLastLoad();
232 227
233 // Called when a dummy back-forward navigation is intercepted. 228 // Called when a dummy back-forward navigation is intercepted.
234 void HandleBackForwardNavigation(const GURL&); 229 void HandleBackForwardNavigation(const GURL&);
(...skipping 22 matching lines...) Expand all
257 GURL expected_client_redirect_src_; 252 GURL expected_client_redirect_src_;
258 GURL expected_client_redirect_dest_; 253 GURL expected_client_redirect_dest_;
259 254
260 // Contains a pointer to the plugin widget. 255 // Contains a pointer to the plugin widget.
261 WTF::RefPtr<WebPluginContainer> plugin_widget_; 256 WTF::RefPtr<WebPluginContainer> plugin_widget_;
262 257
263 // Indicates if we need to send over the initial notification to the plugin 258 // Indicates if we need to send over the initial notification to the plugin
264 // which specifies that the plugin should be ready to accept data. 259 // which specifies that the plugin should be ready to accept data.
265 bool sent_initial_response_to_plugin_; 260 bool sent_initial_response_to_plugin_;
266 261
267 // The disposition to use for the next call to dispatchCreatePage. 262 // The navigation policy to use for the next call to dispatchCreatePage.
268 WindowOpenDisposition next_window_open_disposition_; 263 WebKit::WebNavigationPolicy next_navigation_policy_;
269 }; 264 };
270 265
271 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ 266 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__
OLDNEW
« no previous file with comments | « webkit/glue/inspector_client_impl.cc ('k') | webkit/glue/webframeloaderclient_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698