blob: 2ca707a91ca0af68cad98d0b4e59ea01b591c1f1 (
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
52
53
54
55
56
57
58
59
|
// 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.
#include "views/window/native_window_gtk.h"
#include "base/i18n/rtl.h"
#include "base/utf_string_conversions.h"
#include "ui/gfx/path.h"
#include "ui/gfx/rect.h"
#include "views/events/event.h"
#include "views/window/hit_test.h"
#include "views/window/native_window_delegate.h"
#include "views/window/non_client_view.h"
#include "views/window/window_delegate.h"
namespace views {
NativeWindowGtk::NativeWindowGtk(internal::NativeWindowDelegate* delegate)
: NativeWidgetGtk(delegate->AsNativeWidgetDelegate()),
delegate_(delegate) {
is_window_ = true;
}
NativeWindowGtk::~NativeWindowGtk() {
}
////////////////////////////////////////////////////////////////////////////////
// NativeWindowGtk, NativeWindow implementation:
NativeWidget* NativeWindowGtk::AsNativeWidget() {
return this;
}
const NativeWidget* NativeWindowGtk::AsNativeWidget() const {
return this;
}
Window* NativeWindowGtk::GetWindow() {
return delegate_->AsWindow();
}
const Window* NativeWindowGtk::GetWindow() const {
return delegate_->AsWindow();
}
////////////////////////////////////////////////////////////////////////////////
// NativeWindowGtk, private:
////////////////////////////////////////////////////////////////////////////////
// NativeWindow, public:
// static
NativeWindow* NativeWindow::CreateNativeWindow(
internal::NativeWindowDelegate* delegate) {
return new NativeWindowGtk(delegate);
}
} // namespace views
|