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

Side by Side Diff: webkit/tools/test_shell/test_shell_webthemecontrol.h

Issue 7517020: First pass at removal of unneeded dependencies on skia\ext\platform_canvas.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // TestShellWebTheme::Control implements the generic rendering of controls 5 // TestShellWebTheme::Control implements the generic rendering of controls
6 // needed by TestShellWebTheme::Engine. See the comments in that class 6 // needed by TestShellWebTheme::Engine. See the comments in that class
7 // header file for why this class is needed and used. 7 // header file for why this class is needed and used.
8 // 8 //
9 // This class implements a generic set of widgets using Skia. The widgets 9 // This class implements a generic set of widgets using Skia. The widgets
10 // are optimized for testability, not a pleasing appearance. 10 // are optimized for testability, not a pleasing appearance.
11 // 11 //
12 12
13 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBTHEMECONTROL_H_ 13 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBTHEMECONTROL_H_
14 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBTHEMECONTROL_H_ 14 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBTHEMECONTROL_H_
15 15
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "skia/ext/platform_canvas.h"
18 #include "third_party/skia/include/core/SkColor.h" 17 #include "third_party/skia/include/core/SkColor.h"
19 #include "third_party/skia/include/core/SkRect.h" 18 #include "third_party/skia/include/core/SkRect.h"
20 19
20 class SkCanvas;
21
21 namespace TestShellWebTheme { 22 namespace TestShellWebTheme {
22 23
23 class Control { 24 class Control {
24 public: 25 public:
25 // This list of states mostly mirrors the list in 26 // This list of states mostly mirrors the list in
26 // third_party/WebKit/WebCore/platform/ThemeTypes.h but is maintained 27 // third_party/WebKit/WebCore/platform/ThemeTypes.h but is maintained
27 // separately since that isn't public and also to minimize dependencies. 28 // separately since that isn't public and also to minimize dependencies.
28 // Note that the WebKit ThemeTypes seem to imply that a control can be 29 // Note that the WebKit ThemeTypes seem to imply that a control can be
29 // in multiple states simultaneously but WebThemeEngine only allows for 30 // in multiple states simultaneously but WebThemeEngine only allows for
30 // a single state at a time. 31 // a single state at a time.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 const int bottom_; 169 const int bottom_;
169 const int width_; 170 const int width_;
170 const int height_; 171 const int height_;
171 172
172 DISALLOW_COPY_AND_ASSIGN(Control); 173 DISALLOW_COPY_AND_ASSIGN(Control);
173 }; 174 };
174 175
175 } // namespace TestShellWebTheme 176 } // namespace TestShellWebTheme
176 177
177 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBTHEMECONTROL_H_ 178 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBTHEMECONTROL_H_
178
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/webkit_forwarding_impl.cc ('k') | webkit/tools/test_shell/webview_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698