summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/autofill/test_popup_controller_common.h
blob: dc4f26657a90beb2e2b12babb0e02a638d215f80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_UI_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_
#define CHROME_BROWSER_UI_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_

#include "chrome/browser/ui/autofill/popup_controller_common.h"

#include "ui/gfx/display.h"

namespace autofill {

class TestPopupControllerCommon : public PopupControllerCommon {
 public:
  TestPopupControllerCommon(const gfx::RectF& element_bounds,
                            base::i18n::TextDirection direction);
  ~TestPopupControllerCommon() override;

  void set_display(const gfx::Display& display) { display_ = display; }

 protected:
  // Returns |display_|
  gfx::Display GetDisplayNearestPoint(const gfx::Point& point) const override;

 private:
  gfx::Display display_;

  DISALLOW_COPY_AND_ASSIGN(TestPopupControllerCommon);
};

}  // namespace autofill

#endif  // CHROME_BROWSER_UI_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_