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

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: 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 (c) 2012 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 "chrome/browser/ui/autofill/password_generation_popup_view.h"
13 #import "chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.h "
14
15 @class AutofillPopupViewCocoa;
16 @class NSWindow;
17
18 namespace autofill {
19
20 class AutofillPopupController;
21
22 // Mac implementation for PasswordGenerationPopupView interface.
23 // Serves as a bridge to the Objective-C class PasswordGenerationPopupViewCocoa
24 // which actually implements the view.
25 class PasswordGenerationPopupViewBridge : public PasswordGenerationPopupView {
26 public:
27 explicit PasswordGenerationPopupViewBridge(PasswordGenerationPopupController* controller);
28
29 private:
30 virtual ~PasswordGenerationPopupViewBridge();
31
32 // AutofillPopupView implementation.
33 virtual void Hide() OVERRIDE;
34 virtual void Show() OVERRIDE;
35 virtual void UpdateBoundsAndRedrawPopup() OVERRIDE;
36 virtual void PasswordSelectionUpdated() OVERRIDE;
37
38 // Set the initial bounds of the popup to show, including the placement
39 // of it.
40 // void SetInitialBounds();
41
42 // The controller for this view.
43 PasswordGenerationPopupController* controller_; // Weak reference.
44
45 // The native Cocoa window and view.
46 NSWindow* window_; // Weak reference, owns itself.
47 PasswordGenerationPopupViewCocoa* view_; // Weak reference, owned by the |win dow_|.
48
49 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewBridge);
50 };
51
52 } // namespace autofill
53
54 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_BRIDG E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698