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

Side by Side Diff: third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp

Issue 1636873005: blink: Fix naming and const-ness of constants and non-constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants: indents Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. 2 * Copyright (C) 2009 Apple Inc.
3 * Copyright (C) 2009 Google Inc. 3 * Copyright (C) 2009 Google Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 20 matching lines...) Expand all
31 #include "core/html/HTMLMediaElement.h" 31 #include "core/html/HTMLMediaElement.h"
32 #include "core/html/TimeRanges.h" 32 #include "core/html/TimeRanges.h"
33 #include "core/html/shadow/MediaControlElementTypes.h" 33 #include "core/html/shadow/MediaControlElementTypes.h"
34 #include "core/paint/PaintInfo.h" 34 #include "core/paint/PaintInfo.h"
35 #include "core/style/ComputedStyle.h" 35 #include "core/style/ComputedStyle.h"
36 #include "platform/graphics/Gradient.h" 36 #include "platform/graphics/Gradient.h"
37 #include "platform/graphics/GraphicsContext.h" 37 #include "platform/graphics/GraphicsContext.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 static double kCurrentTimeBufferedDelta = 1.0; 41 static const double kCurrentTimeBufferedDelta = 1.0;
42 42
43 typedef WTF::HashMap<const char*, Image*> MediaControlImageMap; 43 typedef WTF::HashMap<const char*, Image*> MediaControlImageMap;
44 static MediaControlImageMap* gMediaControlImageMap = 0; 44 static MediaControlImageMap* gMediaControlImageMap = 0;
45 45
46 // Current UI slider thumbs sizes. 46 // Current UI slider thumbs sizes.
47 static const int mediaSliderThumbWidth = 32; 47 static const int mediaSliderThumbWidth = 32;
48 static const int mediaSliderThumbHeight = 24; 48 static const int mediaSliderThumbHeight = 24;
49 static const int mediaVolumeSliderThumbHeight = 24; 49 static const int mediaVolumeSliderThumbHeight = 24;
50 static const int mediaVolumeSliderThumbWidth = 24; 50 static const int mediaVolumeSliderThumbWidth = 24;
51 51
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 } 569 }
570 570
571 float zoomLevel = style.effectiveZoom(); 571 float zoomLevel = style.effectiveZoom();
572 if (thumbImage) { 572 if (thumbImage) {
573 style.setWidth(Length(static_cast<int>(width * zoomLevel), Fixed)); 573 style.setWidth(Length(static_cast<int>(width * zoomLevel), Fixed));
574 style.setHeight(Length(static_cast<int>(height * zoomLevel), Fixed)); 574 style.setHeight(Length(static_cast<int>(height * zoomLevel), Fixed));
575 } 575 }
576 } 576 }
577 577
578 } // namespace blink 578 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698