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

Side by Side Diff: chrome/browser/ui/autofill/test_popup_controller_common.h

Issue 1151263002: Fix positioning of autofill popup on rtl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_
7 7
8 #include "chrome/browser/ui/autofill/popup_controller_common.h" 8 #include "chrome/browser/ui/autofill/popup_controller_common.h"
9 9
10 #include "ui/gfx/display.h" 10 #include "ui/gfx/display.h"
11 11
12 namespace autofill { 12 namespace autofill {
13 13
14 class TestPopupControllerCommon : public PopupControllerCommon { 14 class TestPopupControllerCommon : public PopupControllerCommon {
15 public: 15 public:
16 explicit TestPopupControllerCommon(const gfx::RectF& element_bounds); 16 TestPopupControllerCommon(const gfx::RectF& element_bounds,
17 base::i18n::TextDirection direction);
17 ~TestPopupControllerCommon() override; 18 ~TestPopupControllerCommon() override;
18 19
19 void set_display(const gfx::Display& display) { display_ = display; } 20 void set_display(const gfx::Display& display) { display_ = display; }
20 21
21 protected: 22 protected:
22 // Returns |display_| 23 // Returns |display_|
23 gfx::Display GetDisplayNearestPoint(const gfx::Point& point) const override; 24 gfx::Display GetDisplayNearestPoint(const gfx::Point& point) const override;
24 25
25 private: 26 private:
26 gfx::Display display_; 27 gfx::Display display_;
27 28
28 DISALLOW_COPY_AND_ASSIGN(TestPopupControllerCommon); 29 DISALLOW_COPY_AND_ASSIGN(TestPopupControllerCommon);
29 }; 30 };
30 31
31 } // namespace autofill 32 } // namespace autofill
32 33
33 #endif // CHROME_BROWSER_UI_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_ 34 #endif // CHROME_BROWSER_UI_AUTOFILL_TEST_POPUP_CONTROLLER_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698