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

Side by Side Diff: views/window/window_win.cc

Issue 6529037: Rename ProcessPaint to Paint() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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_win.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/window/window_win.h" 5 #include "views/window/window_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 1074
1075 root_view->SchedulePaintInRect(gfx::Rect(dirty_region), false); 1075 root_view->SchedulePaintInRect(gfx::Rect(dirty_region), false);
1076 1076
1077 // gfx::CanvasSkiaPaint's destructor does the actual painting. As such, wrap 1077 // gfx::CanvasSkiaPaint's destructor does the actual painting. As such, wrap
1078 // the following in a block to force paint to occur so that we can release 1078 // the following in a block to force paint to occur so that we can release
1079 // the dc. 1079 // the dc.
1080 { 1080 {
1081 gfx::CanvasSkiaPaint canvas(dc, opaque(), dirty_region.left, 1081 gfx::CanvasSkiaPaint canvas(dc, opaque(), dirty_region.left,
1082 dirty_region.top, dirty_region.Width(), 1082 dirty_region.top, dirty_region.Width(),
1083 dirty_region.Height()); 1083 dirty_region.Height());
1084 root_view->ProcessPaint(&canvas); 1084 root_view->Paint(&canvas);
1085 } 1085 }
1086 1086
1087 ReleaseDC(GetNativeView(), dc); 1087 ReleaseDC(GetNativeView(), dc);
1088 } 1088 }
1089 1089
1090 void WindowWin::OnNCLButtonDown(UINT ht_component, const CPoint& point) { 1090 void WindowWin::OnNCLButtonDown(UINT ht_component, const CPoint& point) {
1091 // When we're using a native frame, window controls work without us 1091 // When we're using a native frame, window controls work without us
1092 // interfering. 1092 // interfering.
1093 if (!non_client_view_->UseNativeFrame()) { 1093 if (!non_client_view_->UseNativeFrame()) {
1094 switch (ht_component) { 1094 switch (ht_component) {
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1654 Window::CloseSecondaryWidget(root_view->GetWidget()); 1654 Window::CloseSecondaryWidget(root_view->GetWidget());
1655 return TRUE; 1655 return TRUE;
1656 } 1656 }
1657 } // namespace 1657 } // namespace
1658 1658
1659 void Window::CloseAllSecondaryWindows() { 1659 void Window::CloseAllSecondaryWindows() {
1660 EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0); 1660 EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0);
1661 } 1661 }
1662 1662
1663 } // namespace views 1663 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/widget_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698