OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/browser/renderer_host/render_view_host.h" | 5 #include "chrome/browser/renderer_host/render_view_host.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1996 } | 1996 } |
1997 | 1997 |
1998 void RenderViewHost::PerformCustomContextMenuAction(unsigned action) { | 1998 void RenderViewHost::PerformCustomContextMenuAction(unsigned action) { |
1999 Send(new ViewMsg_CustomContextMenuAction(routing_id(), action)); | 1999 Send(new ViewMsg_CustomContextMenuAction(routing_id(), action)); |
2000 } | 2000 } |
2001 | 2001 |
2002 void RenderViewHost::TranslatePage(int page_id, | 2002 void RenderViewHost::TranslatePage(int page_id, |
2003 const std::string& translate_script, | 2003 const std::string& translate_script, |
2004 const std::string& source_lang, | 2004 const std::string& source_lang, |
2005 const std::string& target_lang) { | 2005 const std::string& target_lang) { |
2006 // Before start translation, reset cache in AutoFillManager first. | |
James Hawkins
2010/11/23 19:18:53
Please expand this comment to explain why.
honten.org
2010/11/23 19:32:22
I want to replace the comment as following, what d
James Hawkins
2010/11/23 19:35:34
Way too verbose. The last two sentences suffice.
| |
2007 RenderViewHostDelegate::AutoFill* autofill_delegate = | |
2008 delegate_->GetAutoFillDelegate(); | |
2009 if (autofill_delegate) | |
2010 autofill_delegate->Reset(); | |
2011 | |
2006 Send(new ViewMsg_TranslatePage(routing_id(), page_id, translate_script, | 2012 Send(new ViewMsg_TranslatePage(routing_id(), page_id, translate_script, |
2007 source_lang, target_lang)); | 2013 source_lang, target_lang)); |
2008 } | 2014 } |
2009 | 2015 |
2010 void RenderViewHost::RevertTranslation(int page_id) { | 2016 void RenderViewHost::RevertTranslation(int page_id) { |
2011 Send(new ViewMsg_RevertTranslation(routing_id(), page_id)); | 2017 Send(new ViewMsg_RevertTranslation(routing_id(), page_id)); |
2012 } | 2018 } |
2013 | 2019 |
2014 void RenderViewHost::SendContentSettings(const GURL& url, | 2020 void RenderViewHost::SendContentSettings(const GURL& url, |
2015 const ContentSettings& settings) { | 2021 const ContentSettings& settings) { |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2244 TabContents* print_preview_tab = GetOrCreatePrintPreviewTab(); | 2250 TabContents* print_preview_tab = GetOrCreatePrintPreviewTab(); |
2245 DCHECK(print_preview_tab); | 2251 DCHECK(print_preview_tab); |
2246 | 2252 |
2247 // TODO(kmadhusu): Function definition needs to be changed. | 2253 // TODO(kmadhusu): Function definition needs to be changed. |
2248 // fd_in_browser should be the file descriptor of the metafile. | 2254 // fd_in_browser should be the file descriptor of the metafile. |
2249 | 2255 |
2250 // Send the printingDone msg for now. | 2256 // Send the printingDone msg for now. |
2251 Send(new ViewMsg_PrintingDone(routing_id(), -1, true)); | 2257 Send(new ViewMsg_PrintingDone(routing_id(), -1, true)); |
2252 } | 2258 } |
2253 #endif | 2259 #endif |
OLD | NEW |