| Index: components/arc/focus_highlight/arc_focus_highlight_bridge.h
|
| diff --git a/components/arc/focus_highlight/arc_focus_highlight_bridge.h b/components/arc/focus_highlight/arc_focus_highlight_bridge.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c54f8443815f88c7c9af410bd3d280c442edd44d
|
| --- /dev/null
|
| +++ b/components/arc/focus_highlight/arc_focus_highlight_bridge.h
|
| @@ -0,0 +1,41 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_ARC_FOCUS_HIGHLIGHT_ARC_FOCUS_HIGHLIGHT_BRIDGE_H_
|
| +#define COMPONENTS_ARC_FOCUS_HIGHLIGHT_ARC_FOCUS_HIGHLIGHT_BRIDGE_H_
|
| +
|
| +#include "components/arc/arc_service.h"
|
| +#include "components/arc/common/focus_highlight.mojom.h"
|
| +#include "components/arc/instance_holder.h"
|
| +#include "mojo/public/cpp/bindings/binding.h"
|
| +
|
| +namespace arc {
|
| +
|
| +class ArcBridgeService;
|
| +
|
| +class ArcFocusHighlightBridge
|
| + : public ArcService,
|
| + public mojom::FocusHighlightHost,
|
| + public InstanceHolder<mojom::FocusHighlightInstance>::Observer {
|
| + public:
|
| + explicit ArcFocusHighlightBridge(ArcBridgeService* bridge_service);
|
| + ~ArcFocusHighlightBridge() override;
|
| +
|
| + // InstanceHolder::Observer::OnInstanceReady overrides.
|
| + void OnInstanceReady() override;
|
| +
|
| + // InstanceHolder::Observer::OnInstanceClosed overrides.
|
| + void OnInstanceClosed() override;
|
| +
|
| + void OnViewFocused(const gfx::Rect& rect) override;
|
| +
|
| + private:
|
| + mojo::Binding<mojom::FocusHighlightHost> binding_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ArcFocusHighlightBridge);
|
| +};
|
| +
|
| +} // namespace arc
|
| +
|
| +#endif // COMPONENTS_ARC_FOCUS_HIGHLIGHT_ARC_FOCUS_HIGHLIGHT_BRIDGE_H_
|
|
|