summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/frame/native_browser_frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/frame/native_browser_frame.h')
-rw-r--r--chrome/browser/ui/views/frame/native_browser_frame.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/ui/views/frame/native_browser_frame.h b/chrome/browser/ui/views/frame/native_browser_frame.h
index 1aea739..846d9e7 100644
--- a/chrome/browser/ui/views/frame/native_browser_frame.h
+++ b/chrome/browser/ui/views/frame/native_browser_frame.h
@@ -5,6 +5,9 @@
#ifndef CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_
#define CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_
+#include "ui/base/ui_base_types.h"
+#include "ui/gfx/rect.h"
+
class BrowserFrame;
class BrowserView;
@@ -23,6 +26,13 @@ class NativeBrowserFrame {
// false means BrowserFrame handles showing the system menu.
virtual bool UsesNativeSystemMenu() const = 0;
+ // Returns true when the window placement should be stored.
+ virtual bool ShouldSaveWindowPlacement() const = 0;
+
+ // Retrieves the window placement (show state and bounds) for restoring.
+ virtual void GetWindowPlacement(gfx::Rect* bounds,
+ ui::WindowShowState* show_state) const = 0;
+
protected:
friend class BrowserFrame;