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

Unified Diff: ash/mus/frame/custom_frame_view_mus.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/README.md ('k') | ash/mus/frame/custom_frame_view_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/frame/custom_frame_view_mus.h
diff --git a/ash/mus/frame/custom_frame_view_mus.h b/ash/mus/frame/custom_frame_view_mus.h
new file mode 100644
index 0000000000000000000000000000000000000000..413e45ebac622a42bfdee87b15d62c439ddb7025
--- /dev/null
+++ b/ash/mus/frame/custom_frame_view_mus.h
@@ -0,0 +1,34 @@
+// 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 ASH_MUS_FRAME_CUSTOM_FRAME_VIEW_MUS_H_
+#define ASH_MUS_FRAME_CUSTOM_FRAME_VIEW_MUS_H_
+
+#include "ash/common/frame/custom_frame_view_ash.h"
+#include "ui/compositor/paint_cache.h"
+
+namespace ash {
+namespace mus {
+
+class CustomFrameViewMus : public CustomFrameViewAsh {
+ public:
+ CustomFrameViewMus(views::Widget* widget,
+ ImmersiveFullscreenControllerDelegate* immersive_delegate,
+ bool enable_immersive);
+ ~CustomFrameViewMus() override;
+
+ // CustomFrameViewAsh:
+ void OnPaint(gfx::Canvas* canvas) override;
+ void PaintChildren(const ui::PaintContext& context) override;
+
+ private:
+ ui::PaintCache paint_cache_;
+
+ DISALLOW_COPY_AND_ASSIGN(CustomFrameViewMus);
+};
+
+} // namespace mus
+} // namespace ash
+
+#endif // ASH_MUS_FRAME_CUSTOM_FRAME_VIEW_MUS_H_
« no previous file with comments | « ash/mus/frame/README.md ('k') | ash/mus/frame/custom_frame_view_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698