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

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

Issue 1826703002: Fix a painting bug which occurred due to the change which reduces the size of the fullscreen chrome… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 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/win/hwnd_message_handler.cc » ('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_window_tree_host_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
6 6
7 #include "third_party/skia/include/core/SkPath.h" 7 #include "third_party/skia/include/core/SkPath.h"
8 #include "third_party/skia/include/core/SkRegion.h" 8 #include "third_party/skia/include/core/SkRegion.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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 void DesktopWindowTreeHostWin::HandleWindowSizeChanging() { 905 void DesktopWindowTreeHostWin::HandleWindowSizeChanging() {
906 if (compositor()) 906 if (compositor())
907 compositor()->DisableSwapUntilResize(); 907 compositor()->DisableSwapUntilResize();
908 } 908 }
909 909
910 void DesktopWindowTreeHostWin::HandleWindowSizeChanged() { 910 void DesktopWindowTreeHostWin::HandleWindowSizeChanged() {
911 // A resize may not have occurred if the window size happened not to have 911 // A resize may not have occurred if the window size happened not to have
912 // changed (can occur on Windows 10 when snapping a window to the side of 912 // changed (can occur on Windows 10 when snapping a window to the side of
913 // the screen). In that case do a resize to the current size to reenable 913 // the screen). In that case do a resize to the current size to reenable
914 // swaps. 914 // swaps.
915 if (compositor()) 915 if (compositor()) {
916 compositor()->SetScaleAndSize(compositor()->device_scale_factor(), 916 compositor()->SetScaleAndSize(compositor()->device_scale_factor(),
917 compositor()->size()); 917 GetBounds().size());
918 }
918 } 919 }
919 920
920 //////////////////////////////////////////////////////////////////////////////// 921 ////////////////////////////////////////////////////////////////////////////////
921 // DesktopWindowTreeHostWin, private: 922 // DesktopWindowTreeHostWin, private:
922 923
923 Widget* DesktopWindowTreeHostWin::GetWidget() { 924 Widget* DesktopWindowTreeHostWin::GetWidget() {
924 return native_widget_delegate_->AsWidget(); 925 return native_widget_delegate_->AsWidget();
925 } 926 }
926 927
927 const Widget* DesktopWindowTreeHostWin::GetWidget() const { 928 const Widget* DesktopWindowTreeHostWin::GetWidget() const {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 962
962 // static 963 // static
963 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 964 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
964 internal::NativeWidgetDelegate* native_widget_delegate, 965 internal::NativeWidgetDelegate* native_widget_delegate,
965 DesktopNativeWidgetAura* desktop_native_widget_aura) { 966 DesktopNativeWidgetAura* desktop_native_widget_aura) {
966 return new DesktopWindowTreeHostWin(native_widget_delegate, 967 return new DesktopWindowTreeHostWin(native_widget_delegate,
967 desktop_native_widget_aura); 968 desktop_native_widget_aura);
968 } 969 }
969 970
970 } // namespace views 971 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698