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

Side by Side Diff: Source/core/css/LocalFontFaceSource.h

Issue 640593002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/[css|rendering|clipboard] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased the patch Created 6 years, 2 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
« no previous file with comments | « Source/core/css/FontFaceSetLoadEvent.h ('k') | Source/core/css/MediaQueryList.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef LocalFontFaceSource_h 5 #ifndef LocalFontFaceSource_h
6 #define LocalFontFaceSource_h 6 #define LocalFontFaceSource_h
7 7
8 #include "core/css/CSSFontFaceSource.h" 8 #include "core/css/CSSFontFaceSource.h"
9 #include "wtf/text/AtomicString.h" 9 #include "wtf/text/AtomicString.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class LocalFontFaceSource : public CSSFontFaceSource { 13 class LocalFontFaceSource : public CSSFontFaceSource {
14 public: 14 public:
15 LocalFontFaceSource(const String& fontName) : m_fontName(fontName) { } 15 LocalFontFaceSource(const String& fontName) : m_fontName(fontName) { }
16 virtual bool isLocal() const { return true; } 16 virtual bool isLocal() const { return true; }
17 virtual bool isLocalFontAvailable(const FontDescription&) OVERRIDE; 17 virtual bool isLocalFontAvailable(const FontDescription&) override;
18 18
19 private: 19 private:
20 virtual PassRefPtr<SimpleFontData> createFontData(const FontDescription&) OV ERRIDE; 20 virtual PassRefPtr<SimpleFontData> createFontData(const FontDescription&) ov erride;
21 21
22 class LocalFontHistograms { 22 class LocalFontHistograms {
23 public: 23 public:
24 LocalFontHistograms() : m_reported(false) { } 24 LocalFontHistograms() : m_reported(false) { }
25 void record(bool loadSuccess); 25 void record(bool loadSuccess);
26 private: 26 private:
27 bool m_reported; 27 bool m_reported;
28 }; 28 };
29 29
30 AtomicString m_fontName; 30 AtomicString m_fontName;
31 LocalFontHistograms m_histograms; 31 LocalFontHistograms m_histograms;
32 }; 32 };
33 33
34 } // namespace blink 34 } // namespace blink
35 35
36 #endif 36 #endif
OLDNEW
« no previous file with comments | « Source/core/css/FontFaceSetLoadEvent.h ('k') | Source/core/css/MediaQueryList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698