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() const { | 691 void NativeWidgetAura::OnRootViewLayout() const { |
692 } | 692 } |
693 | 693 |
| 694 bool NativeWidgetAura::CanHaveAlphaEnabled() 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont)); | 1160 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont)); |
1157 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont))); | 1161 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont))); |
1158 return gfx::FontList(gfx::Font(caption_font)); | 1162 return gfx::FontList(gfx::Font(caption_font)); |
1159 #else | 1163 #else |
1160 return gfx::FontList(); | 1164 return gfx::FontList(); |
1161 #endif | 1165 #endif |
1162 } | 1166 } |
1163 | 1167 |
1164 } // namespace internal | 1168 } // namespace internal |
1165 } // namespace views | 1169 } // namespace views |
OLD | NEW |