| 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 #include "chrome/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1970 | 1970 |
| 1971 Send(new ViewHostMsg_UpdateState( | 1971 Send(new ViewHostMsg_UpdateState( |
| 1972 routing_id_, page_id_, webkit_glue::HistoryItemToString(item))); | 1972 routing_id_, page_id_, webkit_glue::HistoryItemToString(item))); |
| 1973 } | 1973 } |
| 1974 | 1974 |
| 1975 void RenderView::ShowContextMenu(WebView* webview, | 1975 void RenderView::ShowContextMenu(WebView* webview, |
| 1976 ContextNode node, | 1976 ContextNode node, |
| 1977 int x, | 1977 int x, |
| 1978 int y, | 1978 int y, |
| 1979 const GURL& link_url, | 1979 const GURL& link_url, |
| 1980 const GURL& image_url, | 1980 const GURL& src_url, |
| 1981 const GURL& page_url, | 1981 const GURL& page_url, |
| 1982 const GURL& frame_url, | 1982 const GURL& frame_url, |
| 1983 const ContextMenuMediaParams& media_params, |
| 1983 const std::wstring& selection_text, | 1984 const std::wstring& selection_text, |
| 1984 const std::wstring& misspelled_word, | 1985 const std::wstring& misspelled_word, |
| 1985 int edit_flags, | 1986 int edit_flags, |
| 1986 const std::string& security_info, | 1987 const std::string& security_info, |
| 1987 const std::string& frame_charset) { | 1988 const std::string& frame_charset) { |
| 1988 ContextMenuParams params; | 1989 ContextMenuParams params; |
| 1989 params.node = node; | 1990 params.node = node; |
| 1990 params.x = x; | 1991 params.x = x; |
| 1991 params.y = y; | 1992 params.y = y; |
| 1992 params.image_url = image_url; | 1993 params.src_url = src_url; |
| 1993 params.link_url = link_url; | 1994 params.link_url = link_url; |
| 1994 params.unfiltered_link_url = link_url; | 1995 params.unfiltered_link_url = link_url; |
| 1995 params.page_url = page_url; | 1996 params.page_url = page_url; |
| 1996 params.frame_url = frame_url; | 1997 params.frame_url = frame_url; |
| 1998 params.media_params = media_params; |
| 1997 params.selection_text = selection_text; | 1999 params.selection_text = selection_text; |
| 1998 params.misspelled_word = misspelled_word; | 2000 params.misspelled_word = misspelled_word; |
| 1999 params.spellcheck_enabled = | 2001 params.spellcheck_enabled = |
| 2000 webview->GetFocusedFrame()->SpellCheckEnabled(); | 2002 webview->GetFocusedFrame()->SpellCheckEnabled(); |
| 2001 params.edit_flags = edit_flags; | 2003 params.edit_flags = edit_flags; |
| 2002 params.security_info = security_info; | 2004 params.security_info = security_info; |
| 2003 params.frame_charset = frame_charset; | 2005 params.frame_charset = frame_charset; |
| 2004 Send(new ViewHostMsg_ContextMenu(routing_id_, params)); | 2006 Send(new ViewHostMsg_ContextMenu(routing_id_, params)); |
| 2005 } | 2007 } |
| 2006 | 2008 |
| (...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3058 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms)); | 3060 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms)); |
| 3059 } | 3061 } |
| 3060 | 3062 |
| 3061 void RenderView::Print(WebFrame* frame, bool script_initiated) { | 3063 void RenderView::Print(WebFrame* frame, bool script_initiated) { |
| 3062 DCHECK(frame); | 3064 DCHECK(frame); |
| 3063 if (print_helper_.get() == NULL) { | 3065 if (print_helper_.get() == NULL) { |
| 3064 print_helper_.reset(new PrintWebViewHelper(this)); | 3066 print_helper_.reset(new PrintWebViewHelper(this)); |
| 3065 } | 3067 } |
| 3066 print_helper_->Print(frame, script_initiated); | 3068 print_helper_->Print(frame, script_initiated); |
| 3067 } | 3069 } |
| OLD | NEW |