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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 | « Source/core/css/StyleMedia.h ('k') | Source/core/css/StyleSheetList.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 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2006, 2008, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2008, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 18 matching lines...) Expand all
29 29
30 namespace blink { 30 namespace blink {
31 31
32 class CSSRule; 32 class CSSRule;
33 class KURL; 33 class KURL;
34 class MediaList; 34 class MediaList;
35 class Node; 35 class Node;
36 class StyleSheet; 36 class StyleSheet;
37 37
38 class StyleSheet : public RefCountedWillBeGarbageCollectedFinalized<StyleSheet>, public ScriptWrappable { 38 class StyleSheet : public RefCountedWillBeGarbageCollectedFinalized<StyleSheet>, public ScriptWrappable {
39 DEFINE_WRAPPERTYPEINFO();
39 public: 40 public:
40 StyleSheet() 41 StyleSheet()
41 { 42 {
42 ScriptWrappable::init(this); 43 ScriptWrappable::init(this);
43 } 44 }
44 virtual ~StyleSheet(); 45 virtual ~StyleSheet();
45 46
46 virtual bool disabled() const = 0; 47 virtual bool disabled() const = 0;
47 virtual void setDisabled(bool) = 0; 48 virtual void setDisabled(bool) = 0;
48 virtual Node* ownerNode() const = 0; 49 virtual Node* ownerNode() const = 0;
49 virtual StyleSheet* parentStyleSheet() const { return 0; } 50 virtual StyleSheet* parentStyleSheet() const { return 0; }
50 virtual String href() const = 0; 51 virtual String href() const = 0;
51 virtual String title() const = 0; 52 virtual String title() const = 0;
52 virtual MediaList* media() const { return 0; } 53 virtual MediaList* media() const { return 0; }
53 virtual String type() const = 0; 54 virtual String type() const = 0;
54 55
55 virtual CSSRule* ownerRule() const { return 0; } 56 virtual CSSRule* ownerRule() const { return 0; }
56 virtual void clearOwnerNode() = 0; 57 virtual void clearOwnerNode() = 0;
57 virtual KURL baseURL() const = 0; 58 virtual KURL baseURL() const = 0;
58 virtual bool isLoading() const = 0; 59 virtual bool isLoading() const = 0;
59 virtual bool isCSSStyleSheet() const { return false; } 60 virtual bool isCSSStyleSheet() const { return false; }
60 61
61 virtual void trace(Visitor*) { } 62 virtual void trace(Visitor*) { }
62 }; 63 };
63 64
64 } // namespace 65 } // namespace blink
65 66
66 #endif 67 #endif
OLDNEW
« no previous file with comments | « Source/core/css/StyleMedia.h ('k') | Source/core/css/StyleSheetList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698