blob: 06a7598dc369c4c57e346ad1cf1a06acb51834ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright (c) 2012 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_NATIVE_BROWSER_FRAME_H_
#define CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_
#pragma once
class BrowserFrame;
class BrowserView;
namespace views {
class NativeWidget;
}
class NativeBrowserFrame {
public:
virtual ~NativeBrowserFrame() {}
// Construct a platform-specific implementation of this interface.
static NativeBrowserFrame* CreateNativeBrowserFrame(
BrowserFrame* browser_frame,
BrowserView* browser_view);
virtual views::NativeWidget* AsNativeWidget() = 0;
virtual const views::NativeWidget* AsNativeWidget() const = 0;
// Initializes the system context menu.
virtual void InitSystemContextMenu() = 0;
protected:
friend class BrowserFrame;
// BrowserFrame pass-thrus ---------------------------------------------------
// See browser_frame.h for documentation:
virtual int GetMinimizeButtonOffset() const = 0;
// TODO(beng): replace with some kind of "framechanged" signal to Window.
virtual void TabStripDisplayModeChanged() = 0;
};
#endif // CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_
|