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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
// 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/desktop/desktop_views_delegate.h"
#include "base/logging.h"
#include "views/desktop/desktop_window.h"
namespace views {
namespace desktop {
////////////////////////////////////////////////////////////////////////////////
// DesktopViewsDelegate, public:
DesktopViewsDelegate::DesktopViewsDelegate() {
DCHECK(!views::ViewsDelegate::views_delegate);
views::ViewsDelegate::views_delegate = this;
}
DesktopViewsDelegate::~DesktopViewsDelegate() {
}
////////////////////////////////////////////////////////////////////////////////
// DesktopViewsDelegate, ViewsDelegate implementation:
ui::Clipboard* DesktopViewsDelegate::GetClipboard() const {
return NULL;
}
View* DesktopViewsDelegate::GetDefaultParentView() {
return DesktopWindow::desktop_window;
}
void DesktopViewsDelegate::SaveWindowPlacement(const Widget* widget,
const std::wstring& window_name,
const gfx::Rect& bounds,
bool maximized) {
}
bool DesktopViewsDelegate::GetSavedWindowBounds(const Widget* widget,
const std::wstring& window_name,
gfx::Rect* bounds) const {
return false;
}
bool DesktopViewsDelegate::GetSavedMaximizedState(
const Widget* widget,
const std::wstring& window_name,
bool* maximized) const {
return false;
}
void DesktopViewsDelegate::NotifyAccessibilityEvent(
views::View* view, ui::AccessibilityTypes::Event event_type) {
}
void DesktopViewsDelegate::NotifyMenuItemFocused(
const std::wstring& menu_name,
const std::wstring& menu_item_name,
int item_index,
int item_count,
bool has_submenu) {
}
#if defined(OS_WIN)
HICON DesktopViewsDelegate::GetDefaultWindowIcon() const {
return NULL;
}
#endif
void DesktopViewsDelegate::AddRef() {
}
void DesktopViewsDelegate::ReleaseRef() {
}
int DesktopViewsDelegate::GetDispositionForEvent(int event_flags) {
return 0;
}
} // namespace desktop
} // namespace views
|