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

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

Issue 283053002: Add compositing, layers to app_list_demo Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto master -- probably slightly broken Created 6 years, 3 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 | « ui/views/test/test_views_delegate.h ('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 2382 matching lines...) Expand 10 before | Expand all | Expand 10 after
2442 // Message the RootView to do the drag and drop. That way if we're removed 2446 // Message the RootView to do the drag and drop. That way if we're removed
2443 // the RootView can detect it and avoid calling us back. 2447 // the RootView can detect it and avoid calling us back.
2444 gfx::Point widget_location(event.location()); 2448 gfx::Point widget_location(event.location());
2445 ConvertPointToWidget(this, &widget_location); 2449 ConvertPointToWidget(this, &widget_location);
2446 widget->RunShellDrag(this, data, widget_location, drag_operations, source); 2450 widget->RunShellDrag(this, data, widget_location, drag_operations, source);
2447 // WARNING: we may have been deleted. 2451 // WARNING: we may have been deleted.
2448 return true; 2452 return true;
2449 } 2453 }
2450 2454
2451 } // namespace views 2455 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/test/test_views_delegate.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698