| OLD | NEW |
| 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 // This file implements a simple generic version of the WebKitThemeEngine, | 5 // This file implements a simple generic version of the WebKitThemeEngine, |
| 6 // Since WebThemeEngine is unfortunately defined in terms of the Windows | 6 // Since WebThemeEngine is unfortunately defined in terms of the Windows |
| 7 // Theme parameters and values, we need to translate all the values into | 7 // Theme parameters and values, we need to translate all the values into |
| 8 // generic equivalents that we can more easily understand. This file does | 8 // generic equivalents that we can more easily understand. This file does |
| 9 // that translation (acting as a Facade design pattern) and then uses | 9 // that translation (acting as a Facade design pattern) and then uses |
| 10 // TestShellWebTheme::Control for the actual rendering of the widgets. | 10 // TestShellWebTheme::Control for the actual rendering of the widgets. |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 void Engine::paintProgressBar(WebKit::WebCanvas* canvas, | 562 void Engine::paintProgressBar(WebKit::WebCanvas* canvas, |
| 563 const WebKit::WebRect& barRect, | 563 const WebKit::WebRect& barRect, |
| 564 const WebKit::WebRect& valueRect, | 564 const WebKit::WebRect& valueRect, |
| 565 bool determinate, double) { | 565 bool determinate, double) { |
| 566 Control::Type ctype = Control::kProgressBar_Type; | 566 Control::Type ctype = Control::kProgressBar_Type; |
| 567 Control::State cstate = | 567 Control::State cstate = |
| 568 determinate ? Control::kNormal_State : Control::kIndeterminate_State; | 568 determinate ? Control::kNormal_State : Control::kIndeterminate_State; |
| 569 drawProgressBar(canvas, ctype, cstate, barRect, valueRect); | 569 drawProgressBar(canvas, ctype, cstate, barRect, valueRect); |
| 570 } | 570 } |
| 571 | 571 |
| 572 WebKit::WebSize Engine::getSize(int part) { |
| 573 return WebKit::WebSize(); |
| 574 } |
| 575 |
| 572 } // namespace TestShellWebTheme | 576 } // namespace TestShellWebTheme |
| OLD | NEW |