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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp

Issue 1690493002: Switch to LayoutThemeMobile when emulating mobile device in DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Invalidate tapHighlightColor only Created 4 years, 9 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) 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 64
65 unsigned LayoutThemeDefault::m_activeSelectionBackgroundColor = 0xff1e90ff; 65 unsigned LayoutThemeDefault::m_activeSelectionBackgroundColor = 0xff1e90ff;
66 unsigned LayoutThemeDefault::m_activeSelectionForegroundColor = Color::black; 66 unsigned LayoutThemeDefault::m_activeSelectionForegroundColor = Color::black;
67 unsigned LayoutThemeDefault::m_inactiveSelectionBackgroundColor = 0xffc8c8c8; 67 unsigned LayoutThemeDefault::m_inactiveSelectionBackgroundColor = 0xffc8c8c8;
68 unsigned LayoutThemeDefault::m_inactiveSelectionForegroundColor = 0xff323232; 68 unsigned LayoutThemeDefault::m_inactiveSelectionForegroundColor = 0xff323232;
69 69
70 double LayoutThemeDefault::m_caretBlinkInterval; 70 double LayoutThemeDefault::m_caretBlinkInterval;
71 71
72 LayoutThemeDefault::LayoutThemeDefault() 72 LayoutThemeDefault::LayoutThemeDefault()
73 : LayoutTheme(nullptr)
73 { 74 {
74 m_caretBlinkInterval = LayoutTheme::caretBlinkInterval(); 75 m_caretBlinkInterval = LayoutTheme::caretBlinkInterval();
75 } 76 }
76 77
77 LayoutThemeDefault::~LayoutThemeDefault() 78 LayoutThemeDefault::~LayoutThemeDefault()
78 { 79 {
79 } 80 }
80 81
81 bool LayoutThemeDefault::themeDrawsFocusRing(const ComputedStyle& style) const 82 bool LayoutThemeDefault::themeDrawsFocusRing(const ComputedStyle& style) const
82 { 83 {
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 { 417 {
417 return progressAnimationInterval; 418 return progressAnimationInterval;
418 } 419 }
419 420
420 double LayoutThemeDefault::animationDurationForProgressBar() const 421 double LayoutThemeDefault::animationDurationForProgressBar() const
421 { 422 {
422 return progressAnimationInterval * progressAnimationFrames * 2; // "2" for b ack and forth 423 return progressAnimationInterval * progressAnimationFrames * 2; // "2" for b ack and forth
423 } 424 }
424 425
425 } // namespace blink 426 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698