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

Side by Side Diff: components/arc/focus_highlight/arc_focus_highlight_bridge.h

Issue 2559663002: Support focus highlight in Android window (Closed)
Patch Set: 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_ARC_FOCUS_HIGHLIGHT_ARC_FOCUS_HIGHLIGHT_BRIDGE_H_
6 #define COMPONENTS_ARC_FOCUS_HIGHLIGHT_ARC_FOCUS_HIGHLIGHT_BRIDGE_H_
7
8 #include "components/arc/arc_service.h"
9 #include "components/arc/common/focus_highlight.mojom.h"
10 #include "components/arc/instance_holder.h"
11 #include "mojo/public/cpp/bindings/binding.h"
12
13 namespace arc {
14
15 class ArcBridgeService;
16
17 class ArcFocusHighlightBridge
18 : public ArcService,
19 public mojom::FocusHighlightHost,
20 public InstanceHolder<mojom::FocusHighlightInstance>::Observer {
21 public:
22 explicit ArcFocusHighlightBridge(ArcBridgeService* bridge_service);
23 ~ArcFocusHighlightBridge() override;
24
25 // InstanceHolder::Observer::OnInstanceReady overrides.
26 void OnInstanceReady() override;
27
28 // InstanceHolder::Observer::OnInstanceClosed overrides.
29 void OnInstanceClosed() override;
30
31 void OnViewFocused(const gfx::Rect& rect) override;
32
33 private:
34 mojo::Binding<mojom::FocusHighlightHost> binding_;
35
36 DISALLOW_COPY_AND_ASSIGN(ArcFocusHighlightBridge);
37 };
38
39 } // namespace arc
40
41 #endif // COMPONENTS_ARC_FOCUS_HIGHLIGHT_ARC_FOCUS_HIGHLIGHT_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698