| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_AUTOFILL_POPUP_VIEW_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_BRIDGE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // Serves as a bridge to an instance of the Objective-C class which actually | 24 // Serves as a bridge to an instance of the Objective-C class which actually |
| 25 // implements the view. | 25 // implements the view. |
| 26 class AutofillPopupViewBridge : public AutofillPopupView { | 26 class AutofillPopupViewBridge : public AutofillPopupView { |
| 27 public: | 27 public: |
| 28 explicit AutofillPopupViewBridge(AutofillPopupController* controller); | 28 explicit AutofillPopupViewBridge(AutofillPopupController* controller); |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 virtual ~AutofillPopupViewBridge(); | 31 virtual ~AutofillPopupViewBridge(); |
| 32 | 32 |
| 33 // AutofillPopupView implementation. | 33 // AutofillPopupView implementation. |
| 34 virtual void Hide() OVERRIDE; | 34 virtual void Hide() override; |
| 35 virtual void Show() OVERRIDE; | 35 virtual void Show() override; |
| 36 virtual void InvalidateRow(size_t row) OVERRIDE; | 36 virtual void InvalidateRow(size_t row) override; |
| 37 virtual void UpdateBoundsAndRedrawPopup() OVERRIDE; | 37 virtual void UpdateBoundsAndRedrawPopup() override; |
| 38 | 38 |
| 39 // Set the initial bounds of the popup, including its placement. | 39 // Set the initial bounds of the popup, including its placement. |
| 40 void SetInitialBounds(); | 40 void SetInitialBounds(); |
| 41 | 41 |
| 42 // The native Cocoa view. | 42 // The native Cocoa view. |
| 43 base::scoped_nsobject<AutofillPopupViewCocoa> view_; | 43 base::scoped_nsobject<AutofillPopupViewCocoa> view_; |
| 44 | 44 |
| 45 AutofillPopupController* controller_; // Weak. | 45 AutofillPopupController* controller_; // Weak. |
| 46 | 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewBridge); | 47 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewBridge); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace autofill | 50 } // namespace autofill |
| 51 | 51 |
| 52 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_BRIDGE_H_ | 52 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_BRIDGE_H_ |
| OLD | NEW |