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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 581953002: [Win] Update HWND style when SizeConstraintsChanged. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hidpi
Patch Set: Address comments Created 6 years, 2 months 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 | « no previous file | ui/views/widget/desktop_aura/desktop_window_tree_host.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/desktop_aura/desktop_native_widget_aura.h" 5 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/client/cursor_client.h" 10 #include "ui/aura/client/cursor_client.h"
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 bool DesktopNativeWidgetAura::IsTranslucentWindowOpacitySupported() const { 931 bool DesktopNativeWidgetAura::IsTranslucentWindowOpacitySupported() const {
932 return content_window_ && 932 return content_window_ &&
933 desktop_window_tree_host_->IsTranslucentWindowOpacitySupported(); 933 desktop_window_tree_host_->IsTranslucentWindowOpacitySupported();
934 } 934 }
935 935
936 void DesktopNativeWidgetAura::OnSizeConstraintsChanged() { 936 void DesktopNativeWidgetAura::OnSizeConstraintsChanged() {
937 content_window_->SetProperty(aura::client::kCanMaximizeKey, 937 content_window_->SetProperty(aura::client::kCanMaximizeKey,
938 GetWidget()->widget_delegate()->CanMaximize()); 938 GetWidget()->widget_delegate()->CanMaximize());
939 content_window_->SetProperty(aura::client::kCanResizeKey, 939 content_window_->SetProperty(aura::client::kCanResizeKey,
940 GetWidget()->widget_delegate()->CanResize()); 940 GetWidget()->widget_delegate()->CanResize());
941 desktop_window_tree_host_->SizeConstraintsChanged();
941 } 942 }
942 943
943 void DesktopNativeWidgetAura::RepostNativeEvent(gfx::NativeEvent native_event) { 944 void DesktopNativeWidgetAura::RepostNativeEvent(gfx::NativeEvent native_event) {
944 OnEvent(native_event); 945 OnEvent(native_event);
945 } 946 }
946 947
947 //////////////////////////////////////////////////////////////////////////////// 948 ////////////////////////////////////////////////////////////////////////////////
948 // DesktopNativeWidgetAura, aura::WindowDelegate implementation: 949 // DesktopNativeWidgetAura, aura::WindowDelegate implementation:
949 950
950 gfx::Size DesktopNativeWidgetAura::GetMinimumSize() const { 951 gfx::Size DesktopNativeWidgetAura::GetMinimumSize() const {
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 if (cursor_reference_count_ == 0) { 1209 if (cursor_reference_count_ == 0) {
1209 // We are the last DesktopNativeWidgetAura instance, and we are responsible 1210 // We are the last DesktopNativeWidgetAura instance, and we are responsible
1210 // for cleaning up |cursor_manager_|. 1211 // for cleaning up |cursor_manager_|.
1211 delete cursor_manager_; 1212 delete cursor_manager_;
1212 native_cursor_manager_ = NULL; 1213 native_cursor_manager_ = NULL;
1213 cursor_manager_ = NULL; 1214 cursor_manager_ = NULL;
1214 } 1215 }
1215 } 1216 }
1216 1217
1217 } // namespace views 1218 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_window_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698