OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
Ilya Sherman
2014/05/09 21:51:28
nit: 2014. Please fix throughout.
Patrick Dubroy
2014/05/12 14:13:39
Done.
| |
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 " | |
Ilya Sherman
2014/05/09 21:51:28
nit: Can this #import be tucked into the implement
Patrick Dubroy
2014/05/12 14:13:39
Yep, done.
| |
14 | |
15 @class AutofillPopupViewCocoa; | |
Ilya Sherman
2014/05/09 21:51:28
nit: Did you mean to forward-declare the password
Patrick Dubroy
2014/05/12 14:13:39
Yeah, done. Though, oddly it seems it's not necess
Ilya Sherman
2014/05/12 21:46:10
I think it's because you were importing the header
| |
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. | |
Ilya Sherman
2014/05/09 21:51:28
nit: I saw that you updated the corresponding comm
Patrick Dubroy
2014/05/12 14:13:39
Done.
| |
25 class PasswordGenerationPopupViewBridge : public PasswordGenerationPopupView { | |
26 public: | |
27 explicit PasswordGenerationPopupViewBridge( | |
28 PasswordGenerationPopupViewCocoa* view); | |
29 | |
30 private: | |
31 virtual ~PasswordGenerationPopupViewBridge(); | |
32 | |
33 // AutofillPopupView implementation. | |
Ilya Sherman
2014/05/09 21:51:28
nit: "// PasswordGenerationPopupView:" (at least,
Patrick Dubroy
2014/05/12 14:13:39
Done.
| |
34 virtual void Hide() OVERRIDE; | |
35 virtual void Show() OVERRIDE; | |
36 virtual void UpdateBoundsAndRedrawPopup() OVERRIDE; | |
37 virtual void PasswordSelectionUpdated() OVERRIDE; | |
38 | |
39 // The native Cocoa view. | |
40 PasswordGenerationPopupViewCocoa* view_; // Weak, owned by |window_|. | |
Ilya Sherman
2014/05/09 21:51:28
Same question here about lifetime and member varia
Patrick Dubroy
2014/05/12 14:13:39
Fixed.
| |
41 | |
42 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewBridge); | |
43 }; | |
44 | |
45 } // namespace autofill | |
46 | |
47 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_BRIDG E_H_ | |
OLD | NEW |