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

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

Issue 2507403002: Remove Widget::OnRootViewLayout(). (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/location.h" 8 #include "base/location.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 } 746 }
747 747
748 ui::NativeTheme* NativeWidgetAura::GetNativeTheme() const { 748 ui::NativeTheme* NativeWidgetAura::GetNativeTheme() const {
749 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) 749 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
750 return DesktopWindowTreeHost::GetNativeTheme(window_); 750 return DesktopWindowTreeHost::GetNativeTheme(window_);
751 #else 751 #else
752 return ui::NativeThemeAura::instance(); 752 return ui::NativeThemeAura::instance();
753 #endif 753 #endif
754 } 754 }
755 755
756 void NativeWidgetAura::OnRootViewLayout() {
757 }
758
759 bool NativeWidgetAura::IsTranslucentWindowOpacitySupported() const { 756 bool NativeWidgetAura::IsTranslucentWindowOpacitySupported() const {
760 return true; 757 return true;
761 } 758 }
762 759
763 void NativeWidgetAura::OnSizeConstraintsChanged() { 760 void NativeWidgetAura::OnSizeConstraintsChanged() {
764 window_->SetProperty(aura::client::kCanMaximizeKey, 761 window_->SetProperty(aura::client::kCanMaximizeKey,
765 GetWidget()->widget_delegate()->CanMaximize()); 762 GetWidget()->widget_delegate()->CanMaximize());
766 window_->SetProperty(aura::client::kCanMinimizeKey, 763 window_->SetProperty(aura::client::kCanMinimizeKey,
767 GetWidget()->widget_delegate()->CanMinimize()); 764 GetWidget()->widget_delegate()->CanMinimize());
768 window_->SetProperty(aura::client::kCanResizeKey, 765 window_->SetProperty(aura::client::kCanResizeKey,
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 gfx::NativeView native_view) { 1213 gfx::NativeView native_view) {
1217 aura::client::CaptureClient* capture_client = 1214 aura::client::CaptureClient* capture_client =
1218 aura::client::GetCaptureClient(native_view->GetRootWindow()); 1215 aura::client::GetCaptureClient(native_view->GetRootWindow());
1219 if (!capture_client) 1216 if (!capture_client)
1220 return nullptr; 1217 return nullptr;
1221 return capture_client->GetGlobalCaptureWindow(); 1218 return capture_client->GetGlobalCaptureWindow();
1222 } 1219 }
1223 1220
1224 } // namespace internal 1221 } // namespace internal
1225 } // namespace views 1222 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698