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

Side by Side Diff: chrome/browser/ui/autofill/mock_autofill_dialog_controller.h

Issue 14821005: [RFP, Autofill] Switching dialog field identification to int. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_
7 7
8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" 8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 DialogSection section) OVERRIDE; 45 DialogSection section) OVERRIDE;
46 virtual void EditClickedForSection(DialogSection section) OVERRIDE; 46 virtual void EditClickedForSection(DialogSection section) OVERRIDE;
47 virtual void EditCancelledForSection(DialogSection section) OVERRIDE; 47 virtual void EditCancelledForSection(DialogSection section) OVERRIDE;
48 virtual gfx::Image IconForField(AutofillFieldType type, 48 virtual gfx::Image IconForField(AutofillFieldType type,
49 const string16& user_input) const OVERRIDE; 49 const string16& user_input) const OVERRIDE;
50 virtual bool InputIsValid(AutofillFieldType type, 50 virtual bool InputIsValid(AutofillFieldType type,
51 const string16& value) const OVERRIDE; 51 const string16& value) const OVERRIDE;
52 virtual std::vector<AutofillFieldType> InputsAreValid( 52 virtual std::vector<AutofillFieldType> InputsAreValid(
53 const DetailOutputMap& inputs, 53 const DetailOutputMap& inputs,
54 ValidationType validation_type) const OVERRIDE; 54 ValidationType validation_type) const OVERRIDE;
55 virtual void UserEditedOrActivatedInput(const DetailInput* input, 55 virtual void UserEditedOrActivatedInput(DialogSection section,
56 AutofillFieldType type,
56 gfx::NativeView parent_view, 57 gfx::NativeView parent_view,
57 const gfx::Rect& content_bounds, 58 const gfx::Rect& content_bounds,
58 const string16& field_contents, 59 const string16& field_contents,
59 bool was_edit) OVERRIDE; 60 bool was_edit) OVERRIDE;
60 virtual bool HandleKeyPressEventInInput( 61 virtual bool HandleKeyPressEventInInput(
61 const content::NativeWebKeyboardEvent& event) OVERRIDE; 62 const content::NativeWebKeyboardEvent& event) OVERRIDE;
62 63
63 virtual void FocusMoved() OVERRIDE; 64 virtual void FocusMoved() OVERRIDE;
64 65
65 virtual void ViewClosed() OVERRIDE; 66 virtual void ViewClosed() OVERRIDE;
(...skipping 13 matching lines...) Expand all
79 MOCK_METHOD0(profile, Profile*()); 80 MOCK_METHOD0(profile, Profile*());
80 virtual content::WebContents* web_contents() OVERRIDE; 81 virtual content::WebContents* web_contents() OVERRIDE;
81 private: 82 private:
82 std::vector<ui::Range> range_; 83 std::vector<ui::Range> range_;
83 DetailInputs inputs_; 84 DetailInputs inputs_;
84 }; 85 };
85 86
86 } // namespace autofill 87 } // namespace autofill
87 88
88 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_ 89 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_view.h ('k') | chrome/browser/ui/autofill/mock_autofill_dialog_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698