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

Unified Diff: ui/views/mus/desktop_window_tree_host_mus.h

Issue 2714763002: Change FocusSynchronizer to maintain active focus client and window. (Closed)
Patch Set: test Created 3 years, 9 months 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/test/aura_test_helper.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/desktop_window_tree_host_mus.h
diff --git a/ui/views/mus/desktop_window_tree_host_mus.h b/ui/views/mus/desktop_window_tree_host_mus.h
index 30d23705c4223dba3b24582aa46caf56ad13a645..7bf6d3903040171e6ddfdaf2a0d7082c28c3bf57 100644
--- a/ui/views/mus/desktop_window_tree_host_mus.h
+++ b/ui/views/mus/desktop_window_tree_host_mus.h
@@ -9,7 +9,7 @@
#include <set>
#include "base/macros.h"
-#include "ui/aura/env_observer.h"
+#include "ui/aura/mus/focus_synchronizer_observer.h"
#include "ui/aura/mus/window_tree_host_mus.h"
#include "ui/aura/window_observer.h"
#include "ui/views/mus/mus_client_observer.h"
@@ -28,9 +28,9 @@ class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
: public DesktopWindowTreeHost,
public MusClientObserver,
public WidgetObserver,
+ public aura::FocusSynchronizerObserver,
public aura::WindowObserver,
- public aura::WindowTreeHostMus,
- public aura::EnvObserver {
+ public aura::WindowTreeHostMus {
public:
DesktopWindowTreeHostMus(
internal::NativeWidgetDelegate* native_widget_delegate,
@@ -131,6 +131,10 @@ class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
// WidgetObserver:
void OnWidgetActivationChanged(Widget* widget, bool active) override;
+ // aura::FocusSynchronizerObserver:
+ void OnActiveFocusClientChanged(aura::client::FocusClient* focus_client,
+ aura::Window* focus_client_root) override;
+
// aura::WindowObserver:
void OnWindowPropertyChanged(aura::Window* window,
const void* key,
@@ -141,11 +145,6 @@ class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
void HideImpl() override;
void SetBoundsInPixels(const gfx::Rect& bounds_in_pixels) override;
- // aura::EnvObserver:
- void OnWindowInitialized(aura::Window* window) override;
- void OnActiveFocusClientChanged(aura::client::FocusClient* focus_client,
- aura::Window* window) override;
-
internal::NativeWidgetDelegate* native_widget_delegate_;
DesktopNativeWidgetAura* desktop_native_widget_aura_;
« no previous file with comments | « ui/aura/test/aura_test_helper.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698