Oh, ok, so when the language is changed, a new spellchecker object is created. That's what I thought might be happening. Thanks,
-Paul Wicks On Wed, Jun 17, 2009 at 5:14 PM, sidchat <sidc...@chromium.org> wrote: > > Yes, Evan is right. So, when you change a spellcheck language in the > Options menu (languages_page_view.cc), it changes a pref member > (prefs::kSpellCheckDictionary) value. This change is caught by the > Profile (ProfileImpl::Observe in profile.cc), which (re)initializes > the spellchecker with the new language. The pref member can also be > changed from the right-click context menu, as Evan pointed out (see > RenderViewContextMenu::ExecuteItemCommand() in > render_view_context_menu.cc). > > So it seems implementing languages Options menu and context menu items > items for spellchecker might make this whole thing work automatically. > > -Sid > > On Jun 17, 4:02 pm, Evan Martin <e...@chromium.org> wrote: > > Just a guess, but perhaps when you change languages a new Spellchecker > > object with the new language is constructed. > > > > I would expect the language-picking options haven't yet been > > implemented. You can also switch languages via the right-click menu > > on a text area, but that may also be unimplemented. It might be worth > > implementing those as a prereq for your current project. :) > > > > > > > > On Wed, Jun 17, 2009 at 3:54 PM, pwicks<pwick...@gmail.com> wrote: > > > > > I'm working on porting the os x spellchecker to chromium and I've run > > > into a question. I'm trying to figure out how the language of the > > > spellchecker is change. The only place that I can see where it is ever > > > specified is in the constructor to Spellchecker. I don't see any other > > > functions/methods that deal with language selection, just with > > > querying the available languages. I was going to try and trace this > > > through in the debugger, but the button on the options pane to change > > > the language is greyed out. Anybody know anything about how this works > > > or can point me in the right direction? (Sid, is this what you were > > > talking about when you mentioned that there was something > > > unimplemented?) > > > > > Thanks, > > > > > --Paul Wicks > > > --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---