fix: cyclical #include dependency between autofill_popup.h and autofill_popup_view.h (#44705)

fix: AutofillPopup warning: use '= default' to define a trivial default constructor [modernize-use-equals-default]

refactor: reduce #indclude scope in autofill_popup.h and autofill_popup_view.h
This commit is contained in:
Charles Kerr 2024-11-19 13:45:18 -06:00 committed by GitHub
parent 48c9149a52
commit 1cf5e6d88c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 17 deletions

View file

@ -12,6 +12,7 @@
#include "cc/paint/skia_paint_canvas.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_view_host.h"
#include "shell/browser/ui/autofill_popup.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/color/color_provider.h"

View file

@ -8,8 +8,6 @@
#include <memory>
#include <optional>
#include "shell/browser/ui/autofill_popup.h"
#include "base/memory/raw_ptr.h"
#include "content/public/browser/render_widget_host.h"
#include "electron/buildflags/buildflags.h"
@ -31,11 +29,8 @@ struct AXNodeData;
namespace electron {
const int kPopupBorderThickness = 1;
const int kSmallerFontSizeDelta = -1;
const int kEndPadding = 8;
const int kNamePadding = 15;
const int kRowHeight = 24;
constexpr int kPopupBorderThickness = 1;
constexpr int kEndPadding = 8;
class AutofillPopup;