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

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

Issue 11740033: [Autofill] Add Mac implementation for the in-browser process popup view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Calibrated colors, fewer defaults Created 7 years, 11 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_AUTOFILL_POPUP_VIEW_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_MAC_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "base/memory/scoped_nsobject.h"
12 #include "chrome/browser/ui/autofill/autofill_popup_view.h"
13
14 class AutofillPopupController;
15 @class AutofillPopupViewCocoa;
16 @class NSWindow;
17
18 // Mac implementation for AutofillPopupView interface.
19 class AutofillPopupViewMac : public AutofillPopupView {
20 public:
21 explicit AutofillPopupViewMac(AutofillPopupController* controller);
22
23 private:
24 virtual ~AutofillPopupViewMac();
25
26 // AutofillPopupView implementation.
27 virtual void Hide() OVERRIDE;
28 virtual void Show() OVERRIDE;
29 virtual void InvalidateRow(size_t row) OVERRIDE;
30 virtual void UpdateBoundsAndRedrawPopup() OVERRIDE;
31
32 // Set the initial bounds of the popup to show, including the placement
33 // of it.
34 void SetInitialBounds();
35
36 // The controller for this view.
37 AutofillPopupController* controller_; // Weak reference.
38
39 // The native Cocoa window and view.
40 NSWindow* window_; // Weak reference, owns itself.
41 AutofillPopupViewCocoa* view_; // Weak reference, owned by the |window_|.
42
43 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewMac);
44 };
45
46 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698