| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. | 2 * Copyright (C) 2007 Apple Inc. |
| 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
| 4 * Copyright (C) 2008 Collabora Ltd. | 4 * Copyright (C) 2008 Collabora Ltd. |
| 5 * Copyright (C) 2008, 2009 Google Inc. | 5 * Copyright (C) 2008, 2009 Google Inc. |
| 6 * Copyright (C) 2009 Kenneth Rohde Christiansen | 6 * Copyright (C) 2009 Kenneth Rohde Christiansen |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "core/layout/LayoutThemeDefault.h" | 25 #include "core/layout/LayoutThemeDefault.h" |
| 26 | 26 |
| 27 #include "core/CSSValueKeywords.h" | 27 #include "core/CSSValueKeywords.h" |
| 28 #include "core/layout/LayoutThemeFontProvider.h" | 28 #include "core/layout/LayoutThemeFontProvider.h" |
| 29 #include "core/paint/MediaControlsPainter.h" | 29 #include "core/paint/MediaControlsPainter.h" |
| 30 #include "core/style/ComputedStyle.h" | 30 #include "core/style/ComputedStyle.h" |
| 31 #include "platform/HostWindow.h" | 31 #include "platform/HostWindow.h" |
| 32 #include "platform/LayoutTestSupport.h" | 32 #include "platform/LayoutTestSupport.h" |
| 33 #include "platform/PlatformResourceLoader.h" | 33 #include "platform/PlatformResourceLoader.h" |
| 34 #include "platform/graphics/Color.h" | 34 #include "platform/graphics/Color.h" |
| 35 #include "platform/wtf/text/StringBuilder.h" |
| 35 #include "public/platform/Platform.h" | 36 #include "public/platform/Platform.h" |
| 36 #include "public/platform/WebThemeEngine.h" | 37 #include "public/platform/WebThemeEngine.h" |
| 37 #include "wtf/text/StringBuilder.h" | |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 // These values all match Safari/Win. | 41 // These values all match Safari/Win. |
| 42 static const float kDefaultControlFontPixelSize = 13; | 42 static const float kDefaultControlFontPixelSize = 13; |
| 43 static const float kDefaultCancelButtonSize = 9; | 43 static const float kDefaultCancelButtonSize = 9; |
| 44 static const float kMinCancelButtonSize = 5; | 44 static const float kMinCancelButtonSize = 5; |
| 45 static const float kMaxCancelButtonSize = 21; | 45 static const float kMaxCancelButtonSize = 21; |
| 46 | 46 |
| 47 static bool UseMockTheme() { | 47 static bool UseMockTheme() { |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 double LayoutThemeDefault::AnimationRepeatIntervalForProgressBar() const { | 395 double LayoutThemeDefault::AnimationRepeatIntervalForProgressBar() const { |
| 396 return kProgressAnimationInterval; | 396 return kProgressAnimationInterval; |
| 397 } | 397 } |
| 398 | 398 |
| 399 double LayoutThemeDefault::AnimationDurationForProgressBar() const { | 399 double LayoutThemeDefault::AnimationDurationForProgressBar() const { |
| 400 return kProgressAnimationInterval * kProgressAnimationFrames * | 400 return kProgressAnimationInterval * kProgressAnimationFrames * |
| 401 2; // "2" for back and forth | 401 2; // "2" for back and forth |
| 402 } | 402 } |
| 403 | 403 |
| 404 } // namespace blink | 404 } // namespace blink |
| OLD | NEW |