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

Side by Side Diff: views/border.h

Issue 113443: ChromeCanvas->gfx::Canvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « views/background.cc ('k') | views/border.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef VIEWS_BORDER_H_ 5 #ifndef VIEWS_BORDER_H_
6 #define VIEWS_BORDER_H_ 6 #define VIEWS_BORDER_H_
7 7
8 #include "app/gfx/insets.h" 8 #include "app/gfx/insets.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "views/view.h" 10 #include "views/view.h"
11 11
12 class ChromeCanvas; 12 namespace gfx{
13 class Canvas;
14 }
13 15
14 namespace views { 16 namespace views {
15 17
16 class View; 18 class View;
17 19
18 //////////////////////////////////////////////////////////////////////////////// 20 ////////////////////////////////////////////////////////////////////////////////
19 // 21 //
20 // Border class. 22 // Border class.
21 // 23 //
22 // The border class is used to display a border around a view. 24 // The border class is used to display a border around a view.
(...skipping 15 matching lines...) Expand all
38 40
39 // Creates a border that is a simple line of the specified thickness and 41 // Creates a border that is a simple line of the specified thickness and
40 // color. 42 // color.
41 static Border* CreateSolidBorder(int thickness, SkColor color); 43 static Border* CreateSolidBorder(int thickness, SkColor color);
42 44
43 // Creates a border for reserving space. The returned border does not 45 // Creates a border for reserving space. The returned border does not
44 // paint anything. 46 // paint anything.
45 static Border* CreateEmptyBorder(int top, int left, int bottom, int right); 47 static Border* CreateEmptyBorder(int top, int left, int bottom, int right);
46 48
47 // Renders the border for the specified view. 49 // Renders the border for the specified view.
48 virtual void Paint(const View& view, ChromeCanvas* canvas) const = 0; 50 virtual void Paint(const View& view, gfx::Canvas* canvas) const = 0;
49 51
50 // Sets the specified insets to the the border insets. 52 // Sets the specified insets to the the border insets.
51 virtual void GetInsets(gfx::Insets* insets) const = 0; 53 virtual void GetInsets(gfx::Insets* insets) const = 0;
52 54
53 private: 55 private:
54 DISALLOW_COPY_AND_ASSIGN(Border); 56 DISALLOW_COPY_AND_ASSIGN(Border);
55 }; 57 };
56 58
57 } // namespace views 59 } // namespace views
58 60
59 #endif // VIEWS_BORDER_H_ 61 #endif // VIEWS_BORDER_H_
OLDNEW
« no previous file with comments | « views/background.cc ('k') | views/border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698