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

Side by Side Diff: views/widget/widget_win.cc

Issue 131026: A long standing bug in views!... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 6 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
« no previous file with comments | « views/widget/widget_gtk.cc ('k') | no next file » | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "views/widget/widget_win.h" 5 #include "views/widget/widget_win.h"
6 6
7 #include "app/gfx/canvas.h" 7 #include "app/gfx/canvas.h"
8 #include "app/gfx/path.h" 8 #include "app/gfx/path.h"
9 #include "app/win_util.h" 9 #include "app/win_util.h"
10 #include "base/gfx/native_theme.h" 10 #include "base/gfx/native_theme.h"
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 if (use_layered_buffer_) { 866 if (use_layered_buffer_) {
867 GetWindowRect(&rect); 867 GetWindowRect(&rect);
868 SizeContents(rect); 868 SizeContents(rect);
869 } else { 869 } else {
870 GetClientRect(&rect); 870 GetClientRect(&rect);
871 } 871 }
872 872
873 // Resizing changes the size of the view hierarchy and thus forces a 873 // Resizing changes the size of the view hierarchy and thus forces a
874 // complete relayout. 874 // complete relayout.
875 root_view_->SetBounds(0, 0, rect.Width(), rect.Height()); 875 root_view_->SetBounds(0, 0, rect.Width(), rect.Height());
876 root_view_->Layout();
877 root_view_->SchedulePaint(); 876 root_view_->SchedulePaint();
878 877
879 if (use_layered_buffer_) 878 if (use_layered_buffer_)
880 PaintNow(gfx::Rect(rect)); 879 PaintNow(gfx::Rect(rect));
881 } 880 }
882 881
883 RootView* WidgetWin::CreateRootView() { 882 RootView* WidgetWin::CreateRootView() {
884 return new RootView(this); 883 return new RootView(this);
885 } 884 }
886 885
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 } 1058 }
1060 if (WA_INACTIVE == activation_state) { 1059 if (WA_INACTIVE == activation_state) {
1061 focus_manager->StoreFocusedView(); 1060 focus_manager->StoreFocusedView();
1062 } else { 1061 } else {
1063 // We must restore the focus after the message has been DefProc'ed as it 1062 // We must restore the focus after the message has been DefProc'ed as it
1064 // does set the focus to the last focused HWND. 1063 // does set the focus to the last focused HWND.
1065 focus_manager->RestoreFocusedView(); 1064 focus_manager->RestoreFocusedView();
1066 } 1065 }
1067 } 1066 }
1068 } // namespace views 1067 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/widget_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698