| OLD | NEW |
| 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 <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include "app/gfx/canvas_paint.h" | |
| 10 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "gfx/canvas_paint.h" |
| 11 #include "views/widget/widget_gtk.h" | 11 #include "views/widget/widget_gtk.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 | 14 |
| 15 void RootView::OnPaint(GdkEventExpose* event) { | 15 void RootView::OnPaint(GdkEventExpose* event) { |
| 16 WidgetGtk* widget = static_cast<WidgetGtk*>(GetWidget()); | 16 WidgetGtk* widget = static_cast<WidgetGtk*>(GetWidget()); |
| 17 if (!widget) { | 17 if (!widget) { |
| 18 NOTREACHED(); | 18 NOTREACHED(); |
| 19 return; | 19 return; |
| 20 } | 20 } |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // If the view is removed during the drag operation, drag_view_ is set to | 60 // If the view is removed during the drag operation, drag_view_ is set to |
| 61 // NULL. | 61 // NULL. |
| 62 if (view && drag_view_ == view) { | 62 if (view && drag_view_ == view) { |
| 63 View* drag_view = drag_view_; | 63 View* drag_view = drag_view_; |
| 64 drag_view_ = NULL; | 64 drag_view_ = NULL; |
| 65 drag_view->OnDragDone(); | 65 drag_view->OnDragDone(); |
| 66 } | 66 } |
| 67 } | 67 } |
| 68 | 68 |
| 69 } | 69 } |
| OLD | NEW |