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

Side by Side Diff: webkit/tools/test_shell/test_shell_webthemeengine.cc

Issue 10667022: empty impl of webthemeengine::getSize for test_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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
« no previous file with comments | « webkit/tools/test_shell/test_shell_webthemeengine.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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
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
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_webthemeengine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698