Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / autofill / test_popup_controller_common.h
blob2bd298226e5db60adc1674e467c89cdd4e6bbe24
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_
8 #include "chrome/browser/ui/autofill/popup_controller_common.h"
10 #include "ui/gfx/display.h"
12 namespace autofill {
14 class TestPopupControllerCommon : public PopupControllerCommon {
15 public:
16 explicit TestPopupControllerCommon(const gfx::RectF& element_bounds);
17 ~TestPopupControllerCommon() override;
19 void set_display(const gfx::Display& display) { display_ = display; }
21 protected:
22 // Returns |display_|
23 gfx::Display GetDisplayNearestPoint(const gfx::Point& point) const override;
25 private:
26 gfx::Display display_;
28 DISALLOW_COPY_AND_ASSIGN(TestPopupControllerCommon);
31 } // namespace autofill
33 #endif // CHROME_BROWSER_UI_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_