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

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

Issue 2792233003: Split SpellCheckPanel off SpellCheckProvider (Closed)
Patch Set: Fix further compile error Created 3 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chrome_content_renderer_client.h" 5 #include "chrome/renderer/chrome_content_renderer_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 #include "components/printing/renderer/print_web_view_helper.h" 153 #include "components/printing/renderer/print_web_view_helper.h"
154 #include "printing/print_settings.h" 154 #include "printing/print_settings.h"
155 #endif 155 #endif
156 156
157 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) 157 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
158 #include "chrome/renderer/pepper/chrome_pdf_print_client.h" 158 #include "chrome/renderer/pepper/chrome_pdf_print_client.h"
159 #endif 159 #endif
160 160
161 #if BUILDFLAG(ENABLE_SPELLCHECK) 161 #if BUILDFLAG(ENABLE_SPELLCHECK)
162 #include "components/spellcheck/renderer/spellcheck.h" 162 #include "components/spellcheck/renderer/spellcheck.h"
163 #include "components/spellcheck/renderer/spellcheck_panel.h"
163 #include "components/spellcheck/renderer/spellcheck_provider.h" 164 #include "components/spellcheck/renderer/spellcheck_provider.h"
164 #endif 165 #endif
165 166
166 #if BUILDFLAG(ENABLE_WEBRTC) 167 #if BUILDFLAG(ENABLE_WEBRTC)
167 #include "chrome/renderer/media/webrtc_logging_message_filter.h" 168 #include "chrome/renderer/media/webrtc_logging_message_filter.h"
168 #endif 169 #endif
169 170
170 using autofill::AutofillAgent; 171 using autofill::AutofillAgent;
171 using autofill::PasswordAutofillAgent; 172 using autofill::PasswordAutofillAgent;
172 using autofill::PasswordGenerationAgent; 173 using autofill::PasswordGenerationAgent;
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 } 567 }
567 } 568 }
568 569
569 void ChromeContentRendererClient::RenderViewCreated( 570 void ChromeContentRendererClient::RenderViewCreated(
570 content::RenderView* render_view) { 571 content::RenderView* render_view) {
571 #if BUILDFLAG(ENABLE_EXTENSIONS) 572 #if BUILDFLAG(ENABLE_EXTENSIONS)
572 ChromeExtensionsRendererClient::GetInstance()->RenderViewCreated(render_view); 573 ChromeExtensionsRendererClient::GetInstance()->RenderViewCreated(render_view);
573 #endif 574 #endif
574 #if BUILDFLAG(ENABLE_SPELLCHECK) 575 #if BUILDFLAG(ENABLE_SPELLCHECK)
575 new SpellCheckProvider(render_view, spellcheck_.get()); 576 new SpellCheckProvider(render_view, spellcheck_.get());
577 new SpellCheckPanel(render_view);
groby-ooo-7-16 2017/04/05 21:19:54 Since the panel is OSX only, can we add it on OSX
576 #endif 578 #endif
577 new prerender::PrerendererClient(render_view); 579 new prerender::PrerendererClient(render_view);
578 580
579 new ChromeRenderViewObserver(render_view, web_cache_impl_.get()); 581 new ChromeRenderViewObserver(render_view, web_cache_impl_.get());
580 582
581 new password_manager::CredentialManagerClient(render_view); 583 new password_manager::CredentialManagerClient(render_view);
582 } 584 }
583 585
584 586
585 SkBitmap* ChromeContentRendererClient::GetSadPluginBitmap() { 587 SkBitmap* ChromeContentRendererClient::GetSadPluginBitmap() {
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 1519
1518 RecordYouTubeRewriteUMA(result); 1520 RecordYouTubeRewriteUMA(result);
1519 return corrected_url.ReplaceComponents(r); 1521 return corrected_url.ReplaceComponents(r);
1520 } 1522 }
1521 1523
1522 std::unique_ptr<base::TaskScheduler::InitParams> 1524 std::unique_ptr<base::TaskScheduler::InitParams>
1523 ChromeContentRendererClient::GetTaskSchedulerInitParams() { 1525 ChromeContentRendererClient::GetTaskSchedulerInitParams() {
1524 return task_scheduler_util:: 1526 return task_scheduler_util::
1525 GetRendererTaskSchedulerInitParamsFromCommandLine(); 1527 GetRendererTaskSchedulerInitParamsFromCommandLine();
1526 } 1528 }
OLDNEW
« no previous file with comments | « no previous file | components/spellcheck/renderer/BUILD.gn » ('j') | components/spellcheck/renderer/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698