| 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 void NativeWidgetAura::OnRootViewLayout() { | 693 void NativeWidgetAura::OnRootViewLayout() { |
| 694 } | 694 } |
| 695 | 695 |
| 696 bool NativeWidgetAura::IsTranslucentWindowOpacitySupported() const { | 696 bool NativeWidgetAura::IsTranslucentWindowOpacitySupported() const { |
| 697 return true; | 697 return true; |
| 698 } | 698 } |
| 699 | 699 |
| 700 void NativeWidgetAura::OnSizeConstraintsChanged() { | 700 void NativeWidgetAura::OnSizeConstraintsChanged() { |
| 701 window_->SetProperty(aura::client::kCanMaximizeKey, | 701 window_->SetProperty(aura::client::kCanMaximizeKey, |
| 702 GetWidget()->widget_delegate()->CanMaximize()); | 702 GetWidget()->widget_delegate()->CanMaximize()); |
| 703 window_->SetProperty(aura::client::kCanMinimizeKey, |
| 704 GetWidget()->widget_delegate()->CanMinimize()); |
| 703 window_->SetProperty(aura::client::kCanResizeKey, | 705 window_->SetProperty(aura::client::kCanResizeKey, |
| 704 GetWidget()->widget_delegate()->CanResize()); | 706 GetWidget()->widget_delegate()->CanResize()); |
| 705 } | 707 } |
| 706 | 708 |
| 707 void NativeWidgetAura::RepostNativeEvent(gfx::NativeEvent native_event) { | 709 void NativeWidgetAura::RepostNativeEvent(gfx::NativeEvent native_event) { |
| 708 OnEvent(native_event); | 710 OnEvent(native_event); |
| 709 } | 711 } |
| 710 | 712 |
| 711 //////////////////////////////////////////////////////////////////////////////// | 713 //////////////////////////////////////////////////////////////////////////////// |
| 712 // NativeWidgetAura, views::InputMethodDelegate implementation: | 714 // NativeWidgetAura, views::InputMethodDelegate implementation: |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1175 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont)); | 1177 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont)); |
| 1176 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont))); | 1178 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont))); |
| 1177 return gfx::FontList(gfx::Font(caption_font)); | 1179 return gfx::FontList(gfx::Font(caption_font)); |
| 1178 #else | 1180 #else |
| 1179 return gfx::FontList(); | 1181 return gfx::FontList(); |
| 1180 #endif | 1182 #endif |
| 1181 } | 1183 } |
| 1182 | 1184 |
| 1183 } // namespace internal | 1185 } // namespace internal |
| 1184 } // namespace views | 1186 } // namespace views |
| OLD | NEW |