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

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

Issue 125109: Refactor the PlatformContext layer to have only one class. (Closed)
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
« no previous file with comments | « views/widget/root_view_gtk.cc ('k') | views/window/window_win.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) 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/root_view.h" 5 #include "views/widget/root_view.h"
6 6
7 #include "app/drag_drop_types.h" 7 #include "app/drag_drop_types.h"
8 #include "app/gfx/canvas.h" 8 #include "app/gfx/canvas_paint.h"
9 #include "base/base_drag_source.h" 9 #include "base/base_drag_source.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "views/widget/root_view_drop_target.h" 11 #include "views/widget/root_view_drop_target.h"
12 12
13 namespace views { 13 namespace views {
14 14
15 void RootView::OnPaint(HWND hwnd) { 15 void RootView::OnPaint(HWND hwnd) {
16 gfx::Rect original_dirty_region = GetScheduledPaintRectConstrainedToSize(); 16 gfx::Rect original_dirty_region = GetScheduledPaintRectConstrainedToSize();
17 if (!original_dirty_region.IsEmpty()) { 17 if (!original_dirty_region.IsEmpty()) {
18 // Invoke InvalidateRect so that the dirty region of the window includes the 18 // Invoke InvalidateRect so that the dirty region of the window includes the
(...skipping 25 matching lines...) Expand all
44 // If the view is removed during the drag operation, drag_view_ is set to 44 // If the view is removed during the drag operation, drag_view_ is set to
45 // NULL. 45 // NULL.
46 if (drag_view_ == view) { 46 if (drag_view_ == view) {
47 View* drag_view = drag_view_; 47 View* drag_view = drag_view_;
48 drag_view_ = NULL; 48 drag_view_ = NULL;
49 drag_view->OnDragDone(); 49 drag_view->OnDragDone();
50 } 50 }
51 } 51 }
52 52
53 } 53 }
OLDNEW
« no previous file with comments | « views/widget/root_view_gtk.cc ('k') | views/window/window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698