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

Side by Side Diff: content/shell/renderer/test_runner/WebTestThemeEngineWin.h

Issue 123243002: Replace WebNonCopyable with DISALLOW_COPY_AND_ASSIGN in test runner library (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 6 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // This implements the WebThemeEngine API used by the Windows version of 5 // This implements the WebThemeEngine API used by the Windows version of
6 // Chromium to render native form controls like checkboxes, radio buttons, 6 // Chromium to render native form controls like checkboxes, radio buttons,
7 // and scroll bars. 7 // and scroll bars.
8 // The normal implementation (native_theme) renders the controls using either 8 // The normal implementation (native_theme) renders the controls using either
9 // the UXTheme theming engine present in XP, Vista, and Win 7, or the "classic" 9 // the UXTheme theming engine present in XP, Vista, and Win 7, or the "classic"
10 // theme used if that theme is selected in the Desktop settings. 10 // theme used if that theme is selected in the Desktop settings.
11 // Unfortunately, both of these themes render controls differently on the 11 // Unfortunately, both of these themes render controls differently on the
12 // different versions of Windows. 12 // different versions of Windows.
13 // 13 //
14 // In order to ensure maximum consistency of baselines across the different 14 // In order to ensure maximum consistency of baselines across the different
15 // Windows versions, we provide a simple implementation for DRT here 15 // Windows versions, we provide a simple implementation for DRT here
16 // instead. These controls are actually platform-independent (they're rendered 16 // instead. These controls are actually platform-independent (they're rendered
17 // using Skia) and could be used on Linux and the Mac as well, should we 17 // using Skia) and could be used on Linux and the Mac as well, should we
18 // choose to do so at some point. 18 // choose to do so at some point.
19 // 19 //
20 20
21 #ifndef WebTestThemeEngineWin_h 21 #ifndef WebTestThemeEngineWin_h
22 #define WebTestThemeEngineWin_h 22 #define WebTestThemeEngineWin_h
23 23
24 #include "third_party/WebKit/public/platform/WebNonCopyable.h" 24 #include "base/basictypes.h"
25 #include "third_party/WebKit/public/platform/win/WebThemeEngine.h" 25 #include "third_party/WebKit/public/platform/win/WebThemeEngine.h"
26 26
27 namespace WebTestRunner { 27 namespace WebTestRunner {
28 28
29 class WebTestThemeEngineWin : public blink::WebThemeEngine, public blink::WebNon Copyable { 29 class WebTestThemeEngineWin : public blink::WebThemeEngine {
30 public: 30 public:
31 WebTestThemeEngineWin() { } 31 WebTestThemeEngineWin() { }
32 virtual ~WebTestThemeEngineWin() { } 32 virtual ~WebTestThemeEngineWin() { }
33 33
34 // WebThemeEngine methods: 34 // WebThemeEngine methods:
35 virtual void paintButton( 35 virtual void paintButton(
36 blink::WebCanvas*, int part, int state, int classicState, 36 blink::WebCanvas*, int part, int state, int classicState,
37 const blink::WebRect&); 37 const blink::WebRect&);
38 38
39 virtual void paintMenuList( 39 virtual void paintMenuList(
(...skipping 24 matching lines...) Expand all
64 virtual void paintTrackbar( 64 virtual void paintTrackbar(
65 blink::WebCanvas*, int part, int state, int classicState, 65 blink::WebCanvas*, int part, int state, int classicState,
66 const blink::WebRect&); 66 const blink::WebRect&);
67 67
68 virtual void paintProgressBar( 68 virtual void paintProgressBar(
69 blink::WebCanvas*, const blink::WebRect& barRect, 69 blink::WebCanvas*, const blink::WebRect& barRect,
70 const blink::WebRect& valueRect, 70 const blink::WebRect& valueRect,
71 bool determinate, double time); 71 bool determinate, double time);
72 72
73 virtual blink::WebSize getSize(int part); 73 virtual blink::WebSize getSize(int part);
74
75 private:
76 DISALLOW_COPY_AND_ASSIGN(WebTestThemeEngineWin);
74 }; 77 };
75 78
76 } 79 }
77 80
78 #endif // WebTestThemeEngineWin_h 81 #endif // WebTestThemeEngineWin_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698