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

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: More implementation 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(
28 PasswordGenerationPopupViewCocoa* view);
29
30 private:
31 virtual ~PasswordGenerationPopupViewBridge();
32
33 // AutofillPopupView implementation.
34 virtual void Hide() OVERRIDE;
35 virtual void Show() OVERRIDE;
36 virtual void UpdateBoundsAndRedrawPopup() OVERRIDE;
37 virtual void PasswordSelectionUpdated() OVERRIDE;
38
39 // Set the initial bounds of the popup to show, including the placement
40 // of it.
41 // void SetInitialBounds();
42
43 // The native Cocoa view.
44 PasswordGenerationPopupViewCocoa* view_; // Weak reference, owned by the |win dow_|.
45
46 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewBridge);
47 };
48
49 } // namespace autofill
50
51 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_BRIDG E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698