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

Side by Side Diff: chrome/browser/autofill/autofill_external_delegate.cc

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 11 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "base/utf_string_conversions.h" 5 #include "base/utf_string_conversions.h"
6 #include "chrome/browser/autofill/autofill_external_delegate.h" 6 #include "chrome/browser/autofill/autofill_external_delegate.h"
7 #include "chrome/browser/autofill/autofill_manager.h" 7 #include "chrome/browser/autofill/autofill_manager.h"
8 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 8 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
9 #include "chrome/common/autofill_messages.h" 9 #include "chrome/common/autofill_messages.h"
10 #include "chrome/common/chrome_constants.h" 10 #include "chrome/common/chrome_constants.h"
11 #include "content/browser/renderer_host/render_view_host.h" 11 #include "content/browser/renderer_host/render_view_host.h"
12 #include "content/browser/tab_contents/tab_contents.h" 12 #include "content/public/browser/web_contents.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 15
16 AutofillExternalDelegate::~AutofillExternalDelegate() { 16 AutofillExternalDelegate::~AutofillExternalDelegate() {
17 } 17 }
18 18
19 AutofillExternalDelegate::AutofillExternalDelegate( 19 AutofillExternalDelegate::AutofillExternalDelegate(
20 TabContentsWrapper* tab_contents_wrapper) 20 TabContentsWrapper* tab_contents_wrapper)
21 : tab_contents_wrapper_(tab_contents_wrapper), 21 : tab_contents_wrapper_(tab_contents_wrapper),
22 autofill_query_id_(0), 22 autofill_query_id_(0),
23 display_warning_if_disabled_(false), 23 display_warning_if_disabled_(false),
24 has_shown_autofill_popup_for_current_edit_(false) { 24 has_shown_autofill_popup_for_current_edit_(false) {
25 } 25 }
26 26
27 void AutofillExternalDelegate::SelectAutofillSuggestionAtIndex(int listIndex) { 27 void AutofillExternalDelegate::SelectAutofillSuggestionAtIndex(int listIndex) {
28 RenderViewHost* host = 28 RenderViewHost* host =
29 tab_contents_wrapper_->tab_contents()->GetRenderViewHost(); 29 tab_contents_wrapper_->web_contents()->GetRenderViewHost();
30 host->Send(new AutofillMsg_SelectAutofillSuggestionAtIndex( 30 host->Send(new AutofillMsg_SelectAutofillSuggestionAtIndex(
31 host->routing_id(), 31 host->routing_id(),
32 listIndex)); 32 listIndex));
33 } 33 }
34 34
35 void AutofillExternalDelegate::OnQuery(int query_id, 35 void AutofillExternalDelegate::OnQuery(int query_id,
36 const webkit::forms::FormData& form, 36 const webkit::forms::FormData& form,
37 const webkit::forms::FormField& field, 37 const webkit::forms::FormField& field,
38 const gfx::Rect& bounds, 38 const gfx::Rect& bounds,
39 bool display_warning_if_disabled) { 39 bool display_warning_if_disabled) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // none, so all platforms use the default. 135 // none, so all platforms use the default.
136 136
137 #if !defined(OS_ANDROID) 137 #if !defined(OS_ANDROID)
138 138
139 AutofillExternalDelegate* AutofillExternalDelegate::Create( 139 AutofillExternalDelegate* AutofillExternalDelegate::Create(
140 TabContentsWrapper*, AutofillManager*) { 140 TabContentsWrapper*, AutofillManager*) {
141 return NULL; 141 return NULL;
142 } 142 }
143 143
144 #endif 144 #endif
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit.cc ('k') | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698