Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / views / frame / native_browser_frame.h
blob2518ccb21a7fb1e4a52222ce4e1090982920b873
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/geometry/rect.h"
10 #include "ui/views/widget/widget.h"
12 class BrowserFrame;
13 class BrowserView;
15 namespace views {
16 class NativeWidget;
19 class NativeBrowserFrame {
20 public:
21 virtual ~NativeBrowserFrame() {}
23 // Returns the platform specific InitParams for initializing our widget.
24 virtual views::Widget::InitParams GetWidgetParams() = 0;
26 // Returns |true| if we should use the custom frame.
27 virtual bool UseCustomFrame() const = 0;
29 // Returns true if the OS takes care of showing the system menu. Returning
30 // false means BrowserFrame handles showing the system menu.
31 virtual bool UsesNativeSystemMenu() const = 0;
33 // Returns true when the window placement should be stored.
34 virtual bool ShouldSaveWindowPlacement() const = 0;
36 // Retrieves the window placement (show state and bounds) for restoring.
37 virtual void GetWindowPlacement(gfx::Rect* bounds,
38 ui::WindowShowState* show_state) const = 0;
40 protected:
41 friend class BrowserFrame;
43 // BrowserFrame pass-thrus ---------------------------------------------------
44 // See browser_frame.h for documentation:
45 virtual int GetMinimizeButtonOffset() const = 0;
48 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_