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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/password_generation_popup_view_bridge.h

Issue 267183002: Password manager: Implement password generation UI for Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_BRIDGE_H _
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_BRIDGE_H _
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "base/mac/scoped_nsobject.h"
13 #include "chrome/browser/ui/autofill/password_generation_popup_view.h"
14
15 @class PasswordGenerationPopupViewCocoa;
16
17 namespace autofill {
18
19 class AutofillPopupController;
20
21 // Mac implementation for PasswordGenerationPopupView interface.
22 // Serves as a bridge to an instance of the Objective-C class which actually
23 // implements the view.
24 class PasswordGenerationPopupViewBridge : public PasswordGenerationPopupView {
25 public:
26 explicit PasswordGenerationPopupViewBridge(
27 PasswordGenerationPopupController* controller);
28
29 private:
30 virtual ~PasswordGenerationPopupViewBridge();
31
32 // PasswordGenerationPopupView implementation.
33 virtual void Hide() OVERRIDE;
34 virtual void Show() OVERRIDE;
35 virtual void UpdateBoundsAndRedrawPopup() OVERRIDE;
36 virtual void PasswordSelectionUpdated() OVERRIDE;
37
38 // The native Cocoa view.
39 base::scoped_nsobject<PasswordGenerationPopupViewCocoa> view_;
40
41 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewBridge);
42 };
43
44 } // namespace autofill
45
46 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_BRIDG E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698