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

Side by Side Diff: ui/views/view.cc

Issue 659233002: STASH: Epic Experimental patch for toolkit-views App List on Mac Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Fix a few things. Works@master Created 6 years, 2 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 | « ui/views/test/views_test_base.cc ('k') | ui/views/views.gyp » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first. 5 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first.
6 6
7 #include "ui/views/view.h" 7 #include "ui/views/view.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 29 matching lines...) Expand all
40 #include "ui/views/context_menu_controller.h" 40 #include "ui/views/context_menu_controller.h"
41 #include "ui/views/drag_controller.h" 41 #include "ui/views/drag_controller.h"
42 #include "ui/views/focus/view_storage.h" 42 #include "ui/views/focus/view_storage.h"
43 #include "ui/views/layout/layout_manager.h" 43 #include "ui/views/layout/layout_manager.h"
44 #include "ui/views/views_delegate.h" 44 #include "ui/views/views_delegate.h"
45 #include "ui/views/widget/native_widget_private.h" 45 #include "ui/views/widget/native_widget_private.h"
46 #include "ui/views/widget/root_view.h" 46 #include "ui/views/widget/root_view.h"
47 #include "ui/views/widget/tooltip_manager.h" 47 #include "ui/views/widget/tooltip_manager.h"
48 #include "ui/views/widget/widget.h" 48 #include "ui/views/widget/widget.h"
49 49
50 #include "third_party/skia/include/core/SkBitmap.h"
51 #include "ui/gfx/codec/png_codec.h"
52
53
50 #if defined(OS_WIN) 54 #if defined(OS_WIN)
51 #include "base/win/scoped_gdi_object.h" 55 #include "base/win/scoped_gdi_object.h"
52 #endif 56 #endif
53 57
54 namespace { 58 namespace {
55 59
56 #if defined(OS_WIN) 60 #if defined(OS_WIN)
57 const bool kContextMenuOnMousePress = false; 61 const bool kContextMenuOnMousePress = false;
58 #else 62 #else
59 const bool kContextMenuOnMousePress = true; 63 const bool kContextMenuOnMousePress = true;
(...skipping 2396 matching lines...) Expand 10 before | Expand all | Expand 10 after
2456 // Message the RootView to do the drag and drop. That way if we're removed 2460 // Message the RootView to do the drag and drop. That way if we're removed
2457 // the RootView can detect it and avoid calling us back. 2461 // the RootView can detect it and avoid calling us back.
2458 gfx::Point widget_location(event.location()); 2462 gfx::Point widget_location(event.location());
2459 ConvertPointToWidget(this, &widget_location); 2463 ConvertPointToWidget(this, &widget_location);
2460 widget->RunShellDrag(this, data, widget_location, drag_operations, source); 2464 widget->RunShellDrag(this, data, widget_location, drag_operations, source);
2461 // WARNING: we may have been deleted. 2465 // WARNING: we may have been deleted.
2462 return true; 2466 return true;
2463 } 2467 }
2464 2468
2465 } // namespace views 2469 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/test/views_test_base.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698