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

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

Issue 2568303006: aura-mus: Implement Deactivate(). (Closed)
Patch Set: Add comment. Created 3 years, 11 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/mus/test_window_tree.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 562eb0a25b448b4c38a594e1c0ab84eb82132cb9..85ccf6996863dc9625191fdcf5e0695cfc15c45b 100644
--- a/ui/views/mus/desktop_window_tree_host_mus.h
+++ b/ui/views/mus/desktop_window_tree_host_mus.h
@@ -15,6 +15,7 @@
#include "ui/views/mus/mus_export.h"
#include "ui/views/widget/desktop_aura/desktop_window_tree_host.h"
#include "ui/views/widget/widget.h"
+#include "ui/views/widget/widget_observer.h"
namespace wm {
class CursorManager;
@@ -25,6 +26,7 @@ namespace views {
class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
: public DesktopWindowTreeHost,
public MusClientObserver,
+ public WidgetObserver,
public aura::WindowTreeHostMus,
public aura::EnvObserver {
public:
@@ -60,6 +62,7 @@ class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
void Init(aura::Window* content_window,
const Widget::InitParams& params) override;
void OnNativeWidgetCreated(const Widget::InitParams& params) override;
+ void OnNativeWidgetActivationChanged(bool active) override;
void OnWidgetInitDone() override;
std::unique_ptr<corewm::Tooltip> CreateTooltip() override;
std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient(
@@ -123,6 +126,9 @@ class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
// MusClientObserver:
void OnWindowManagerFrameValuesChanged() override;
+ // WidgetObserver:
+ void OnWidgetActivationChanged(Widget* widget, bool active) override;
+
// WindowTreeHostMus:
void ShowImpl() override;
void HideImpl() override;
« no previous file with comments | « ui/aura/test/mus/test_window_tree.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