blob: de5cce88049c2c109b3c620b6bbaf717654f3868 (
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
42
43
44
45
46
47
48
49
50
51
|
// Copyright (c) 2011 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 VIEWS_WIDGET_NATIVE_WINDOW_H_
#define VIEWS_WIDGET_NATIVE_WINDOW_H_
#pragma once
#include "ui/base/accessibility/accessibility_types.h"
#include "ui/gfx/native_widget_types.h"
#include "views/window/window.h"
class SkBitmap;
namespace gfx {
class Rect;
class Size;
}
namespace views {
class NativeWidget;
class NonClientFrameView;
////////////////////////////////////////////////////////////////////////////////
// NativeWindow interface
//
// An interface implemented by an object that encapsulates a native window.
//
class NativeWindow {
public:
virtual ~NativeWindow() {}
// Creates an appropriate default NativeWindow implementation for the current
// OS/circumstance.
static NativeWindow* CreateNativeWindow(
internal::NativeWindowDelegate* delegate);
virtual Window* GetWindow() = 0;
virtual const Window* GetWindow() const = 0;
virtual NativeWidget* AsNativeWidget() = 0;
virtual const NativeWidget* AsNativeWidget() const = 0;
protected:
friend class Window;
};
} // namespace views
#endif // VIEWS_WIDGET_NATIVE_WINDOW_H_
|