| 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) |
| 497 class SpellChecker : public base::RefCountedThreadSafe<SpellChecker> { | 502 class SpellChecker : public base::RefCountedThreadSafe<SpellChecker> { |
| 498 public: | 503 public: |
| 499 typedef std::wstring Language; | 504 typedef std::wstring Language; |
| 500 typedef std::vector<Language> Languages; | 505 typedef std::vector<Language> Languages; |
| 501 SpellChecker(const std::wstring& dict_dir, | 506 SpellChecker(const std::wstring& dict_dir, |
| 502 const Language& language, | 507 const Language& language, |
| 503 URLRequestContext* request_context, | 508 URLRequestContext* request_context, |
| 504 const std::wstring& custom_dictionary_file_name) {} | 509 const std::wstring& custom_dictionary_file_name) {} |
| 505 | 510 |
| 506 bool SpellCheckWord(const wchar_t* in_word, | 511 bool SpellCheckWord(const wchar_t* in_word, |
| 507 int in_word_len, | 512 int in_word_len, |
| 508 int* misspelling_start, | 513 int* misspelling_start, |
| 509 int* misspelling_len, | 514 int* misspelling_len, |
| 510 std::vector<std::wstring>* optional_suggestions) { | 515 std::vector<std::wstring>* optional_suggestions) { |
| 511 NOTIMPLEMENTED(); | 516 NOTIMPLEMENTED(); |
| 512 return true; | 517 return true; |
| 513 } | 518 } |
| 514 static int GetSpellCheckLanguagesToDisplayInContextMenu( | 519 static int GetSpellCheckLanguagesToDisplayInContextMenu( |
| 515 Profile* profile, | 520 Profile* profile, |
| 516 Languages* display_languages) { | 521 Languages* display_languages) { |
| 517 NOTIMPLEMENTED(); | 522 NOTIMPLEMENTED(); |
| 518 return 0; | 523 return 0; |
| 519 } | 524 } |
| 520 }; | 525 }; |
| 526 #else |
| 527 #include "chrome/browser/spellchecker.h" |
| 528 #endif |
| 521 | 529 |
| 522 class WebAppLauncher { | 530 class WebAppLauncher { |
| 523 public: | 531 public: |
| 524 static void Launch(Profile* profile, const GURL& url) { | 532 static void Launch(Profile* profile, const GURL& url) { |
| 525 NOTIMPLEMENTED(); | 533 NOTIMPLEMENTED(); |
| 526 } | 534 } |
| 527 }; | 535 }; |
| 528 | 536 |
| 529 //--------------------------------------------------------------------------- | 537 //--------------------------------------------------------------------------- |
| 530 // These stubs are for WebContents | 538 // These stubs are for WebContents |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 | 682 |
| 675 class HistoryTabUI { | 683 class HistoryTabUI { |
| 676 public: | 684 public: |
| 677 static const GURL GetHistoryURLWithSearchText(const std::wstring& text) { | 685 static const GURL GetHistoryURLWithSearchText(const std::wstring& text) { |
| 678 NOTIMPLEMENTED(); | 686 NOTIMPLEMENTED(); |
| 679 return GURL(); | 687 return GURL(); |
| 680 } | 688 } |
| 681 }; | 689 }; |
| 682 | 690 |
| 683 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 691 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
| OLD | NEW |