OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/views/widget/native_widget_mac.h" | 5 #include "ui/views/widget/native_widget_mac.h" |
6 | 6 |
7 #include <Cocoa/Cocoa.h> | 7 #include <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "ui/gfx/font_list.h" | 9 #include "ui/gfx/font_list.h" |
10 #include "ui/native_theme/native_theme_mac.h" | 10 #include "ui/native_theme/native_theme_mac.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
162 bool NativeWidgetMac::IsAlwaysOnTop() const { return false; } | 162 bool NativeWidgetMac::IsAlwaysOnTop() const { return false; } |
163 void NativeWidgetMac::SetVisibleOnAllWorkspaces(bool always_visible) {} | 163 void NativeWidgetMac::SetVisibleOnAllWorkspaces(bool always_visible) {} |
164 void NativeWidgetMac::Maximize() {} | 164 void NativeWidgetMac::Maximize() {} |
165 void NativeWidgetMac::Minimize() {} | 165 void NativeWidgetMac::Minimize() {} |
166 bool NativeWidgetMac::IsMaximized() const { return false; } | 166 bool NativeWidgetMac::IsMaximized() const { return false; } |
167 bool NativeWidgetMac::IsMinimized() const { return false; } | 167 bool NativeWidgetMac::IsMinimized() const { return false; } |
168 void NativeWidgetMac::Restore() {} | 168 void NativeWidgetMac::Restore() {} |
169 void NativeWidgetMac::SetFullscreen(bool fullscreen) {} | 169 void NativeWidgetMac::SetFullscreen(bool fullscreen) {} |
170 bool NativeWidgetMac::IsFullscreen() const { return false; } | 170 bool NativeWidgetMac::IsFullscreen() const { return false; } |
171 void NativeWidgetMac::SetOpacity(unsigned char opacity) {} | 171 void NativeWidgetMac::SetOpacity(unsigned char opacity) {} |
172 | |
173 void NativeWidgetMac::SetHasShadow(bool has_shadow) { | |
174 [window_ setHasShadow:has_shadow]; | |
tapted
2014/05/06 00:02:46
You'll have to leave this bit off for now after re
| |
175 } | |
176 | |
172 void NativeWidgetMac::SetUseDragFrame(bool use_drag_frame) {} | 177 void NativeWidgetMac::SetUseDragFrame(bool use_drag_frame) {} |
173 void NativeWidgetMac::FlashFrame(bool flash_frame) {} | 178 void NativeWidgetMac::FlashFrame(bool flash_frame) {} |
174 void NativeWidgetMac::RunShellDrag(View* view, | 179 void NativeWidgetMac::RunShellDrag(View* view, |
175 const ui::OSExchangeData& data, | 180 const ui::OSExchangeData& data, |
176 const gfx::Point& location, | 181 const gfx::Point& location, |
177 int operation, | 182 int operation, |
178 ui::DragDropTypes::DragEventSource source) {} | 183 ui::DragDropTypes::DragEventSource source) {} |
179 void NativeWidgetMac::SchedulePaintInRect(const gfx::Rect& rect) {} | 184 void NativeWidgetMac::SchedulePaintInRect(const gfx::Rect& rect) {} |
180 void NativeWidgetMac::SetCursor(gfx::NativeCursor cursor) {} | 185 void NativeWidgetMac::SetCursor(gfx::NativeCursor cursor) {} |
181 bool NativeWidgetMac::IsMouseEventsEnabled() const { return true; } | 186 bool NativeWidgetMac::IsMouseEventsEnabled() const { return true; } |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
278 return false; | 283 return false; |
279 } | 284 } |
280 | 285 |
281 // static | 286 // static |
282 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { | 287 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { |
283 return gfx::FontList(); | 288 return gfx::FontList(); |
284 } | 289 } |
285 | 290 |
286 } // namespace internal | 291 } // namespace internal |
287 } // namespace views | 292 } // namespace views |
OLD | NEW |