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

Side by Side Diff: chrome/renderer/render_view.cc

Issue 164279: View Background Image Feature (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 4 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 | « chrome/renderer/render_view.h ('k') | webkit/glue/context_menu.h » ('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) 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 1994 matching lines...) Expand 10 before | Expand all | Expand 10 after
2005 const GURL& src_url, 2005 const GURL& src_url,
2006 const GURL& page_url, 2006 const GURL& page_url,
2007 const GURL& frame_url, 2007 const GURL& frame_url,
2008 const ContextMenuMediaParams& media_params, 2008 const ContextMenuMediaParams& media_params,
2009 const std::wstring& selection_text, 2009 const std::wstring& selection_text,
2010 const std::wstring& misspelled_word, 2010 const std::wstring& misspelled_word,
2011 int edit_flags, 2011 int edit_flags,
2012 const std::string& security_info, 2012 const std::string& security_info,
2013 const std::string& frame_charset) { 2013 const std::string& frame_charset) {
2014 ContextMenuParams params; 2014 ContextMenuParams params;
2015
2015 params.node_type = node_type; 2016 params.node_type = node_type;
2016 params.x = x; 2017 params.x = x;
2017 params.y = y; 2018 params.y = y;
2018 params.src_url = src_url; 2019 params.src_url = src_url;
2019 params.link_url = link_url; 2020 params.link_url = link_url;
2020 params.unfiltered_link_url = link_url; 2021 params.unfiltered_link_url = link_url;
2021 params.page_url = page_url; 2022 params.page_url = page_url;
2022 params.frame_url = frame_url; 2023 params.frame_url = frame_url;
2023 params.media_params = media_params; 2024 params.media_params = media_params;
2024 params.selection_text = selection_text; 2025 params.selection_text = selection_text;
2025 params.misspelled_word = misspelled_word; 2026 params.misspelled_word = misspelled_word;
2026 params.spellcheck_enabled = 2027 params.spellcheck_enabled =
2027 webview->GetFocusedFrame()->SpellCheckEnabled(); 2028 webview->GetFocusedFrame()->SpellCheckEnabled();
2028 params.edit_flags = edit_flags; 2029 params.edit_flags = edit_flags;
2029 params.security_info = security_info; 2030 params.security_info = security_info;
2030 params.frame_charset = frame_charset; 2031 params.frame_charset = frame_charset;
2031 Send(new ViewHostMsg_ContextMenu(routing_id_, params)); 2032 Send(new ViewHostMsg_ContextMenu(routing_id_, params));
2032 } 2033 }
2033 2034
2035 void RenderView::ShowContextMenu(WebView* webview,
2036 ContextNodeType node_type,
2037 int x,
2038 int y,
2039 const GURL& link_url,
2040 const GURL& src_url,
2041 const GURL& page_url,
2042 const GURL& frame_url,
2043 const GURL& bkg_url,
2044 const ContextMenuMediaParams& media_params,
2045 const std::wstring& selection_text,
2046 const std::wstring& misspelled_word,
2047 int edit_flags,
2048 const std::string& security_info,
2049 const std::string& frame_charset) {
2050
2051 ContextMenuParams params;
2052
2053 params.node_type = node_type;
2054 params.x = x;
2055 params.y = y;
2056 params.bkg_url = bkg_url;
2057 params.src_url = src_url;
2058 params.link_url = link_url;
2059 params.unfiltered_link_url = link_url;
2060 params.page_url = page_url;
2061 params.frame_url = frame_url;
2062 params.media_params = media_params;
2063 params.selection_text = selection_text;
2064 params.misspelled_word = misspelled_word;
2065 params.spellcheck_enabled =
2066 webview->GetFocusedFrame()->SpellCheckEnabled();
2067 params.edit_flags = edit_flags;
2068 params.security_info = security_info;
2069 params.frame_charset = frame_charset;
2070 Send(new ViewHostMsg_ContextMenu(routing_id_, params));
2071 }
2072
2034 void RenderView::StartDragging(WebView* webview, 2073 void RenderView::StartDragging(WebView* webview,
2035 const WebDragData& drag_data) { 2074 const WebDragData& drag_data) {
2036 Send(new ViewHostMsg_StartDragging(routing_id_, WebDropData(drag_data))); 2075 Send(new ViewHostMsg_StartDragging(routing_id_, WebDropData(drag_data)));
2037 } 2076 }
2038 2077
2039 void RenderView::TakeFocus(WebView* webview, bool reverse) { 2078 void RenderView::TakeFocus(WebView* webview, bool reverse) {
2040 Send(new ViewHostMsg_TakeFocus(routing_id_, reverse)); 2079 Send(new ViewHostMsg_TakeFocus(routing_id_, reverse));
2041 } 2080 }
2042 2081
2043 void RenderView::DidDownloadImage(int id, 2082 void RenderView::DidDownloadImage(int id,
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
3095 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms)); 3134 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms));
3096 } 3135 }
3097 3136
3098 void RenderView::Print(WebFrame* frame, bool script_initiated) { 3137 void RenderView::Print(WebFrame* frame, bool script_initiated) {
3099 DCHECK(frame); 3138 DCHECK(frame);
3100 if (print_helper_.get() == NULL) { 3139 if (print_helper_.get() == NULL) {
3101 print_helper_.reset(new PrintWebViewHelper(this)); 3140 print_helper_.reset(new PrintWebViewHelper(this));
3102 } 3141 }
3103 print_helper_->Print(frame, script_initiated); 3142 print_helper_->Print(frame, script_initiated);
3104 } 3143 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.h ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698