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.
4
5#ifndef CHROME_BROWSER_UI_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_
6#define CHROME_BROWSER_UI_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_
7
8#include "chrome/browser/ui/autofill/popup_controller_common.h"
9
10#include "ui/gfx/display.h"
11
12namespace autofill {
13
14class TestPopupControllerCommon : public PopupControllerCommon {
15 public:
16  explicit TestPopupControllerCommon(const gfx::RectF& element_bounds);
17  virtual ~TestPopupControllerCommon();
18
19  void set_display(const gfx::Display& display) { display_ = display; }
20
21 protected:
22  // Returns |display_|
23  virtual gfx::Display GetDisplayNearestPoint(
24      const gfx::Point& point) const OVERRIDE;
25
26 private:
27  gfx::Display display_;
28
29  DISALLOW_COPY_AND_ASSIGN(TestPopupControllerCommon);
30};
31
32}  // namespace autofill
33
34#endif  // CHROME_BROWSER_UI_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_
35