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

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

Issue 24012002: Move Range code to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: d Created 7 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_VIEW_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_
7 7
8 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" 8 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
(...skipping 18 matching lines...) Expand all
29 MOCK_CONST_METHOD0(ShouldShowSpinner, bool()); 29 MOCK_CONST_METHOD0(ShouldShowSpinner, bool());
30 MOCK_CONST_METHOD0(ShouldOfferToSaveInChrome, bool()); 30 MOCK_CONST_METHOD0(ShouldOfferToSaveInChrome, bool());
31 MOCK_CONST_METHOD0(ShouldSaveInChrome, bool()); 31 MOCK_CONST_METHOD0(ShouldSaveInChrome, bool());
32 MOCK_METHOD0(MenuModelForAccountChooser, ui::MenuModel*()); 32 MOCK_METHOD0(MenuModelForAccountChooser, ui::MenuModel*());
33 MOCK_METHOD0(AccountChooserImage, gfx::Image()); 33 MOCK_METHOD0(AccountChooserImage, gfx::Image());
34 MOCK_CONST_METHOD0(ShouldShowProgressBar, bool()); 34 MOCK_CONST_METHOD0(ShouldShowProgressBar, bool());
35 MOCK_CONST_METHOD0(ButtonStripImage, gfx::Image()); 35 MOCK_CONST_METHOD0(ButtonStripImage, gfx::Image());
36 MOCK_CONST_METHOD0(GetDialogButtons, int()); 36 MOCK_CONST_METHOD0(GetDialogButtons, int());
37 MOCK_CONST_METHOD1(IsDialogButtonEnabled, bool(ui::DialogButton button)); 37 MOCK_CONST_METHOD1(IsDialogButtonEnabled, bool(ui::DialogButton button));
38 MOCK_CONST_METHOD0(GetDialogOverlay, DialogOverlayState()); 38 MOCK_CONST_METHOD0(GetDialogOverlay, DialogOverlayState());
39 MOCK_METHOD0(LegalDocumentLinks, const std::vector<ui::Range>&()); 39 MOCK_METHOD0(LegalDocumentLinks, const std::vector<gfx::Range>&());
40 MOCK_CONST_METHOD1(SectionIsActive, bool(DialogSection)); 40 MOCK_CONST_METHOD1(SectionIsActive, bool(DialogSection));
41 MOCK_CONST_METHOD1(RequestedFieldsForSection, 41 MOCK_CONST_METHOD1(RequestedFieldsForSection,
42 const DetailInputs&(DialogSection)); 42 const DetailInputs&(DialogSection));
43 MOCK_METHOD1(ComboboxModelForAutofillType, 43 MOCK_METHOD1(ComboboxModelForAutofillType,
44 ui::ComboboxModel*(ServerFieldType)); 44 ui::ComboboxModel*(ServerFieldType));
45 MOCK_METHOD1(MenuModelForSection, ui::MenuModel*(DialogSection)); 45 MOCK_METHOD1(MenuModelForSection, ui::MenuModel*(DialogSection));
46 MOCK_CONST_METHOD1(LabelForSection, string16(DialogSection section)); 46 MOCK_CONST_METHOD1(LabelForSection, string16(DialogSection section));
47 MOCK_METHOD1(SuggestionStateForSection, SuggestionState(DialogSection)); 47 MOCK_METHOD1(SuggestionStateForSection, SuggestionState(DialogSection));
48 MOCK_METHOD1(EditClickedForSection, void(DialogSection section)); 48 MOCK_METHOD1(EditClickedForSection, void(DialogSection section));
49 MOCK_METHOD1(EditCancelledForSection, void(DialogSection section)); 49 MOCK_METHOD1(EditCancelledForSection, void(DialogSection section));
(...skipping 12 matching lines...) Expand all
62 bool was_edit)); 62 bool was_edit));
63 MOCK_METHOD1(HandleKeyPressEventInInput, 63 MOCK_METHOD1(HandleKeyPressEventInInput,
64 bool(const content::NativeWebKeyboardEvent& event)); 64 bool(const content::NativeWebKeyboardEvent& event));
65 MOCK_METHOD0(FocusMoved, void()); 65 MOCK_METHOD0(FocusMoved, void());
66 MOCK_CONST_METHOD0(SplashPageImage, gfx::Image()); 66 MOCK_CONST_METHOD0(SplashPageImage, gfx::Image());
67 MOCK_METHOD0(ViewClosed, void()); 67 MOCK_METHOD0(ViewClosed, void());
68 MOCK_METHOD0(CurrentNotifications,std::vector<DialogNotification>()); 68 MOCK_METHOD0(CurrentNotifications,std::vector<DialogNotification>());
69 MOCK_METHOD0(SignInLinkClicked, void()); 69 MOCK_METHOD0(SignInLinkClicked, void());
70 MOCK_METHOD2(NotificationCheckboxStateChanged, 70 MOCK_METHOD2(NotificationCheckboxStateChanged,
71 void(DialogNotification::Type, bool)); 71 void(DialogNotification::Type, bool));
72 MOCK_METHOD1(LegalDocumentLinkClicked, void(const ui::Range&)); 72 MOCK_METHOD1(LegalDocumentLinkClicked, void(const gfx::Range&));
73 MOCK_METHOD0(OverlayButtonPressed, void()); 73 MOCK_METHOD0(OverlayButtonPressed, void());
74 MOCK_METHOD0(OnCancel, bool()); 74 MOCK_METHOD0(OnCancel, bool());
75 MOCK_METHOD0(OnAccept, bool()); 75 MOCK_METHOD0(OnAccept, bool());
76 MOCK_METHOD0(profile, Profile*()); 76 MOCK_METHOD0(profile, Profile*());
77 MOCK_METHOD0(GetWebContents, content::WebContents*()); 77 MOCK_METHOD0(GetWebContents, content::WebContents*());
78 private: 78 private:
79 DetailInputs default_inputs_; 79 DetailInputs default_inputs_;
80 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC. 80 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC.
81 std::vector<ui::Range> range_; 81 std::vector<gfx::Range> range_;
82 }; 82 };
83 83
84 } // namespace autofill 84 } // namespace autofill
85 85
86 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ 86 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698