OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_aura.h" | 5 #include "ui/views/widget/native_widget_aura.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "third_party/skia/include/core/SkRegion.h" | 9 #include "third_party/skia/include/core/SkRegion.h" |
10 #include "ui/aura/client/aura_constants.h" | 10 #include "ui/aura/client/aura_constants.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 } | 210 } |
211 | 211 |
212 gfx::NativeView NativeWidgetAura::GetNativeView() const { | 212 gfx::NativeView NativeWidgetAura::GetNativeView() const { |
213 return window_; | 213 return window_; |
214 } | 214 } |
215 | 215 |
216 gfx::NativeWindow NativeWidgetAura::GetNativeWindow() const { | 216 gfx::NativeWindow NativeWidgetAura::GetNativeWindow() const { |
217 return window_; | 217 return window_; |
218 } | 218 } |
219 | 219 |
| 220 gfx::NativeViewAccessible NativeWidgetMac::GetNativeViewAccessible() const { |
| 221 NOTIMPLEMENTED(); |
| 222 return NULL; |
| 223 } |
| 224 |
220 Widget* NativeWidgetAura::GetTopLevelWidget() { | 225 Widget* NativeWidgetAura::GetTopLevelWidget() { |
221 NativeWidgetPrivate* native_widget = GetTopLevelNativeWidget(GetNativeView()); | 226 NativeWidgetPrivate* native_widget = GetTopLevelNativeWidget(GetNativeView()); |
222 return native_widget ? native_widget->GetWidget() : NULL; | 227 return native_widget ? native_widget->GetWidget() : NULL; |
223 } | 228 } |
224 | 229 |
225 const ui::Compositor* NativeWidgetAura::GetCompositor() const { | 230 const ui::Compositor* NativeWidgetAura::GetCompositor() const { |
226 return window_ ? window_->layer()->GetCompositor() : NULL; | 231 return window_ ? window_->layer()->GetCompositor() : NULL; |
227 } | 232 } |
228 | 233 |
229 ui::Compositor* NativeWidgetAura::GetCompositor() { | 234 ui::Compositor* NativeWidgetAura::GetCompositor() { |
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1155 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont)); | 1160 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont)); |
1156 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont))); | 1161 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont))); |
1157 return gfx::FontList(gfx::Font(caption_font)); | 1162 return gfx::FontList(gfx::Font(caption_font)); |
1158 #else | 1163 #else |
1159 return gfx::FontList(); | 1164 return gfx::FontList(); |
1160 #endif | 1165 #endif |
1161 } | 1166 } |
1162 | 1167 |
1163 } // namespace internal | 1168 } // namespace internal |
1164 } // namespace views | 1169 } // namespace views |
OLD | NEW |