Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / autofill / password_generation_popup_view.h
blob1faa6142fd232e5eade38c58135e9eb7304d7312
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_PASSWORD_GENERATION_POPUP_VIEW_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_H_
8 #include "third_party/skia/include/core/SkColor.h"
10 namespace gfx {
11 class Point;
12 class Size;
15 namespace autofill {
17 class PasswordGenerationPopupController;
19 // Interface for creating and controlling a platform dependent view.
20 class PasswordGenerationPopupView {
21 public:
22 // Number of pixels added in between lines of the help section.
23 static const int kHelpSectionAdditionalSpacing = 3;
25 // Display the popup.
26 virtual void Show() = 0;
28 // This will cause the popup to be deleted.
29 virtual void Hide() = 0;
31 // Get desired size of the popup.
32 virtual gfx::Size GetPreferredSizeOfPasswordView() = 0;
34 // Updates layout information from the controller.
35 virtual void UpdateBoundsAndRedrawPopup() = 0;
37 // Called when the password selection state has changed.
38 virtual void PasswordSelectionUpdated() = 0;
40 virtual bool IsPointInPasswordBounds(const gfx::Point& point) = 0;
42 // Note that PasswordGenerationPopupView owns itself, and will only be deleted
43 // when Hide() is called.
44 static PasswordGenerationPopupView* Create(
45 PasswordGenerationPopupController* controller);
47 static const SkColor kPasswordTextColor;
48 static const SkColor kExplanatoryTextBackgroundColor;
49 static const SkColor kExplanatoryTextColor;
50 static const SkColor kDividerColor;
53 } // namespace autofill
55 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_H_