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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_BRIDGE_H _ 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 _ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_BRIDGE_H _
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/mac/scoped_nsobject.h" 11 #include "base/mac/scoped_nsobject.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "chrome/browser/ui/autofill/password_generation_popup_view.h" 13 #include "chrome/browser/ui/autofill/password_generation_popup_view.h"
14 14
15 @class PasswordGenerationPopupViewCocoa; 15 @class PasswordGenerationPopupViewCocoa;
16 16
17 namespace autofill { 17 namespace autofill {
18 18
19 class AutofillPopupController;
20
21 // Mac implementation for PasswordGenerationPopupView interface. 19 // Mac implementation for PasswordGenerationPopupView interface.
22 // Serves as a bridge to an instance of the Objective-C class which actually 20 // Serves as a bridge to an instance of the Objective-C class which actually
23 // implements the view. 21 // implements the view.
24 class PasswordGenerationPopupViewBridge : public PasswordGenerationPopupView { 22 class PasswordGenerationPopupViewBridge : public PasswordGenerationPopupView {
25 public: 23 public:
26 explicit PasswordGenerationPopupViewBridge( 24 explicit PasswordGenerationPopupViewBridge(
27 PasswordGenerationPopupController* controller); 25 PasswordGenerationPopupController* controller);
28 26
29 private: 27 private:
30 virtual ~PasswordGenerationPopupViewBridge(); 28 virtual ~PasswordGenerationPopupViewBridge();
31 29
32 // PasswordGenerationPopupView implementation. 30 // PasswordGenerationPopupView implementation.
33 void Hide() override; 31 void Hide() override;
34 void Show() override; 32 void Show() override;
35 gfx::Size GetPreferredSizeOfPasswordView() override; 33 gfx::Size GetPreferredSizeOfPasswordView() override;
36 void UpdateBoundsAndRedrawPopup() override; 34 void UpdateBoundsAndRedrawPopup() override;
37 void PasswordSelectionUpdated() override; 35 void PasswordSelectionUpdated() override;
38 bool IsPointInPasswordBounds(const gfx::Point& point) override; 36 bool IsPointInPasswordBounds(const gfx::Point& point) override;
39 37
40 // The native Cocoa view. 38 // The native Cocoa view.
41 base::scoped_nsobject<PasswordGenerationPopupViewCocoa> view_; 39 base::scoped_nsobject<PasswordGenerationPopupViewCocoa> view_;
42 40
43 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewBridge); 41 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewBridge);
44 }; 42 };
45 43
46 } // namespace autofill 44 } // namespace autofill
47 45
48 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_BRIDG E_H_ 46 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_BRIDG E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698