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

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

Issue 2395033002: Harmony - Don't paint focus ring on unless border requests it. (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
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 #include "ui/views/border.h" 5 #include "ui/views/border.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 gfx::Insets(top, left, bottom, right), color); 220 gfx::Insets(top, left, bottom, right), color);
221 } 221 }
222 222
223 // static 223 // static
224 std::unique_ptr<Border> Border::CreateBorderPainter( 224 std::unique_ptr<Border> Border::CreateBorderPainter(
225 std::unique_ptr<Painter> painter, 225 std::unique_ptr<Painter> painter,
226 const gfx::Insets& insets) { 226 const gfx::Insets& insets) {
227 return base::WrapUnique(new BorderPainter(std::move(painter), insets)); 227 return base::WrapUnique(new BorderPainter(std::move(painter), insets));
228 } 228 }
229 229
230 bool Border::ShouldAddFocusRing() const {
231 return false;
232 }
233
230 } // namespace views 234 } // namespace views
OLDNEW
« ui/views/border.h ('K') | « ui/views/border.h ('k') | ui/views/controls/focusable_border.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698