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

Unified Diff: ui/aura/mus/focus_synchronizer_delegate.h

Issue 2488723002: Reland of Improves focus/activation for aura-mus and DesktopNativeWidgetAura (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « ui/aura/mus/focus_synchronizer.cc ('k') | ui/aura/mus/in_flight_change.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/focus_synchronizer_delegate.h
diff --git a/ui/aura/mus/focus_synchronizer_delegate.h b/ui/aura/mus/focus_synchronizer_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..69685c599d238e0c775dfaf24b947a8d9e7b6ed2
--- /dev/null
+++ b/ui/aura/mus/focus_synchronizer_delegate.h
@@ -0,0 +1,28 @@
+// 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 UI_AURA_MUS_FOCUS_SYNCHRONIZER_DELEGATE_H_
+#define UI_AURA_MUS_FOCUS_SYNCHRONIZER_DELEGATE_H_
+
+#include <stdint.h>
+
+#include "ui/aura/aura_export.h"
+
+namespace aura {
+
+class WindowMus;
+
+// Used by FocusSynchronizer to create a change id when focus changes. The
+// change id is then sent to ui::mojom::WindowTree.
+class AURA_EXPORT FocusSynchronizerDelegate {
+ public:
+ virtual uint32_t CreateChangeIdForFocus(WindowMus* window) = 0;
+
+ protected:
+ virtual ~FocusSynchronizerDelegate() {}
+};
+
+} // namespace aura
+
+#endif // UI_AURA_MUS_FOCUS_SYNCHRONIZER_DELEGATE_H_
« no previous file with comments | « ui/aura/mus/focus_synchronizer.cc ('k') | ui/aura/mus/in_flight_change.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698