diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-29 00:51:04 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-29 00:51:04 +0000 |
commit | 3fd040071e5049e06953031ab98644ac26734a86 (patch) | |
tree | cd4bf7a48cbfaebe2e70b469c350ff9981f2ba01 /chrome/browser/autofill/autofill_external_delegate.cc | |
parent | e8cdf3530e9b892f63a25e6366af15e146260dcd (diff) | |
download | chromium_src-3fd040071e5049e06953031ab98644ac26734a86.zip chromium_src-3fd040071e5049e06953031ab98644ac26734a86.tar.gz chromium_src-3fd040071e5049e06953031ab98644ac26734a86.tar.bz2 |
External autofill delegates.
BUG=
TEST=
Review URL: http://codereview.chromium.org/8353025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107839 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_external_delegate.cc')
-rw-r--r-- | chrome/browser/autofill/autofill_external_delegate.cc | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/chrome/browser/autofill/autofill_external_delegate.cc b/chrome/browser/autofill/autofill_external_delegate.cc new file mode 100644 index 0000000..457f86d --- /dev/null +++ b/chrome/browser/autofill/autofill_external_delegate.cc @@ -0,0 +1,37 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/browser/autofill/autofill_external_delegate.h" +#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" +#include "chrome/common/autofill_messages.h" +#include "content/browser/renderer_host/render_view_host.h" + +AutofillExternalDelegate::~AutofillExternalDelegate() { +} + +AutofillExternalDelegate::AutofillExternalDelegate( + TabContentsWrapper* tab_contents_wrapper) + : tab_contents_wrapper_(tab_contents_wrapper) { +} + +void AutofillExternalDelegate::SelectAutofillSuggestionAtIndex(int listIndex) { + RenderViewHost* host = tab_contents_wrapper_->render_view_host(); + host->Send(new AutofillMsg_SelectAutofillSuggestionAtIndex( + host->routing_id(), + listIndex)); +} + + +// Add a "!defined(OS_YOUROS) for each platform that implements this +// in an autofill_external_delegate_YOUROS.cc. Currently there are +// none, so all platforms use the default. + +#if !defined(OS_ANDROID) + +AutofillExternalDelegate* AutofillExternalDelegate::Create( + TabContentsWrapper*, AutofillManager*) { + return NULL; +} + +#endif |