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

Side by Side Diff: ui/views/focus_border.h

Issue 10933085: Update ConstrainedWindowViews appearance according to mock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Browser test fixes Created 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_FOCUS_BORDER_H_
6 #define UI_VIEWS_FOCUS_BORDER_H_
7
8 #include "ui/views/views_export.h"
9 #include "base/basictypes.h"
10
11 namespace gfx {
12 class Canvas;
13 }
14
15 namespace views {
16 class View;
17
18 ////////////////////////////////////////////////////////////////////////////////
19 //
20 // Focus border class.
21 //
22 // The focus border class is used to display an indication of focus on a view.
23 // To set a focus border on a view, call SetFocusBorder on the view. Once set
24 // on a view, the focus border is owned by the view.
25 //
26 ////////////////////////////////////////////////////////////////////////////////
27
28 class VIEWS_EXPORT FocusBorder {
29 public:
30 virtual ~FocusBorder();
31
32 // Creates the default inset dashed line focus border.
33 static FocusBorder* CreateDashedFocusBorder();
34 static FocusBorder* CreateDashedFocusBorder(
35 int left, int top, int right, int bottom);
36
37 // Renders the focus border for the specified view.
38 virtual void Paint(const View& view, gfx::Canvas* canvas) const = 0;
39
40 protected:
41 FocusBorder();
42
43 private:
44 DISALLOW_COPY_AND_ASSIGN(FocusBorder);
45 };
46
47 } // namespace views
48
49 #endif // UI_VIEWS_FOCUS_BORDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698