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

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

Issue 277053003: Do FinishAllRendering in WM_WINDOWPOSCHANGING (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | 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/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 "base/win/metro.h" 7 #include "base/win/metro.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 WPARAM w_param, 900 WPARAM w_param,
901 LPARAM l_param) { 901 LPARAM l_param) {
902 } 902 }
903 903
904 bool DesktopWindowTreeHostWin::HandleScrollEvent( 904 bool DesktopWindowTreeHostWin::HandleScrollEvent(
905 const ui::ScrollEvent& event) { 905 const ui::ScrollEvent& event) {
906 SendEventToProcessor(const_cast<ui::ScrollEvent*>(&event)); 906 SendEventToProcessor(const_cast<ui::ScrollEvent*>(&event));
907 return event.handled(); 907 return event.handled();
908 } 908 }
909 909
910 void DesktopWindowTreeHostWin::HandleWindowSizeChanging() {
911 if (compositor())
912 compositor()->FinishAllRendering();
913 }
914
910 //////////////////////////////////////////////////////////////////////////////// 915 ////////////////////////////////////////////////////////////////////////////////
911 // DesktopWindowTreeHostWin, private: 916 // DesktopWindowTreeHostWin, private:
912 917
913 Widget* DesktopWindowTreeHostWin::GetWidget() { 918 Widget* DesktopWindowTreeHostWin::GetWidget() {
914 return native_widget_delegate_->AsWidget(); 919 return native_widget_delegate_->AsWidget();
915 } 920 }
916 921
917 const Widget* DesktopWindowTreeHostWin::GetWidget() const { 922 const Widget* DesktopWindowTreeHostWin::GetWidget() const {
918 return native_widget_delegate_->AsWidget(); 923 return native_widget_delegate_->AsWidget();
919 } 924 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 956
952 // static 957 // static
953 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 958 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
954 internal::NativeWidgetDelegate* native_widget_delegate, 959 internal::NativeWidgetDelegate* native_widget_delegate,
955 DesktopNativeWidgetAura* desktop_native_widget_aura) { 960 DesktopNativeWidgetAura* desktop_native_widget_aura) {
956 return new DesktopWindowTreeHostWin(native_widget_delegate, 961 return new DesktopWindowTreeHostWin(native_widget_delegate,
957 desktop_native_widget_aura); 962 desktop_native_widget_aura);
958 } 963 }
959 964
960 } // namespace views 965 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698