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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 #if !defined(OS_CHROMEOS) | 684 #if !defined(OS_CHROMEOS) |
685 return DesktopWindowTreeHost::GetNativeTheme(window_); | 685 return DesktopWindowTreeHost::GetNativeTheme(window_); |
686 #else | 686 #else |
687 return ui::NativeThemeAura::instance(); | 687 return ui::NativeThemeAura::instance(); |
688 #endif | 688 #endif |
689 } | 689 } |
690 | 690 |
691 void NativeWidgetAura::OnRootViewLayout() { | 691 void NativeWidgetAura::OnRootViewLayout() { |
692 } | 692 } |
693 | 693 |
| 694 bool NativeWidgetAura::IsTranslucentWindowOpacitySupported() const { |
| 695 return true; |
| 696 } |
| 697 |
694 void NativeWidgetAura::RepostNativeEvent(gfx::NativeEvent native_event) { | 698 void NativeWidgetAura::RepostNativeEvent(gfx::NativeEvent native_event) { |
695 OnEvent(native_event); | 699 OnEvent(native_event); |
696 } | 700 } |
697 | 701 |
698 //////////////////////////////////////////////////////////////////////////////// | 702 //////////////////////////////////////////////////////////////////////////////// |
699 // NativeWidgetAura, views::InputMethodDelegate implementation: | 703 // NativeWidgetAura, views::InputMethodDelegate implementation: |
700 | 704 |
701 void NativeWidgetAura::DispatchKeyEventPostIME(const ui::KeyEvent& key) { | 705 void NativeWidgetAura::DispatchKeyEventPostIME(const ui::KeyEvent& key) { |
702 FocusManager* focus_manager = GetWidget()->GetFocusManager(); | 706 FocusManager* focus_manager = GetWidget()->GetFocusManager(); |
703 delegate_->OnKeyEvent(const_cast<ui::KeyEvent*>(&key)); | 707 delegate_->OnKeyEvent(const_cast<ui::KeyEvent*>(&key)); |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont)); | 1155 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont)); |
1152 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont))); | 1156 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont))); |
1153 return gfx::FontList(gfx::Font(caption_font)); | 1157 return gfx::FontList(gfx::Font(caption_font)); |
1154 #else | 1158 #else |
1155 return gfx::FontList(); | 1159 return gfx::FontList(); |
1156 #endif | 1160 #endif |
1157 } | 1161 } |
1158 | 1162 |
1159 } // namespace internal | 1163 } // namespace internal |
1160 } // namespace views | 1164 } // namespace views |
OLD | NEW |