diff options
author | mihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-29 21:27:01 +0000 |
---|---|---|
committer | mihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-29 21:27:01 +0000 |
commit | 1c4ff85935600c96ac8cadeaa21c2122ba07e9a3 (patch) | |
tree | a596d93e20bffc225e0f190bf02263a40c41a813 /webkit/glue/webthemeengine_impl_mac.h | |
parent | eb54c5b4da5ab9c4d50cb619de0dc8baff60e9dd (diff) | |
download | chromium_src-1c4ff85935600c96ac8cadeaa21c2122ba07e9a3.zip chromium_src-1c4ff85935600c96ac8cadeaa21c2122ba07e9a3.tar.gz chromium_src-1c4ff85935600c96ac8cadeaa21c2122ba07e9a3.tar.bz2 |
Add implementation of WebThemeEngine for the Mac (declared by
http://webkit.org/b/51507). This allows scrollbar thumb rendering to be
overridden, so that we can match the Mac port's when running under the DRT.
BUG=23498
TEST=Layout tests
Review URL: http://codereview.chromium.org/6041005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70278 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webthemeengine_impl_mac.h')
-rw-r--r-- | webkit/glue/webthemeengine_impl_mac.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/webkit/glue/webthemeengine_impl_mac.h b/webkit/glue/webthemeengine_impl_mac.h new file mode 100644 index 0000000..788cba3 --- /dev/null +++ b/webkit/glue/webthemeengine_impl_mac.h @@ -0,0 +1,25 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef WEBKIT_GLUE_WEBTHEMEENGINE_IMPL_MAC_H_ +#define WEBKIT_GLUE_WEBTHEMEENGINE_IMPL_MAC_H_ + +#include "third_party/WebKit/WebKit/chromium/public/mac/WebThemeEngine.h" + +namespace webkit_glue { + +class WebThemeEngineImpl : public WebKit::WebThemeEngine { + public: + // WebKit::WebThemeEngine implementation. + virtual void paintScrollbarThumb( + WebKit::WebCanvas*, + WebKit::WebThemeEngine::State, + WebKit::WebThemeEngine::Size, + const WebKit::WebRect&, + const WebKit::WebThemeEngine::ScrollbarInfo&); +}; + +} // namespace webkit_glue + +#endif // WEBKIT_GLUE_WEBTHEMEENGINE_IMPL_MAC_H_ |