| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |