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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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_AUTOFILL_POPUP_LAYOUT_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_LAYOUT_MODEL_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_LAYOUT_MODEL_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_LAYOUT_MODEL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" 11 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h"
12 #include "chrome/browser/ui/autofill/popup_view_common.h" 12 #include "chrome/browser/ui/autofill/popup_view_common.h"
13 #include "third_party/skia/include/core/SkColor.h" 13 #include "third_party/skia/include/core/SkColor.h"
14 #include "ui/gfx/font_list.h" 14 #include "ui/gfx/font_list.h"
15 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
16 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
17 17
18 namespace gfx {
19 class Display;
20 class Point;
21 }
22
23 namespace ui {
24 class KeyEvent;
25 }
26
27 namespace autofill { 18 namespace autofill {
28 19
29 // Helper class which keeps tracks of popup bounds and related view information. 20 // Helper class which keeps tracks of popup bounds and related view information.
30 // TODO(mathp): investigate moving ownership of this class to the view. 21 // TODO(mathp): investigate moving ownership of this class to the view.
31 class AutofillPopupLayoutModel { 22 class AutofillPopupLayoutModel {
32 public: 23 public:
33 explicit AutofillPopupLayoutModel(AutofillPopupViewDelegate* delegate); 24 explicit AutofillPopupLayoutModel(AutofillPopupViewDelegate* delegate);
34 ~AutofillPopupLayoutModel(); 25 ~AutofillPopupLayoutModel();
35 26
36 // The minimum amount of padding between the Autofill name and subtext, 27 // The minimum amount of padding between the Autofill name and subtext,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 PopupViewCommon view_common_; 100 PopupViewCommon view_common_;
110 101
111 AutofillPopupViewDelegate* delegate_; // Weak reference. 102 AutofillPopupViewDelegate* delegate_; // Weak reference.
112 103
113 DISALLOW_COPY_AND_ASSIGN(AutofillPopupLayoutModel); 104 DISALLOW_COPY_AND_ASSIGN(AutofillPopupLayoutModel);
114 }; 105 };
115 106
116 } // namespace autofill 107 } // namespace autofill
117 108
118 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_LAYOUT_MODEL_H_ 109 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_LAYOUT_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_popup_controller.h ('k') | chrome/browser/ui/autofill/card_unmask_prompt_view_tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698