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

Unified Diff: chrome/browser/chromeos/arc/focus_highlight/arc_focus_highlight_bridge.h

Issue 2559663002: Support focus highlight in Android window (Closed)
Patch Set: Move focus_highlight from components/arc to c/b/chromeos/arc 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/arc/focus_highlight/arc_focus_highlight_bridge.h
diff --git a/chrome/browser/chromeos/arc/focus_highlight/arc_focus_highlight_bridge.h b/chrome/browser/chromeos/arc/focus_highlight/arc_focus_highlight_bridge.h
new file mode 100644
index 0000000000000000000000000000000000000000..8334ae696007322e053610af0944b718fd89c61d
--- /dev/null
+++ b/chrome/browser/chromeos/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 CHROME_BROWSER_CHROMEOS_ARC_FOCUS_HIGHLIGHT_ARC_FOCUS_HIGHLIGHT_BRIDGE_H_
+#define CHROME_BROWSER_CHROMEOS_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.
Luis Héctor Chávez 2016/12/07 17:58:56 nit: // InstanceHolder<mojom::FocusHighlightInsta
yawano 2017/01/11 10:31:33 Done.
+ void OnInstanceReady() override;
+
+ // InstanceHolder::Observer::OnInstanceClosed overrides.
+ void OnInstanceClosed() override;
+
+ void OnViewFocused(const gfx::Rect& rect) override;
hidehiko 2016/12/08 14:54:59 nit: "// mojom::FocusHighlightHost" too?
yawano 2017/01/11 10:31:33 Done.
+
+ private:
+ mojo::Binding<mojom::FocusHighlightHost> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(ArcFocusHighlightBridge);
+};
+
+} // namespace arc
+
+#endif // CHROME_BROWSER_CHROMEOS_ARC_FOCUS_HIGHLIGHT_ARC_FOCUS_HIGHLIGHT_BRIDGE_H_

Powered by Google App Engine
This is Rietveld 408576698