Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: ui/views/widget/native_widget_mac.mm

Issue 187483005: Extending the Views-on-Mac experiment: whole app list grid. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: still compiles r263560 + crrev/195793005 Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/native_widget_mac.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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.
4
5 #include "ui/views/widget/native_widget_mac.h"
6
7 #include <Cocoa/Cocoa.h>
8
9 #include "ui/native_theme/native_theme_mac.h"
10
11 namespace views {
12 namespace internal {
13
14 // static
15 NativeWidgetPrivate* NativeWidgetPrivate::CreateNativeWidget(
16 internal::NativeWidgetDelegate* delegate) {
17 return new NativeWidgetMac(delegate);
18 }
19
20 // static
21 NativeWidgetPrivate* NativeWidgetPrivate::GetNativeWidgetForNativeView(
22 gfx::NativeView native_view) {
23 return NULL;
24 }
25
26 // static
27 NativeWidgetPrivate* NativeWidgetPrivate::GetNativeWidgetForNativeWindow(
28 gfx::NativeWindow native_window) {
29 return NULL;
30 }
31
32 // static
33 NativeWidgetPrivate* NativeWidgetPrivate::GetTopLevelNativeWidget(
34 gfx::NativeView native_view) {
35 return NULL;
36 }
37
38 // static
39 void NativeWidgetPrivate::GetAllChildWidgets(gfx::NativeView native_view,
40 Widget::Widgets* children) {
41 }
42
43 // static
44 void NativeWidgetPrivate::GetAllOwnedWidgets(gfx::NativeView native_view,
45 Widget::Widgets* owned) {
46 }
47
48 // static
49 void NativeWidgetPrivate::ReparentNativeView(gfx::NativeView native_view,
50 gfx::NativeView new_parent) {
51 }
52
53 // static
54 bool NativeWidgetPrivate::IsMouseButtonDown() {
55 return false;
56 }
57
58 // static
59 bool NativeWidgetPrivate::IsTouchDown() {
60 return false;
61 }
62
63 } // namespace internal
64
65 NativeWidgetMac::NativeWidgetMac(internal::NativeWidgetDelegate* delegate)
66 : delegate_(delegate),
67 window_(nil) {
68 }
69
70 void NativeWidgetMac::InitNativeWidget(const Widget::InitParams& params) {}
71
72 NonClientFrameView* NativeWidgetMac::CreateNonClientFrameView() {
73 return NULL;
74 }
75
76 bool NativeWidgetMac::ShouldUseNativeFrame() const {
77 return false;
78 }
79
80 bool NativeWidgetMac::ShouldWindowContentsBeTransparent() const {
81 return false;
82 }
83
84 void NativeWidgetMac::FrameTypeChanged() {
85 GetWidget()->ThemeChanged();
86 GetWidget()->GetRootView()->SchedulePaint();
87 }
88
89 Widget* NativeWidgetMac::GetWidget() {
90 return delegate_->AsWidget();
91 }
92
93 const Widget* NativeWidgetMac::GetWidget() const {
94 return delegate_->AsWidget();
95 }
96
97 gfx::NativeView NativeWidgetMac::GetNativeView() const {
98 return [window_ contentView];
99 }
100
101 gfx::NativeWindow NativeWidgetMac::GetNativeWindow() const {
102 return window_;
103 }
104
105 Widget* NativeWidgetMac::GetTopLevelWidget() {
106 return NULL;
107 }
108
109 const ui::Compositor* NativeWidgetMac::GetCompositor() const {
110 return NULL;
111 }
112
113 ui::Compositor* NativeWidgetMac::GetCompositor() {
114 return NULL;
115 }
116
117 ui::Layer* NativeWidgetMac::GetLayer() {
118 return NULL;
119 }
120
121 void NativeWidgetMac::ReorderNativeViews() {
122 }
123
124 void NativeWidgetMac::ViewRemoved(View* view) {
125 }
126
127 void NativeWidgetMac::SetNativeWindowProperty(const char* name, void* value) {
128 }
129
130 void* NativeWidgetMac::GetNativeWindowProperty(const char* name) const {
131 return NULL;
132 }
133
134 TooltipManager* NativeWidgetMac::GetTooltipManager() const {
135 return NULL;
136 }
137
138 void NativeWidgetMac::SetCapture() {
139 }
140
141 void NativeWidgetMac::ReleaseCapture() {
142 }
143
144 bool NativeWidgetMac::HasCapture() const {
145 return false;
146 }
147
148 InputMethod* NativeWidgetMac::CreateInputMethod() {
149 return NULL;
150 }
151
152 internal::InputMethodDelegate* NativeWidgetMac::GetInputMethodDelegate() {
153 return NULL;
154 }
155
156 void NativeWidgetMac::CenterWindow(const gfx::Size& size) {
157 [window_ center];
158 }
159
160 void NativeWidgetMac::GetWindowPlacement(
161 gfx::Rect* bounds,
162 ui::WindowShowState* maximized) const {
163
164 }
165
166 bool NativeWidgetMac::SetWindowTitle(const base::string16& title) {
167 return false;
168 }
169
170 void NativeWidgetMac::SetWindowIcons(const gfx::ImageSkia& window_icon,
171 const gfx::ImageSkia& app_icon) {
172 }
173
174 void NativeWidgetMac::InitModalType(ui::ModalType modal_type) {
175
176 }
177
178 gfx::Rect NativeWidgetMac::GetWindowBoundsInScreen() const {
179 return gfx::Rect();
180 }
181
182 gfx::Rect NativeWidgetMac::GetClientAreaBoundsInScreen() const {
183 return gfx::Rect();
184 }
185
186 gfx::Rect NativeWidgetMac::GetRestoredBounds() const {
187 return gfx::Rect();
188 }
189
190 void NativeWidgetMac::SetBounds(const gfx::Rect& bounds) {}
191 void NativeWidgetMac::SetSize(const gfx::Size& size) {}
192 void NativeWidgetMac::StackAbove(gfx::NativeView native_view) {}
193 void NativeWidgetMac::StackAtTop() {}
194 void NativeWidgetMac::StackBelow(gfx::NativeView native_view) {}
195 void NativeWidgetMac::SetShape(gfx::NativeRegion shape) {}
196 void NativeWidgetMac::Close() {}
197 void NativeWidgetMac::CloseNow() {}
198 void NativeWidgetMac::Show() {}
199 void NativeWidgetMac::Hide() {}
200 void NativeWidgetMac::ShowMaximizedWithBounds(
201 const gfx::Rect& restored_bounds) {}
202 void NativeWidgetMac::ShowWithWindowState(ui::WindowShowState state) {}
203 bool NativeWidgetMac::IsVisible() const { return true; }
204 void NativeWidgetMac::Activate() {}
205 void NativeWidgetMac::Deactivate() {}
206 bool NativeWidgetMac::IsActive() const { return true; }
207 void NativeWidgetMac::SetAlwaysOnTop(bool always_on_top) {}
208 bool NativeWidgetMac::IsAlwaysOnTop() const { return false; }
209 void NativeWidgetMac::SetVisibleOnAllWorkspaces(bool always_visible) {}
210 void NativeWidgetMac::Maximize() {}
211 void NativeWidgetMac::Minimize() {}
212 bool NativeWidgetMac::IsMaximized() const { return false; }
213 bool NativeWidgetMac::IsMinimized() const { return false; }
214 void NativeWidgetMac::Restore() {}
215 void NativeWidgetMac::SetFullscreen(bool fullscreen) {}
216 bool NativeWidgetMac::IsFullscreen() const { return false; }
217 void NativeWidgetMac::SetOpacity(unsigned char opacity) {}
218 void NativeWidgetMac::SetUseDragFrame(bool use_drag_frame) {}
219 void NativeWidgetMac::FlashFrame(bool flash_frame) {}
220 void NativeWidgetMac::RunShellDrag(View* view,
221 const ui::OSExchangeData& data,
222 const gfx::Point& location,
223 int operation,
224 ui::DragDropTypes::DragEventSource source) {}
225 void NativeWidgetMac::SchedulePaintInRect(const gfx::Rect& rect) {}
226 void NativeWidgetMac::SetCursor(gfx::NativeCursor cursor) {}
227 bool NativeWidgetMac::IsMouseEventsEnabled() const { return true; }
228 void NativeWidgetMac::ClearNativeFocus() {}
229
230 gfx::Rect NativeWidgetMac::GetWorkAreaBoundsInScreen() const {
231 return gfx::Rect();
232 }
233
234 Widget::MoveLoopResult NativeWidgetMac::RunMoveLoop(
235 const gfx::Vector2d& drag_offset,
236 Widget::MoveLoopSource source,
237 Widget::MoveLoopEscapeBehavior escape_behavior) {
238 return Widget::MOVE_LOOP_CANCELED;
239 }
240
241 void NativeWidgetMac::EndMoveLoop() {
242
243 }
244
245 void NativeWidgetMac::SetVisibilityChangedAnimationsEnabled(bool value) {
246
247 }
248
249 ui::NativeTheme* NativeWidgetMac::GetNativeTheme() const {
250 return ui::NativeTheme::instance();
251 }
252
253 void NativeWidgetMac::OnRootViewLayout() const {
254
255 }
256
257 ui::EventHandler* NativeWidgetMac::GetEventHandler() {
258 return NULL;
259 }
260
261 internal::NativeWidgetPrivate* NativeWidgetMac::AsNativeWidgetPrivate() {
262 return this;
263 }
264
265 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_mac.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698