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

Side by Side Diff: chrome/renderer/spellchecker/spellcheck_provider.cc

Issue 7222023: Forward handling of low-mem message to the content renderer client. Add APIs to handle this case. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Don't own SpellCheckProvider in renderer client. Created 9 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/spellchecker/spellcheck_provider.h ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/spellchecker/spellcheck_provider.h" 5 #include "chrome/renderer/spellchecker/spellcheck_provider.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/common/spellcheck_messages.h" 9 #include "chrome/common/spellcheck_messages.h"
10 #include "chrome/renderer/spellchecker/spellcheck.h" 10 #include "chrome/renderer/spellchecker/spellcheck.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // TODO(darin): There's actually no reason for this to be here. We should 195 // TODO(darin): There's actually no reason for this to be here. We should
196 // have the browser side manage the document tag. 196 // have the browser side manage the document tag.
197 #if defined(OS_MACOSX) 197 #if defined(OS_MACOSX)
198 if (!has_document_tag_) { 198 if (!has_document_tag_) {
199 // Make the call to get the tag. 199 // Make the call to get the tag.
200 Send(new SpellCheckHostMsg_GetDocumentTag(routing_id(), &document_tag_)); 200 Send(new SpellCheckHostMsg_GetDocumentTag(routing_id(), &document_tag_));
201 has_document_tag_ = true; 201 has_document_tag_ = true;
202 } 202 }
203 #endif 203 #endif
204 } 204 }
205
206 void SpellCheckProvider::SetSpellCheck(SpellCheck* spellcheck) {
207 spellcheck_ = spellcheck;
208 }
OLDNEW
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698