ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / chrome / browser / ui / autofill / card_unmask_prompt_view.h
blob6754856f7392ff2a1bdf0615647ea181a452dd2e
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_
8 namespace autofill {
10 class CardUnmaskPromptController;
12 // The cross-platform UI interface which prompts the user to unlock a masked
13 // Wallet instrument (credit card). This object is responsible for its own
14 // lifetime.
15 class CardUnmaskPromptView {
16 public:
17 static CardUnmaskPromptView* CreateAndShow(
18 CardUnmaskPromptController* controller);
20 virtual void ControllerGone() = 0;
21 virtual void DisableAndWaitForVerification() = 0;
22 virtual void GotVerificationResult(const base::string16& error_message,
23 bool allow_retry) = 0;
25 protected:
26 CardUnmaskPromptView() {}
27 virtual ~CardUnmaskPromptView() {}
29 private:
30 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptView);
33 } // namespace autofill
35 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_