| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // This has to be before any other includes, else default is picked up. | 5 // This has to be before any other includes, else default is picked up. |
| 6 // See base/logging for details on this. | 6 // See base/logging for details on this. |
| 7 #define NOTIMPLEMENTED_POLICY 5 | 7 #define NOTIMPLEMENTED_POLICY 5 |
| 8 | 8 |
| 9 #include "ui/views/mus/native_widget_mus.h" | 9 #include "ui/views/mus/native_widget_mus.h" |
| 10 | 10 |
| (...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 | 1316 |
| 1317 void NativeWidgetMus::SetVisibilityAnimationTransition( | 1317 void NativeWidgetMus::SetVisibilityAnimationTransition( |
| 1318 Widget::VisibilityTransition transition) { | 1318 Widget::VisibilityTransition transition) { |
| 1319 NOTIMPLEMENTED(); | 1319 NOTIMPLEMENTED(); |
| 1320 } | 1320 } |
| 1321 | 1321 |
| 1322 ui::NativeTheme* NativeWidgetMus::GetNativeTheme() const { | 1322 ui::NativeTheme* NativeWidgetMus::GetNativeTheme() const { |
| 1323 return ui::NativeThemeAura::instance(); | 1323 return ui::NativeThemeAura::instance(); |
| 1324 } | 1324 } |
| 1325 | 1325 |
| 1326 void NativeWidgetMus::OnRootViewLayout() { | |
| 1327 NOTIMPLEMENTED(); | |
| 1328 } | |
| 1329 | |
| 1330 bool NativeWidgetMus::IsTranslucentWindowOpacitySupported() const { | 1326 bool NativeWidgetMus::IsTranslucentWindowOpacitySupported() const { |
| 1331 NOTIMPLEMENTED(); | 1327 NOTIMPLEMENTED(); |
| 1332 return true; | 1328 return true; |
| 1333 } | 1329 } |
| 1334 | 1330 |
| 1335 void NativeWidgetMus::OnSizeConstraintsChanged() { | 1331 void NativeWidgetMus::OnSizeConstraintsChanged() { |
| 1336 if (!window_ || is_parallel_widget_in_window_manager()) | 1332 if (!window_ || is_parallel_widget_in_window_manager()) |
| 1337 return; | 1333 return; |
| 1338 | 1334 |
| 1339 window_->SetSharedProperty<int32_t>( | 1335 window_->SetSharedProperty<int32_t>( |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1574 | 1570 |
| 1575 gfx::Path mask_path; | 1571 gfx::Path mask_path; |
| 1576 native_widget_delegate_->GetHitTestMask(&mask_path); | 1572 native_widget_delegate_->GetHitTestMask(&mask_path); |
| 1577 // TODO(jamescook): Use the full path for the mask. | 1573 // TODO(jamescook): Use the full path for the mask. |
| 1578 gfx::Rect mask_rect = | 1574 gfx::Rect mask_rect = |
| 1579 gfx::ToEnclosingRect(gfx::SkRectToRectF(mask_path.getBounds())); | 1575 gfx::ToEnclosingRect(gfx::SkRectToRectF(mask_path.getBounds())); |
| 1580 window_->SetHitTestMask(mask_rect); | 1576 window_->SetHitTestMask(mask_rect); |
| 1581 } | 1577 } |
| 1582 | 1578 |
| 1583 } // namespace views | 1579 } // namespace views |
| OLD | NEW |