Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: ui/views/widget/native_widget_aura.cc

Issue 76583003: Rename RootWindowHost* to WindowTreeHost* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/activation_client.h" 10 #include "ui/aura/client/activation_client.h"
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 move_client->EndMoveLoop(); 676 move_client->EndMoveLoop();
677 } 677 }
678 678
679 void NativeWidgetAura::SetVisibilityChangedAnimationsEnabled(bool value) { 679 void NativeWidgetAura::SetVisibilityChangedAnimationsEnabled(bool value) {
680 if (window_) 680 if (window_)
681 window_->SetProperty(aura::client::kAnimationsDisabledKey, !value); 681 window_->SetProperty(aura::client::kAnimationsDisabledKey, !value);
682 } 682 }
683 683
684 ui::NativeTheme* NativeWidgetAura::GetNativeTheme() const { 684 ui::NativeTheme* NativeWidgetAura::GetNativeTheme() const {
685 #if !defined(OS_CHROMEOS) 685 #if !defined(OS_CHROMEOS)
686 return DesktopRootWindowHost::GetNativeTheme(window_); 686 return DesktopWindowTreeHost::GetNativeTheme(window_);
687 #else 687 #else
688 return ui::NativeThemeAura::instance(); 688 return ui::NativeThemeAura::instance();
689 #endif 689 #endif
690 } 690 }
691 691
692 void NativeWidgetAura::OnRootViewLayout() const { 692 void NativeWidgetAura::OnRootViewLayout() const {
693 } 693 }
694 694
695 //////////////////////////////////////////////////////////////////////////////// 695 ////////////////////////////////////////////////////////////////////////////////
696 // NativeWidgetAura, views::InputMethodDelegate implementation: 696 // NativeWidgetAura, views::InputMethodDelegate implementation:
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 // widgets it seems relatively safe to skip the extra processing of 992 // widgets it seems relatively safe to skip the extra processing of
993 // Close. 993 // Close.
994 widget->CloseNow(); 994 widget->CloseNow();
995 } 995 }
996 } 996 }
997 #endif 997 #endif
998 998
999 #if defined(OS_WIN) 999 #if defined(OS_WIN)
1000 BOOL CALLBACK WindowCallbackProc(HWND hwnd, LPARAM lParam) { 1000 BOOL CALLBACK WindowCallbackProc(HWND hwnd, LPARAM lParam) {
1001 aura::Window* root_window = 1001 aura::Window* root_window =
1002 DesktopRootWindowHostWin::GetContentWindowForHWND(hwnd); 1002 DesktopWindowTreeHostWin::GetContentWindowForHWND(hwnd);
1003 CloseWindow(root_window); 1003 CloseWindow(root_window);
1004 return TRUE; 1004 return TRUE;
1005 } 1005 }
1006 #endif 1006 #endif
1007 } // namespace 1007 } // namespace
1008 1008
1009 // static 1009 // static
1010 void Widget::CloseAllSecondaryWidgets() { 1010 void Widget::CloseAllSecondaryWidgets() {
1011 #if defined(OS_WIN) 1011 #if defined(OS_WIN)
1012 EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0); 1012 EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0);
1013 #endif 1013 #endif
1014 1014
1015 #if defined(USE_X11) && !defined(OS_CHROMEOS) 1015 #if defined(USE_X11) && !defined(OS_CHROMEOS)
1016 std::vector<aura::Window*> open_windows = 1016 std::vector<aura::Window*> open_windows =
1017 DesktopRootWindowHostX11::GetAllOpenWindows(); 1017 DesktopWindowTreeHostX11::GetAllOpenWindows();
1018 std::for_each(open_windows.begin(), open_windows.end(), CloseWindow); 1018 std::for_each(open_windows.begin(), open_windows.end(), CloseWindow);
1019 DesktopRootWindowHostX11::CleanUpWindowList(); 1019 DesktopWindowTreeHostX11::CleanUpWindowList();
1020 #endif 1020 #endif
1021 } 1021 }
1022 1022
1023 bool Widget::ConvertRect(const Widget* source, 1023 bool Widget::ConvertRect(const Widget* source,
1024 const Widget* target, 1024 const Widget* target,
1025 gfx::Rect* rect) { 1025 gfx::Rect* rect) {
1026 return false; 1026 return false;
1027 } 1027 }
1028 1028
1029 namespace internal { 1029 namespace internal {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 return aura::Env::GetInstance()->IsMouseButtonDown(); 1148 return aura::Env::GetInstance()->IsMouseButtonDown();
1149 } 1149 }
1150 1150
1151 // static 1151 // static
1152 bool NativeWidgetPrivate::IsTouchDown() { 1152 bool NativeWidgetPrivate::IsTouchDown() {
1153 return aura::Env::GetInstance()->is_touch_down(); 1153 return aura::Env::GetInstance()->is_touch_down();
1154 } 1154 }
1155 1155
1156 } // namespace internal 1156 } // namespace internal
1157 } // namespace views 1157 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/x11_window_event_filter.cc ('k') | ui/views/widget/native_widget_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698