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

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

Issue 6200005: Move OSExchangeData from src/app to src/ui/base/dragdrop... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/drop_target_win.cc ('k') | views/widget/widget_gtk.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/os_exchange_data.h"
9 #include "app/os_exchange_data_provider_win.h"
10 #include "app/win/drag_source.h" 8 #include "app/win/drag_source.h"
11 #include "gfx/canvas_skia.h" 9 #include "gfx/canvas_skia.h"
10 #include "ui/base/dragdrop/os_exchange_data.h"
11 #include "ui/base/dragdrop/os_exchange_data_provider_win.h"
12
13 using ui::OSExchangeData;
14 using ui::OSExchangeDataProviderWin;
12 15
13 namespace views { 16 namespace views {
14 17
15 void RootView::OnPaint(HWND hwnd) { 18 void RootView::OnPaint(HWND hwnd) {
16 gfx::Rect original_dirty_region = GetScheduledPaintRectConstrainedToSize(); 19 gfx::Rect original_dirty_region = GetScheduledPaintRectConstrainedToSize();
17 if (!original_dirty_region.IsEmpty()) { 20 if (!original_dirty_region.IsEmpty()) {
18 // Invoke InvalidateRect so that the dirty region of the window includes the 21 // Invoke InvalidateRect so that the dirty region of the window includes the
19 // region we need to paint. If we didn't do this and the region didn't 22 // region we need to paint. If we didn't do this and the region didn't
20 // include the dirty region, ProcessPaint would incorrectly mark everything 23 // include the dirty region, ProcessPaint would incorrectly mark everything
21 // as clean. This can happen if a WM_PAINT is generated by the system before 24 // as clean. This can happen if a WM_PAINT is generated by the system before
(...skipping 23 matching lines...) Expand all
45 // If the view is removed during the drag operation, drag_view_ is set to 48 // If the view is removed during the drag operation, drag_view_ is set to
46 // NULL. 49 // NULL.
47 if (view && drag_view_ == view) { 50 if (view && drag_view_ == view) {
48 View* drag_view = drag_view_; 51 View* drag_view = drag_view_;
49 drag_view_ = NULL; 52 drag_view_ = NULL;
50 drag_view->OnDragDone(); 53 drag_view->OnDragDone();
51 } 54 }
52 } 55 }
53 56
54 } 57 }
OLDNEW
« no previous file with comments | « views/widget/drop_target_win.cc ('k') | views/widget/widget_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698