forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp_bubble_factory_mac.h
35 lines (25 loc) · 1.11 KB
/
help_bubble_factory_mac.h
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
35
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_USER_EDUCATION_VIEWS_HELP_BUBBLE_FACTORY_MAC_H_
#define COMPONENTS_USER_EDUCATION_VIEWS_HELP_BUBBLE_FACTORY_MAC_H_
#include "base/memory/raw_ptr.h"
#include "components/user_education/common/help_bubble_factory.h"
namespace user_education {
class HelpBubbleDelegate;
// Factory implementation for HelpBubbleViews.
class HelpBubbleFactoryMac : public HelpBubbleFactory {
public:
explicit HelpBubbleFactoryMac(const HelpBubbleDelegate* delegate);
~HelpBubbleFactoryMac() override;
DECLARE_FRAMEWORK_SPECIFIC_METADATA()
// HelpBubbleFactory:
std::unique_ptr<HelpBubble> CreateBubble(ui::TrackedElement* element,
HelpBubbleParams params) override;
bool CanBuildBubbleForTrackedElement(
const ui::TrackedElement* element) const override;
private:
base::raw_ptr<const HelpBubbleDelegate> delegate_;
};
} // namespace user_education
#endif // COMPONENTS_USER_EDUCATION_VIEWS_HELP_BUBBLE_FACTORY_MAC_H_