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

Unified Diff: chrome/browser/ui/views/frame/browser_frame_mus.h

Issue 1416373010: Implement a MusBrowserFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome
Patch Set: . Created 5 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 | « chrome/browser/mojo_runner_state.cc ('k') | chrome/browser/ui/views/frame/browser_frame_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_frame_mus.h
diff --git a/chrome/browser/ui/views/frame/browser_frame_mus.h b/chrome/browser/ui/views/frame/browser_frame_mus.h
new file mode 100644
index 0000000000000000000000000000000000000000..e120aba4b7295c14279f00796f1f98a27e74dd91
--- /dev/null
+++ b/chrome/browser/ui/views/frame/browser_frame_mus.h
@@ -0,0 +1,33 @@
+// Copyright 2015 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 CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_MUS_H_
+#define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_MUS_H_
+
+#include "base/macros.h"
+#include "chrome/browser/ui/views/frame/native_browser_frame.h"
+#include "ui/views/mus/native_widget_mus.h"
+
+class BrowserFrameMus : public NativeBrowserFrame,
+ public views::NativeWidgetMus {
+ public:
+ BrowserFrameMus(BrowserFrame* browser_frame, BrowserView* browser_view);
+ ~BrowserFrameMus() override;
+
+ private:
+ // Overridden from NativeBrowserFrame:
+ views::Widget::InitParams GetWidgetParams() override;
+ bool UseCustomFrame() const override;
+ bool UsesNativeSystemMenu() const override;
+ bool ShouldSaveWindowPlacement() const override;
+ void GetWindowPlacement(gfx::Rect* bounds,
+ ui::WindowShowState* show_state) const override;
+ int GetMinimizeButtonOffset() const override;
+
+ BrowserView* browser_view_;
+
+ DISALLOW_COPY_AND_ASSIGN(BrowserFrameMus);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_MUS_H_
« no previous file with comments | « chrome/browser/mojo_runner_state.cc ('k') | chrome/browser/ui/views/frame/browser_frame_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698