summaryrefslogtreecommitdiffstats
path: root/chrome/common/temp_scaffolding_stubs.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 02:16:05 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 02:16:05 +0000
commit8c4a580917a5f379b4a9e67145ed78a347151181 (patch)
tree4660d34698629c72ba45dba260d4c970864f6c49 /chrome/common/temp_scaffolding_stubs.cc
parent60142d98de42fad6bc63b37b063d565a3ab85f0b (diff)
downloadchromium_src-8c4a580917a5f379b4a9e67145ed78a347151181.zip
chromium_src-8c4a580917a5f379b4a9e67145ed78a347151181.tar.gz
chromium_src-8c4a580917a5f379b4a9e67145ed78a347151181.tar.bz2
Bring a bunch more headers into the non-Windows build:
- history - autocomplete - bookmarks These were all reviewed separately but turned out to be interdependent. :~( Review URL: http://codereview.chromium.org/21170 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9444 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/temp_scaffolding_stubs.cc')
-rw-r--r--chrome/common/temp_scaffolding_stubs.cc98
1 files changed, 98 insertions, 0 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.cc b/chrome/common/temp_scaffolding_stubs.cc
index bdee164..0aff7b7 100644
--- a/chrome/common/temp_scaffolding_stubs.cc
+++ b/chrome/common/temp_scaffolding_stubs.cc
@@ -12,6 +12,8 @@
#include "base/singleton.h"
#include "base/task.h"
#include "build/build_config.h"
+#include "chrome/browser/autocomplete/autocomplete.h"
+#include "chrome/browser/autocomplete/history_url_provider.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_shutdown.h"
#include "chrome/browser/cache_manager_host.h"
@@ -35,6 +37,7 @@
#include "webkit/glue/webcursor.h"
#include "webkit/glue/webkit_glue.h"
+
// static
size_t SessionRestore::num_tabs_to_load_ = 0;
@@ -366,3 +369,98 @@ bool ClipboardIsFormatAvailable(Clipboard::FormatType format) {
} // webkit_glue
+
+//--------------------------------------------------------------------------
+size_t AutocompleteProvider::max_matches_ = 42;
+size_t AutocompleteResult::max_matches_ = 42;
+
+// static
+std::string AutocompleteInput::TypeToString(Type type) {
+ NOTIMPLEMENTED();
+ return "";
+}
+
+AutocompleteMatch::AutocompleteMatch(AutocompleteProvider* provider,
+ int relevance,
+ bool deletable,
+ Type type) {
+ NOTIMPLEMENTED();
+}
+
+// static
+void AutocompleteMatch::ClassifyLocationInString(
+ size_t match_location,
+ size_t match_length,
+ size_t overall_length,
+ int style,
+ ACMatchClassifications* classifications) {
+ NOTIMPLEMENTED();
+}
+
+// static
+std::string AutocompleteMatch::TypeToString(Type type) {
+ NOTIMPLEMENTED();
+ return "";
+}
+
+AutocompleteProvider::~AutocompleteProvider() {
+ NOTIMPLEMENTED();
+}
+
+std::wstring AutocompleteProvider::StringForURLDisplay(const GURL& url,
+ bool check_accept_lang) {
+ NOTIMPLEMENTED();
+ return L"";
+}
+
+void HistoryURLProvider::ExecuteWithDB(history::HistoryBackend* backend,
+ history::URLDatabase* db,
+ HistoryURLProviderParams* params) {
+ NOTIMPLEMENTED();
+}
+
+//--------------------------------------------------------------------------
+namespace bookmark_utils {
+
+struct TitleMatch {
+ void* undefined;
+};
+
+void GetBookmarksMatchingText(BookmarkModel* model,
+ const std::wstring& text,
+ size_t max_count,
+ std::vector<TitleMatch>* matches) {
+ NOTIMPLEMENTED();
+}
+
+bool MoreRecentlyAdded(BookmarkNode* n1, BookmarkNode* n2) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+std::vector<BookmarkNode*> GetMostRecentlyModifiedGroups(BookmarkModel* model,
+ size_t max_count) {
+ NOTIMPLEMENTED();
+ return std::vector<BookmarkNode*>();
+}
+
+
+void GetBookmarksContainingText(BookmarkModel* model,
+ const std::wstring& text,
+ size_t max_count,
+ std::vector<BookmarkNode*>* nodes) {
+ NOTIMPLEMENTED();
+}
+
+bool DoesBookmarkContainText(BookmarkNode* node, const std::wstring& text) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+void GetMostRecentlyAddedEntries(BookmarkModel* model,
+ size_t count,
+ std::vector<BookmarkNode*>* nodes) {
+ NOTIMPLEMENTED();
+}
+
+} // bookmark_utils