1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_
8 #include "ui/base/ui_base_types.h"
9 #include "ui/gfx/rect.h"
18 class NativeBrowserFrame
{
20 virtual ~NativeBrowserFrame() {}
22 virtual views::NativeWidget
* AsNativeWidget() = 0;
23 virtual const views::NativeWidget
* AsNativeWidget() const = 0;
25 // Returns true if the OS takes care of showing the system menu. Returning
26 // false means BrowserFrame handles showing the system menu.
27 virtual bool UsesNativeSystemMenu() const = 0;
29 // Returns true when the window placement should be stored.
30 virtual bool ShouldSaveWindowPlacement() const = 0;
32 // Retrieves the window placement (show state and bounds) for restoring.
33 virtual void GetWindowPlacement(gfx::Rect
* bounds
,
34 ui::WindowShowState
* show_state
) const = 0;
37 friend class BrowserFrame
;
39 // BrowserFrame pass-thrus ---------------------------------------------------
40 // See browser_frame.h for documentation:
41 virtual int GetMinimizeButtonOffset() const = 0;
44 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_