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

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

Issue 2380303004: Move MdFocusRing to be a property of FocusManager. (Closed)
Patch Set: Created 4 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/view.h ('k') | no next file » | 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 registered_for_visible_bounds_notification_(false), 109 registered_for_visible_bounds_notification_(false),
110 needs_layout_(true), 110 needs_layout_(true),
111 snap_layer_to_pixel_boundary_(false), 111 snap_layer_to_pixel_boundary_(false),
112 flip_canvas_on_paint_for_rtl_ui_(false), 112 flip_canvas_on_paint_for_rtl_ui_(false),
113 paint_to_layer_(false), 113 paint_to_layer_(false),
114 accelerator_focus_manager_(NULL), 114 accelerator_focus_manager_(NULL),
115 registered_accelerator_count_(0), 115 registered_accelerator_count_(0),
116 next_focusable_view_(NULL), 116 next_focusable_view_(NULL),
117 previous_focusable_view_(NULL), 117 previous_focusable_view_(NULL),
118 focus_behavior_(FocusBehavior::NEVER), 118 focus_behavior_(FocusBehavior::NEVER),
119 should_use_md_focus_ring_(false),
119 context_menu_controller_(NULL), 120 context_menu_controller_(NULL),
120 drag_controller_(NULL), 121 drag_controller_(NULL),
121 native_view_accessibility_(NULL) { 122 native_view_accessibility_(NULL) {
122 SetTargetHandler(this); 123 SetTargetHandler(this);
123 } 124 }
124 125
125 View::~View() { 126 View::~View() {
126 if (parent_) 127 if (parent_)
127 parent_->RemoveChildView(this); 128 parent_->RemoveChildView(this);
128 129
(...skipping 2289 matching lines...) Expand 10 before | Expand all | Expand 10 after
2418 // Message the RootView to do the drag and drop. That way if we're removed 2419 // Message the RootView to do the drag and drop. That way if we're removed
2419 // the RootView can detect it and avoid calling us back. 2420 // the RootView can detect it and avoid calling us back.
2420 gfx::Point widget_location(event.location()); 2421 gfx::Point widget_location(event.location());
2421 ConvertPointToWidget(this, &widget_location); 2422 ConvertPointToWidget(this, &widget_location);
2422 widget->RunShellDrag(this, data, widget_location, drag_operations, source); 2423 widget->RunShellDrag(this, data, widget_location, drag_operations, source);
2423 // WARNING: we may have been deleted. 2424 // WARNING: we may have been deleted.
2424 return true; 2425 return true;
2425 } 2426 }
2426 2427
2427 } // namespace views 2428 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698