| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
| 6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 WebFrame* frame, | 216 WebFrame* frame, |
| 217 const GURL& source); | 217 const GURL& source); |
| 218 virtual void WillSubmitForm(WebView* webview, WebFrame* frame, | 218 virtual void WillSubmitForm(WebView* webview, WebFrame* frame, |
| 219 const WebKit::WebForm& form); | 219 const WebKit::WebForm& form); |
| 220 virtual void WillSendRequest(WebView* webview, | 220 virtual void WillSendRequest(WebView* webview, |
| 221 uint32 identifier, | 221 uint32 identifier, |
| 222 WebRequest* request); | 222 WebRequest* request); |
| 223 | 223 |
| 224 virtual void WindowObjectCleared(WebFrame* webframe); | 224 virtual void WindowObjectCleared(WebFrame* webframe); |
| 225 virtual void DocumentElementAvailable(WebFrame* webframe); | 225 virtual void DocumentElementAvailable(WebFrame* webframe); |
| 226 virtual void WillCloseFrame(WebView* webview, WebFrame* frame); |
| 226 | 227 |
| 227 virtual WindowOpenDisposition DispositionForNavigationAction( | 228 virtual WindowOpenDisposition DispositionForNavigationAction( |
| 228 WebView* webview, | 229 WebView* webview, |
| 229 WebFrame* frame, | 230 WebFrame* frame, |
| 230 const WebRequest* request, | 231 const WebRequest* request, |
| 231 WebNavigationType type, | 232 WebNavigationType type, |
| 232 WindowOpenDisposition disposition, | 233 WindowOpenDisposition disposition, |
| 233 bool is_redirect); | 234 bool is_redirect); |
| 234 | 235 |
| 235 virtual WebView* CreateWebView(WebView* webview, | 236 virtual WebView* CreateWebView(WebView* webview, |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 // Initializes this view with the given parent and ID. The |routing_id| can be | 398 // Initializes this view with the given parent and ID. The |routing_id| can be |
| 398 // set to 'MSG_ROUTING_NONE' if the true ID is not yet known. In this case, | 399 // set to 'MSG_ROUTING_NONE' if the true ID is not yet known. In this case, |
| 399 // CompleteInit must be called later with the true ID. | 400 // CompleteInit must be called later with the true ID. |
| 400 void Init(gfx::NativeViewId parent, | 401 void Init(gfx::NativeViewId parent, |
| 401 base::WaitableEvent* modal_dialog_event, // takes ownership | 402 base::WaitableEvent* modal_dialog_event, // takes ownership |
| 402 int32 opener_id, | 403 int32 opener_id, |
| 403 const RendererPreferences& renderer_prefs, | 404 const RendererPreferences& renderer_prefs, |
| 404 const WebPreferences& webkit_prefs, | 405 const WebPreferences& webkit_prefs, |
| 405 SharedRenderViewCounter* counter, | 406 SharedRenderViewCounter* counter, |
| 406 int32 routing_id); | 407 int32 routing_id); |
| 408 virtual void Close(); |
| 407 | 409 |
| 408 void UpdateURL(WebFrame* frame); | 410 void UpdateURL(WebFrame* frame); |
| 409 void UpdateTitle(WebFrame* frame, const std::wstring& title); | 411 void UpdateTitle(WebFrame* frame, const std::wstring& title); |
| 410 void UpdateSessionHistory(WebFrame* frame); | 412 void UpdateSessionHistory(WebFrame* frame); |
| 411 | 413 |
| 412 // Update current main frame's encoding and send it to browser window. | 414 // Update current main frame's encoding and send it to browser window. |
| 413 // Since we want to let users see the right encoding info from menu | 415 // Since we want to let users see the right encoding info from menu |
| 414 // before finishing loading, we call the UpdateEncoding in | 416 // before finishing loading, we call the UpdateEncoding in |
| 415 // a) function:DidCommitLoadForFrame. When this function is called, | 417 // a) function:DidCommitLoadForFrame. When this function is called, |
| 416 // that means we have got first data. In here we try to get encoding | 418 // that means we have got first data. In here we try to get encoding |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 | 795 |
| 794 // Need for printing | 796 // Need for printing |
| 795 scoped_ptr<PrintWebViewHelper> print_render_view_; | 797 scoped_ptr<PrintWebViewHelper> print_render_view_; |
| 796 | 798 |
| 797 RendererPreferences renderer_preferences_; | 799 RendererPreferences renderer_preferences_; |
| 798 | 800 |
| 799 DISALLOW_COPY_AND_ASSIGN(RenderView); | 801 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 800 }; | 802 }; |
| 801 | 803 |
| 802 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 804 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |