Skip to content

Commit

Permalink
refactor: add metadata to view classes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Nov 17, 2023
1 parent d2be1e1 commit daa8ca3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shell/browser/ui/views/autofill_popup_view.cc
Expand Up @@ -30,6 +30,9 @@ void AutofillPopupChildView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
node_data->SetName(suggestion_);
}

BEGIN_METADATA(AutofillPopupChildView)
END_METADATA

AutofillPopupView::AutofillPopupView(AutofillPopup* popup,
views::Widget* parent_widget)
: popup_(popup), parent_widget_(parent_widget) {
Expand Down
4 changes: 4 additions & 0 deletions shell/browser/ui/views/autofill_popup_view.h
Expand Up @@ -16,6 +16,8 @@
#include "shell/browser/osr/osr_view_proxy.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/views/drag_controller.h"
#include "ui/views/focus/widget_focus_manager.h"
#include "ui/views/widget/widget_delegate.h"
Expand All @@ -34,6 +36,8 @@ class AutofillPopup;
// Child view only for triggering accessibility events. Rendering is handled
// by |AutofillPopupViewViews|.
class AutofillPopupChildView : public views::View {
METADATA_HEADER(AutofillPopupChildView, views::View)

public:
explicit AutofillPopupChildView(const std::u16string& suggestion)
: suggestion_(suggestion) {
Expand Down

0 comments on commit daa8ca3

Please sign in to comment.