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

Unified Diff: ash/mus/non_client_frame_controller.h

Issue 2277563002: Wires up immersive mode for chrome and mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 4 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 | « ash/mus/frame/detached_title_area_renderer_host.h ('k') | ash/mus/non_client_frame_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/non_client_frame_controller.h
diff --git a/ash/mus/non_client_frame_controller.h b/ash/mus/non_client_frame_controller.h
index df3f6fa238a797b1267fc96007c63e15a8fb8c12..d1bb499c9f9f01c89debfe3b698ba1e5ef897d53 100644
--- a/ash/mus/non_client_frame_controller.h
+++ b/ash/mus/non_client_frame_controller.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include "ash/mus/frame/detached_title_area_renderer_host.h"
#include "base/macros.h"
#include "base/strings/string16.h"
#include "services/ui/public/cpp/window_observer.h"
@@ -16,10 +17,6 @@ namespace gfx {
class Insets;
}
-namespace shell {
-class Connector;
-}
-
namespace ui {
class Window;
class WindowManagerClient;
@@ -30,11 +27,11 @@ namespace mus {
// Provides the non-client frame for mus Windows.
class NonClientFrameController : public views::WidgetDelegateView,
- public ui::WindowObserver {
+ public ui::WindowObserver,
+ public DetachedTitleAreaRendererHost {
public:
// NonClientFrameController deletes itself when |window| is destroyed.
- static void Create(shell::Connector* connector,
- ui::Window* parent,
+ static void Create(ui::Window* parent,
ui::Window* window,
ui::WindowManagerClient* window_manager_client);
@@ -48,12 +45,15 @@ class NonClientFrameController : public views::WidgetDelegateView,
ui::Window* window() { return window_; }
private:
- NonClientFrameController(shell::Connector* connector,
- ui::Window* parent,
+ NonClientFrameController(ui::Window* parent,
ui::Window* window,
ui::WindowManagerClient* window_manager_client);
~NonClientFrameController() override;
+ // DetachedTitleAreaRendererHost:
+ void OnDetachedTitleAreaRendererDestroyed(
+ DetachedTitleAreaRenderer* renderer) override;
+
// views::WidgetDelegateView:
base::string16 GetWindowTitle() const override;
views::View* GetContentsView() override;
@@ -64,6 +64,7 @@ class NonClientFrameController : public views::WidgetDelegateView,
views::ClientView* CreateClientView(views::Widget* widget) override;
// ui::WindowObserver:
+ void OnTreeChanged(const TreeChangeParams& params) override;
void OnWindowSharedPropertyChanged(
ui::Window* window,
const std::string& name,
@@ -80,6 +81,10 @@ class NonClientFrameController : public views::WidgetDelegateView,
// is null.
ui::Window* window_;
+ // Used if a child window is added that has the
+ // kRendererParentTitleArea_Property set.
+ DetachedTitleAreaRenderer* detached_title_area_renderer_ = nullptr;
+
DISALLOW_COPY_AND_ASSIGN(NonClientFrameController);
};
« no previous file with comments | « ash/mus/frame/detached_title_area_renderer_host.h ('k') | ash/mus/non_client_frame_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698