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

Side by Side Diff: chrome/common/temp_scaffolding_stubs.h

Issue 28053: Add the hunspell project to Chrome.app and get spellchecker compiling for Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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/chrome.xcodeproj/project.pbxproj ('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) 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 #ifndef CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ 5 #ifndef CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
6 #define CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ 6 #define CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
7 7
8 // This file provides declarations and stub definitions for classes we encouter 8 // This file provides declarations and stub definitions for classes we encouter
9 // during the porting effort. It is not meant to be permanent, and classes will 9 // during the porting effort. It is not meant to be permanent, and classes will
10 // be removed from here as they are fleshed out more completely. 10 // be removed from here as they are fleshed out more completely.
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 return false; 487 return false;
488 } 488 }
489 489
490 static bool DecryptWideString(const std::string& ciphertext, 490 static bool DecryptWideString(const std::string& ciphertext,
491 std::wstring* plaintext) { 491 std::wstring* plaintext) {
492 NOTIMPLEMENTED(); 492 NOTIMPLEMENTED();
493 return false; 493 return false;
494 } 494 }
495 }; 495 };
496 496
497
498 // spellchecker.h works on Linux, but it depends on hunspell which isn't
499 // built on Mac. Getting it to build on the Mac is apparently hard, so I'll
500 // punt this to the Mac team for now.
501 #if defined(OS_MACOSX)
502 class SpellChecker : public base::RefCountedThreadSafe<SpellChecker> {
503 public:
504 typedef std::wstring Language;
505 typedef std::vector<Language> Languages;
506 SpellChecker(const std::wstring& dict_dir,
507 const Language& language,
508 URLRequestContext* request_context,
509 const std::wstring& custom_dictionary_file_name) {}
510
511 bool SpellCheckWord(const wchar_t* in_word,
512 int in_word_len,
513 int* misspelling_start,
514 int* misspelling_len,
515 std::vector<std::wstring>* optional_suggestions) {
516 NOTIMPLEMENTED();
517 return true;
518 }
519 static int GetSpellCheckLanguagesToDisplayInContextMenu(
520 Profile* profile,
521 Languages* display_languages) {
522 NOTIMPLEMENTED();
523 return 0;
524 }
525 };
526 #else
527 #include "chrome/browser/spellchecker.h"
528 #endif
529
530 class WebAppLauncher { 497 class WebAppLauncher {
531 public: 498 public:
532 static void Launch(Profile* profile, const GURL& url) { 499 static void Launch(Profile* profile, const GURL& url) {
533 NOTIMPLEMENTED(); 500 NOTIMPLEMENTED();
534 } 501 }
535 }; 502 };
536 503
537 //--------------------------------------------------------------------------- 504 //---------------------------------------------------------------------------
538 // These stubs are for WebContents 505 // These stubs are for WebContents
539 506
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 } 655 }
689 }; 656 };
690 657
691 class OSExchangeData { 658 class OSExchangeData {
692 public: 659 public:
693 void SetString(const std::wstring& data) { NOTIMPLEMENTED(); } 660 void SetString(const std::wstring& data) { NOTIMPLEMENTED(); }
694 void SetURL(const GURL& url, const std::wstring& title) { NOTIMPLEMENTED(); } 661 void SetURL(const GURL& url, const std::wstring& title) { NOTIMPLEMENTED(); }
695 }; 662 };
696 663
697 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ 664 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
OLDNEW
« no previous file with comments | « chrome/chrome.xcodeproj/project.pbxproj ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698