| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // In order to ensure maximum consistency of baselines across the different | 40 // In order to ensure maximum consistency of baselines across the different |
| 41 // Windows versions, we provide a simple implementation for DRT here | 41 // Windows versions, we provide a simple implementation for DRT here |
| 42 // instead. These controls are actually platform-independent (they're rendered | 42 // instead. These controls are actually platform-independent (they're rendered |
| 43 // using Skia) and could be used on Linux and the Mac as well, should we | 43 // using Skia) and could be used on Linux and the Mac as well, should we |
| 44 // choose to do so at some point. | 44 // choose to do so at some point. |
| 45 // | 45 // |
| 46 | 46 |
| 47 #ifndef WebTestThemeEngineWin_h | 47 #ifndef WebTestThemeEngineWin_h |
| 48 #define WebTestThemeEngineWin_h | 48 #define WebTestThemeEngineWin_h |
| 49 | 49 |
| 50 #include "public/platform/WebNonCopyable.h" |
| 50 #include "public/platform/win/WebThemeEngine.h" | 51 #include "public/platform/win/WebThemeEngine.h" |
| 51 | 52 |
| 52 namespace WebTestRunner { | 53 namespace WebTestRunner { |
| 53 | 54 |
| 54 class WebTestThemeEngineWin : public WebKit::WebThemeEngine { | 55 class WebTestThemeEngineWin : public WebKit::WebThemeEngine, public WebKit::WebN
onCopyable { |
| 55 public: | 56 public: |
| 56 WebTestThemeEngineWin() { } | 57 WebTestThemeEngineWin() { } |
| 57 | 58 |
| 58 // WebThemeEngine methods: | 59 // WebThemeEngine methods: |
| 59 virtual void paintButton( | 60 virtual void paintButton( |
| 60 WebKit::WebCanvas*, int part, int state, int classicState, | 61 WebKit::WebCanvas*, int part, int state, int classicState, |
| 61 const WebKit::WebRect&); | 62 const WebKit::WebRect&); |
| 62 | 63 |
| 63 virtual void paintMenuList( | 64 virtual void paintMenuList( |
| 64 WebKit::WebCanvas*, int part, int state, int classicState, | 65 WebKit::WebCanvas*, int part, int state, int classicState, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 93 WebKit::WebCanvas*, const WebKit::WebRect& barRect, | 94 WebKit::WebCanvas*, const WebKit::WebRect& barRect, |
| 94 const WebKit::WebRect& valueRect, | 95 const WebKit::WebRect& valueRect, |
| 95 bool determinate, double time); | 96 bool determinate, double time); |
| 96 | 97 |
| 97 virtual WebKit::WebSize getSize(int part); | 98 virtual WebKit::WebSize getSize(int part); |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 } | 101 } |
| 101 | 102 |
| 102 #endif // WebTestThemeEngineWin_h | 103 #endif // WebTestThemeEngineWin_h |
| OLD | NEW |