[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / views / frame / native_browser_frame.h
blob846d9e7f9b4b9122d60882c7d6b2e34b91fb110c
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"
11 class BrowserFrame;
12 class BrowserView;
14 namespace views {
15 class NativeWidget;
18 class NativeBrowserFrame {
19 public:
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;
36 protected:
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_